红联Linux门户
Linux帮助

linux下apache日志监控工具apachetop

发布时间:2017-02-14 09:42:42来源:linux网站作者:可爱的goldman
已经有安装lamp环境
下载apachetop 
tar zxvf apachetop-0.12.6.tar.gz
linux下apache日志监控工具apachetop
 
cd apachetop-0.12.6
# ./configure && make && make install
linux下apache日志监控工具apachetop
 
sudo apt-get install apachetop
linux下apache日志监控工具apachetop
 
安装过程中可能会出现的问题
configure: error: No useful curses library found
yum  -y  install  *curses*
linux下apache日志监控工具apachetop
linux下apache日志监控工具apachetop
 
configure: error: readline library not found
yum  -y  install   readline*
linux下apache日志监控工具apachetop
 
安装完成后查看是否有报错
#echo $?
0
linux下apache日志监控工具apachetop
 
使用apachetop监控apache日志:
# apachetop  -f  /var/log/httpd/access_log
-f后加apache日志文件路径
linux下apache日志监控工具apachetop
 
本文永久更新地址:http://www.linuxdiyf.com/linux/28388.html