全面列出HTTP请求(IP,URL等)

有没有办法显示一个Apache / httpd进程的列表与他们的pid和一些关于请求的信息? 像请求url,任何参数,域名,内部/外部IP地址等

我已经尝试了像netstathtop这样的东西,但没有告诉我有关正在发生的事情的很多信息。

我想这样,我可以select一个进程来杀死,而不是重新启动服务,杀死所有的人。

在你的httpd.conf设置ExtendedStatus On ,然后运行:

 service httpd fullstatus 

你应该得到你正在寻找的信息,比如:

 Server Version: Apache/2.3.8 (Unix) mod_ssl/2.3.8 OpenSSL/1.0.0a Server Built: Aug 24 2010 23:25:11 Current Time: Thursday, 16-Sep-2010 19:20:09 UTC Restart Time: Thursday, 16-Sep-2010 00:00:00 UTC Parent Server Generation: 0 Server uptime: 19 hours 20 minutes 9 seconds Total accesses: 8417703 - Total Traffic: 479.2 GB CPU Usage: u114.008 s94.3594 cu0 cs0 - .299% CPU load 121 requests/sec - 7.0 MB/second - 59.7 kB/request 198 requests currently being processed, 186 idle workers W_CC_KKK___KC__K_KKKK_KCK_K___K_KKK__K_K_K__C_KK_CKW_K_K_K____CK KK_K___KKK_KKCK__K___K_K___KCK__K_KKKC__C__KKCCK_KCWK_KKCK_KKKKC KC__K_KKK____KKKW____C_K_____C_K_KK________KK___C............... ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ Scoreboard Key: "_" Waiting for Connection, "S" Starting up, "R" Reading Request, "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup, "C" Closing connection, "L" Logging, "G" Gracefully finishing, "I" Idle cleanup of worker, "." Open slot with no current process Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request 0-0 77149 0/155/14434 W 19. 63 1 0 0.0 1.06 726.43 205.231.104.48 activemq.apache.org GET /schema/core/activemq-core-5.1.0.xsd HTTP/1.1 0-0 77149 0/106/14490 _ 19.52 0 0 0.0 0.85 926.97 91.89.133.31 www.apache.org NULL