您的位置:首页 > 运维架构 > Apache

apache开启server-status监控性能

2015-01-26 10:10 507 查看
1.开启mod_status.so 模块

cd /usr/local/apache/conf
vi httpd.conf
找到LoadModule status_module modules/mod_status.so去掉前面的#(默认没有,如果有就去掉)
2.配置server-status服务

方法一:

在httpd.conf加入

<location /c-server-status>
SetHandler server-status
Order Deny,Allow
Deny from nothing
Allow from all
</location>

方法二:
找到#Include conf/extra/httpd-info.conf去掉前面的#

打开...apache2\conf\extra\http-info.conf 配置文件进行修改。修改内容与方式一相同。

3.验证服务是否开启

访问 http://你的ip/server-status 输出如下则证明开启成功

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  apache server 性能