본문 바로가기
리눅스와 웹개발

Check the number of Apache in Linux

by kuksool 2023. 2. 14.
728x90
반응형

ps -ef | grep httpd | wc -l

Check process name with httpd in ps

watch 'netstat -an | grep EST | wc -l'

Check the number of ESTs with netstat

netstat -nap | grep :80 | grep ESTABLISHED | wc -l

Check 80 port with netstat - If http is turned to a port other than 80 port, modify it and search for it

반응형

You can check it out in these three ways.

Three may have different results.

728x90
반응형

loading