systemctl status nginx

From wikieduonline
Jump to navigation Jump to search

systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2021-02-14 07:12:33 UTC; 1min 24s ago
     Docs: man:nginx(8)
  Process: 29993 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
  Process: 30024 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
  Process: 30012 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 30027 (nginx)
    Tasks: 2 (limit: 1151)
   CGroup: /system.slice/nginx.service
           ├─30027 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
           └─30032 nginx: worker process

Feb 14 07:12:33 SERVER systemd[1]: Starting A high performance web server and a reverse proxy server...
Feb 14 07:12:33 SERVER systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Feb 14 07:12:33 SERVER systemd[1]: Started A high performance web server and a reverse proxy server.


systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Thu 2022-06-02 00:00:01 UTC; 11min ago
     Docs: man:nginx(8)
  Process: 16838 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
 Main PID: 11859 (code=exited, status=0/SUCCESS)

Jun 02 00:00:01 SERVER systemd[1]: Stopping A high performance web server and a reverse proxy server...
Jun 02 00:00:01 SERVER systemd[1]: Stopped A high performance web server and a reverse proxy server.


Sep 17 10:54:43 SERVER nginx[5609]: nginx: [warn] conflicting server name ".../..."

Related commands[edit]

See also[edit]

Advertising: