Linux下通过server-status监控性能

Linux下通过server-status监控性能

前提:安装好Apache,在opt/路径下

 

  1. 查看Apache的工作模式

 

可以知道是 prefork.c模式

 

  1. 配置server-status 性能

 

进入到httpd.conf路径

vi  /etc/httpd/conf/httpd.conf

然后添加

<Location /server-status>

    SetHandler   server-status

    Order        allow,deny

    Deny from    nothing

    Allow from   all

</Location>

 

ExtendedStatus On

 

<Location /server-info>

    SetHandler   server-info

    Order        allow,deny

    Deny from    nothing

    Allow from   all

</Location>

  1. 重启:service httpd restart
  2. 访问:http://192.168.254.135/server-status
posted on 2018-12-21 19:38  清明-心若淡定  阅读(1066)  评论(0编辑  收藏  举报