标签:http io ar os sp 文件 on art log
mod_gearman编译安装依赖条件:
gcc / g++ autoconf / automake / autoheader libtool libgearman (>= 0.14)
添加配置文件 /etc/portage/package.keywords/gearmand
sys-cluster/gearmand ~amd64
emerge sys-cluster/gearmand
gentoo中对应软件包 sys-cluster/gearmand
wget http://labs.consol.de/wp-content/uploads/2010/09/mod_gearman-1.2.0.tar.gz tar -xvpf mod_gearman-1.2.0.tar.gz cd mod_gearman-1.2.0 ./configure --prefix=/usr --sysconfdir=/etc/ --localstatedir=/var make make install
安装文件列表:
/usr/lib/mod_gearman/mod_gearman.o # neb module /usr/bin/mod_gearman_worker # worker /usr/etc/init.d/mod_gearman_worker # init script /usr/bin/check_gearman # check bin /usr/bin/send_gearman # send bin /usr/bin/send_multi # send multi bin
nagios.cfg 添加配置
broker_module=/usr/lib/mod_gearman/mod_gearman.o config=/etc/mod_gearman_neb.conf
/etc/mod_gearman_neb.conf # neb module 配置信息 /etc/mod_gearman_worker.conf # worker: 配置信息
touch /var/log/mod_gearman/mod_gearman_neb.log chown nagios:nagios /var/log/mod_gearman/mod_gearman_worker.log /etc/init.d/gearmand restart /etc/init.d/nagios restart
touch /var/log/mod_gearman/mod_gearman_worker.log chown nagios:nagios /var/log/mod_gearman/mod_gearman_worker.log /etc/init.d/gearmand restart
标签:http io ar os sp 文件 on art log
原文地址:http://my.oschina.net/u/877567/blog/341537