mod_gearman編譯安裝依賴條件:ios
<pre> gcc / g++ autoconf / automake / autoheader libtool libgearman (>= 0.14) </pre>rest
添加配置文件 /etc/portage/package.keywords/gearmandserver
<pre>sys-cluster/gearmand ~amd64</pre>ip
<pre>emerge sys-cluster/gearmand</pre> get
gentoo中對應軟件包 sys-cluster/gearmand源碼
<pre> 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 </pre>it
安裝文件列表:io
<pre> /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 </pre>編譯
nagios.cfg 添加配置module
<pre> broker_module=/usr/lib/mod_gearman/mod_gearman.o config=/etc/mod_gearman_neb.conf </pre>
<pre> /etc/mod_gearman_neb.conf # neb module 配置信息 /etc/mod_gearman_worker.conf # worker: 配置信息 </pre>
<pre> 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 </pre>
<pre> 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 </pre>