Gearman 安装

简介:

60.3. Gearman

http://gearman.org/

60.3.1. Getting Started with Gearman

60.3.1.1. CentOS

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum install gearmand
			

60.3.1.2. Ubuntu

$ apt-cache search gearman | grep gearman
drizzle-plugin-gearman-udf - Gearman User Defined Functions for Drizzle
drizzle-plugin-logging-gearman - Gearman Logging for Drizzle
gearman - Distributed job queue
gearman-job-server - Job server for the Gearman distributed job queue
gearman-server - Gearman distributed job server and Perl interface
gearman-tools - Tools for the Gearman distributed job queue
libgearman-client-async-perl - asynchronous client for the Gearman distributed job system
libgearman-client-perl - client for the Gearman distributed job system
libgearman-dbg - Debug symbols for the Gearman Client Library
libgearman-dev - Development files for the Gearman Library
libgearman-doc - API Documentation for the Gearman Library
libgearman6 - Library providing Gearman client and worker functions
mod-gearman-doc - Documentation and examples for Mod-Gearman
mod-gearman-module - Nagios/Icinga event broker module for Mod-Gearman
mod-gearman-tools - Tools for mod-gearman
mod-gearman-worker - Worker agent for Mod-Gearman
python-gearman - Python interface to the Gearman system
python-gearman.libgearman - Python wrapper of libgearman
python3-gearman.libgearman - Python 3 wrapper of libgearman
			

60.3.2. Gearman PHP Extension

		
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

install libgearman-devel
pecl install channel://pecl.php.net/gearman-0.8.3

cat >> /srv/php/etc/conf.d/gearman.ini <<EOF
extension=gearman.so
EOF
		
		

测试安装

# php -r 'printf("%s \r\n", gearman_version());'
0.14
目录
相关文章
|
1月前
|
安全 应用服务中间件 PHP
liunx执行pecl install swoole报错“failed to run `phpize‘”
liunx执行pecl install swoole报错“failed to run `phpize‘”
30 1
|
5月前
|
监控 程序员 Linux
supervisor的正确离线安装和使用
supervisor的正确离线安装和使用
246 0
|
7月前
|
监控 Ubuntu Python
Supervisor离线安装及使用
Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。它是通过fork/exec的方式把这些被管理的进程当作supervisor的子进程来启动,这样只要在supervisor的配置文件中,把要管理的进程的可执行文件的路径写进去即可。也实现当子进程挂掉的时候,父进程可以准确获取子进程挂掉的信息的,可以选择是否自己启动和报警
129 0
|
9月前
|
监控 Unix 程序员
正确离线安装supervisor
supervisor是一个用python语言编写的进程管理工具,它可以很方便的监听、启动、停止、重启一个或多个进程。当一个进程意外被杀死,supervisor监听到进程死后,可以很方便的让进程自动恢复,不再需要程序员或系统管理员自己编写代码来控制。
341 0
|
分布式计算 Java Hadoop
ambari 2.7.6源码编译指南
2021/11/16,ambari终于推出了2.7.6版本,该版本相对2.7.5版本以来,共有26个contributors提交了114个commits以及修改了557个文件。本文以ambari最新版本源码,分享如何进行ambari源码编译以及编译过程中遇到的坑。
ambari 2.7.6源码编译指南
|
监控 Linux 网络安全
离线安装supervisor
内、外网环境都可以使用
529 0
|
vr&ar Perl 数据库管理
Gearman 集中处理日志
F# job server 安装在gearman-job服务器上。  worker安装在worker服务器上。  全部以gearman用户运行。  job server 启动命令:  /opt/app/gearman/sbin/gearmand -L 192.
1224 0
|
关系型数据库 应用服务中间件 数据库
mezzanine安装(python2.7+nginx+mysql+supervisor)
mezzanine安装(python2.7+nginx+mysql+supervisor)
2009 0
|
网络协议 PHP Python
|
网络协议 PHP Python