Linux下通过server-status监控性能
前提:安装好Apache,在opt/路径下
- 查看Apache的工作模式
可以知道是 prefork.c模式
- 配置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>
- 重启:service httpd restart
- 访问:http://192.168.254.135/server-status