httpd 开启 mod_status

httpd 开启 mod_status

经验文章nimo972024-12-25 11:56:1513A+A-


httpd -M | grep status

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100. Set the 'ServerName' directive globally to suppress this message

status_module (shared)


cd /etc/httpd/conf.d

cat module.conf 
<Location /server-status>
	SetHandler server-status
	Order deny,allow
	Deny from all
	Allow from all
</Location>
ExtendedStatus On

systemctl reload httpd

http://192.168.1.100/server-status

Apache Server Status for 192.168.1.100 (via 192.168.1.100)
Server Version: Apache/2.4.58 (Unix)
Server MPM: event
Server Built: Oct 16 2024 16:05:20
Current Time: Monday, 18-Nov-2024 08:53:52 CST
Restart Time: Monday, 18-Nov-2024 08:51:16 CST
Parent Server Config. Generation: 2
Parent Server MPM Generation: 1
Server uptime: 2 minutes 36 seconds
Server load: 0.00 0.00 0.00
Total accesses: 4 - Total Traffic: 7 kB - Total Duration: 3
CPU Usage: u.15 s.22 cu.06 cs.13 - .359% CPU load
.0256 requests/sec - 45 B/second - 1792 B/request - .75 ms/request
1 requests currently being processed, 0 workers gracefully restarting, 74 idle workers
Slot	PID	Stopping	Connections	Threads	Async connections
total	accepting	busy	graceful	idle	writing	keep-alive	closing
0	6302	no	0	yes	0	0	25	0	0	0
1	6303	no	0	yes	1	0	24	0	0	0
2	6304	no	0	yes	0	0	25	0	0	0
Sum	3	0	0	 	1	0	74	0	0	0
_____________________________W__________________________________
___________.....................................................
................................................................
................................................................
................................................................
................................................................
................
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	Dur	Conn	Child	Slot	Client	Protocol	VHost	Request
0-1	6302	0/1/2	_	0.02	17	1	2	0.0	0.00	0.01	192.168.1.37	http/1.1	192.168.1.100:80	GET /server-status HTTP/1.1
1-1	6303	0/1/1	_	0.01	37	0	0	0.0	0.00	0.00	192.168.1.37	http/1.1	192.168.1.100:80	GET / HTTP/1.1
1-1	6303	0/1/1	_	0.01	35	0	0	0.0	0.00	0.00	192.168.1.37	http/1.1	192.168.1.100:80	GET / HTTP/1.1
1-1	6303	1/0/0	W	0.00	0	0	0	0.0	0.00	0.00	192.168.1.37	http/1.1	192.168.1.100:80	GET /server-status HTTP/1.1
Srv	Child Server number - generation
PID	OS process ID
Acc	Number of accesses this connection / this child / this slot
M	Mode of operation
CPU	CPU usage, number of seconds
SS	Seconds since beginning of most recent request
Req	Milliseconds required to process most recent request
Dur	Sum of milliseconds required to process all requests
Conn	Kilobytes transferred this connection
Child	Megabytes transferred this child
Slot	Total megabytes transferred this slot

点击这里复制本文地址 以上内容由nimo97整理呈现,请务必在转载分享时注明本文地址!如对内容有疑问,请联系我们,谢谢!
qrcode

尼墨宝库 © All Rights Reserved.  蜀ICP备2024111239号-7