programming faqs interview questions tech technical educational freshers guide preparation interviews hr telephonic
try another color:
try another fontsize: 60% 70% 80% 90%
Programming FAQs

How to check apache httpd process in linux

Average: 5 (1 vote)

ps command is used to see

ps command is used to see all processes # ps -ef

we need to combine ps and grep command,

# ps -ef | grep httpd

Hi, I'm not sure how to

Hi,

I'm not sure how to preserve the options for ps, but you can use the "pgrep" command like this:

$ pgrep httpd

or, to get a full count:

$ pgrep httpd |wc -l

For more information about the httpd process, I like to use "httpd fullstatus" like this:

$ httpd fullstatus

or you can grep for the domain with the fullstatus:

$ httpd fullstatus |grep

I hope this helps a little bit.