How to checking nginx service is running?

洪志道 hongzhidao at
Fri Jul 27 09:24:46 UTC 2018


There are three ways we used.

1. Checking nginx processes.
     ps -Af | grep nginx

2. Checking pid file.

3. service nginx status | grep running.

I'm wondering which is the best way?
Or any other suggestion?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list