知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

monitor工具使用

发布时间:2014-09-05 17:09:39作者:知识屋

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
 

(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜