php找httpd,linux – 查找每个HTTPD进程上运行的PHP脚本

本文指导如何在CentOs系统中启用Apache的mod_status模块,以获取服务器状态信息。首先,在Apache主配置文件`/etc/httpd/conf/httpd.conf`中加载status_module,并设置ExtendedStatus为on,然后配置访问权限,允许特定IP地址访问`/server-status`页面,以监控服务器的运行状况和处理中的请求。
摘要由CSDN通过智能技术生成

您需要启用Apache模块

mod_status(CentOs主Apache配置文件位于/etc/httpd/conf/httpd.conf)

LoadModule status_module modules/mod_status.so

使用选项ExtendedStatus on(这将在与上面相同的配置文件中设置)

# ExtendedStatus controls whether Apache will generate "full" status

# information (ExtendedStatus On) or just basic information (ExtendedStatus

# Off) when the "server-status" handler is called. The default is Off.

#

ExtendedStatus On

以及为此设置的一些访问权限(将XXX.XXX.XXX.XXX替换为您的IP – 这可以在与上面相同的配置文件中找到)

# Allow server status reports generated by mod_status,

# with the URL of http://servername/server-status

# Change the ".example.com" to match your domain to enable.

#

SetHandler server-status

Order deny,allow

Deny from all

Allow from localhost 127.0.0.1 XXX.XXX.XXX.XXX

这将显示当前正在以here呈现的方式处理的pids和URL.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值