How to checking nginx service is running?

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


Hi.

There are three ways we used.

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

2. Checking pid file.
     /usr/local/nginx/logs/nginx.pid

3. service nginx status | grep running.

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

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20180727/f3837c23/attachment.html>


More information about the nginx-devel mailing list