monitor工具使用
monitor工具使用
1.wget http://mmonit.com/monit/dist/monit-5.2.2.tar.gz
2.tar -zxvf monit-5.2.2.tar.gz -C /usr/src/
3.cd /usr/src/monit-5.2.2/
4../configure --报错
configure: error: monit requires flex, not lex
yum install flex
./configure --报错
configure: error: monit requires bison, byacc or yacc
yum install bison byacc yacc
./configure --报错
Couldn't find your SSL header files.
Use --with-ssl-incl-dir option to fix this problem or disable
the SSL support with --without-ssl
./configure --without-ssl
5.make
6.make install
7.cp monitrc /etc/
8.vi /etc/inittab
mo:2345:respawn:/usr/local/bin/monit -Ic /etc/monitrc
9.vi /etc/monitrc
评论暂时关闭