Reputation: 783
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
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