Draif Kroneg
Draif Kroneg

Reputation: 783

Verify that nginx is running

If nginx init.d script does not take status option (like Apache) - how could I possibly know if it is running or not? I can verify nginx process exists but it does not tell much.

Upvotes: 3

Views: 8830

Answers (1)

Taggart Comet
Taggart Comet

Reputation: 128

Except checking that process exists, you can always check netstat -tulpn | grep nginx

 # netstat -tulpn | grep nginx
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      4158/nginx.conf

Upvotes: 2

Related Questions