Monit 安装配置
(2016-03-12 22:59:09)
标签:
linuxmonit |
分类: linux那些事 |
Monit
安装配置
1.安装Monit
./configure 错误
configure: error: PAM enabled but headers or library not found, install the PAM development support or run configure --without-pam
make
make install
2.配置
#mv monitrc /etc/monitrc
#chown root:root /etc/monitrc
#chmod 0700 /etc/monitrc
#monit
#monit start nginx
#monit stop all /nginx
3.配置web访问
set httpd port 2812 and
4.配置监控进程
#vi
#mkdir /etc/monit.d/ #新建监控服务的目录 默认的
#cd /etc/monit.d/
#vi
nginx
#vi
swoole
check process swoole_server with MATCHING swoole_server
start program = "/usr/local/php/bin/php /App/xxxxxx/swoole/banyarWebServer.php" with timeout 10 seconds

加载中…