How to check if Nginx is running on linux, ubuntu

How to check if Nginx is running on linux, ubuntu

On linux ubuntu, you can use those commands to verify Ngnix
Sudo service nginx status and to start or stop
Sudo service nginx start Sudo service nginx stop


ubuntu@ip-127-0-0-1:/$ sudo service nginx status
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/nginx.service.d
           └─override.conf
   Active: inactive (dead) since Fri 2019-10-18 20:54:21 UTC; 11h ago
  Process: 19623 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidf
  Process: 19378 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload
  Process: 19332 ExecStartPost=/bin/sleep 0.1 (code=exited, status=0/SUCCESS)
  Process: 19327 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exit
  Process: 19322 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (
 Main PID: 19329 (code=exited, status=0/SUCCESS)
Oct 18 20:02:40 ip-172-31-38-119 systemd[1]: Starting A high performance web server an
Oct 18 20:02:40 ip-172-31-38-119 systemd[1]: Started A high performance web server and
Oct 18 20:16:51 ip-172-31-38-119 systemd[1]: Reloading A high performance web server a
Oct 18 20:16:51 ip-172-31-38-119 systemd[1]: Reloaded A high performance web server an
Oct 18 20:54:21 ip-172-31-38-119 systemd[1]: Stopping A high performance web server an
Oct 18 20:54:21 ip-172-31-38-119 systemd[1]: Stopped A high performance web server and

Leave a Reply

Your email address will not be published. Required fields are marked *