gentoo 系统源码安装 mod_gearman
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: 配置信息
nagios_server 配置与服务
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
gearman_worker 配置与服务
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
时间: 2024-10-09 01:47:57