Inspur group 6 tar xzvf ifstat1 1 tar

  • Slides: 14
Download presentation
Inspur group 日常运维及监控

Inspur group 日常运维及监控

6 主机监控 tar xzvf ifstat-1. 1. tar. gz cd ifstat-1. 1. /configure make install

6 主机监控 tar xzvf ifstat-1. 1. tar. gz cd ifstat-1. 1. /configure make install

7 Apache日常监控

7 Apache日常监控

8 Apache监控配置之前首先需要确认开启了Apache状态的功能模块 server-status。 确保“Load. Module status_modules/mod_status. so”前面没有#号,如果没有加载这个模块, 需重新编译Apache,编译时加上--enable-module=so参数即可; 在httpd. conf配置文件中增加如下内容: <Location /show-status> Set. Handler

8 Apache监控配置之前首先需要确认开启了Apache状态的功能模块 server-status。 确保“Load. Module status_modules/mod_status. so”前面没有#号,如果没有加载这个模块, 需重新编译Apache,编译时加上--enable-module=so参数即可; 在httpd. conf配置文件中增加如下内容: <Location /show-status> Set. Handler server-status Order Deny, Allow from all </Location> Extended. Status On 访问apache的status页面即可(http: //IP: port/show-status)

10 Apache监控 日志文件切割 打开Apache的conf/httpd. conf配置文件并找到下面两条配置: Error. Log logs/error. log Custom. Log logs/access. log common

10 Apache监控 日志文件切割 打开Apache的conf/httpd. conf配置文件并找到下面两条配置: Error. Log logs/error. log Custom. Log logs/access. log common 错误日志文件error. log # 每天生成一个错误日志文件 Error. Log "|/opt/apache-2. 2. 26/bin/rotatelogs /opt/apache-2. 2. 26/logs/error-%Y-%m-%d. log 86400“ 日志文件access. log # 每天生成一个访问日志文件 Custom. Log "|/opt/apache 2. 2. 26/bin/rotatelogs /opt/apache-2. 2. 26/logs/access-%Y%m-%d. log 86400" common

11 Tomcat日常监控

11 Tomcat日常监控

14 谢谢大家! Inspur group 2020/11/22

14 谢谢大家! Inspur group 2020/11/22