Gearmand 服务安装

Gearman 官网:http://gearman.org/getting-started/

一、源安装:apt-get install gearman-job-server

二、编译安装:http://blog.chinaunix.net/uid-27177626-id-4325909.html

环境:

centOS 7.0 64
apache 2.4.6
php 5.4.16
mysql 5.6.25


1. 下载编译安装包

wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz

2. 解压并运行

tar xzf gearmand-X.Y.tar.gzcd gearmand-X.Y
./configure
make
make install

3. conf过程中缺少boostlib,gperf,libevent,libuuid【没有问题可跳过】

yum install boost-devel
yum install gperf
yum install libevent-devel
yum install libuuid-devel

4. 安装成功,尝试运行gearman

gearmand -d

注:gearmand: Could not open log file "/usr/local/var/log/gearmand.log", from "/root/package/gearmand-1.1.12", switching to stderr. (No such file or directory)

缺少log文件,创建后运行成功


你可能感兴趣的:(Gearmand 服务安装)