bug_x

导航

 

1、监控 httpd 请求数据,请求统计

 

 apachetop -f /var/www/access_log

 

 

 

 2、

  

apachetop -H hits  (Will display stats on the last x number of hits)

apachetop -T secs  (Will display stats on the last x number of seconds)

 

3、安装:

   

1、sudo apt-get install apachetop

2、
wget http://www.webta.org/apachetop/apachetop-0.12.6.tar.gz

yum install readline-devel

yum install ncurses-devel

tar xvzf apachetop-0.12.6.tar.gz

cd apachetop-0.12.6

./configure

make

3、
wget http://www.webta.org/apachetop/apachetop-0.12.6.tar.gz

sudo apt-get install ncurses-dev

sudo apt-get install libreadline5-dev

tar xvzf apachetop-0.12.6.tar.gz

cd apachetop-0.12.6

./configure

make

 

posted on 2019-09-29 13:36  bug_x  阅读(185)  评论(0编辑  收藏  举报