[root@master10 ~]# systemctl status nginx ● nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2024-08-09 17:26:42 CST; 4h 14min ago Process: 1437 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS) Process: 1434 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS) Process: 1432 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS) Main PID: 1439 (nginx) CGroup: /system.slice/nginx.service ├─1439 nginx: master process /usr/sbin/nginx ├─1440 nginx: worker process └─1441 nginx: worker process
Aug 09 17:26:42 master10 systemd[1]: Starting The nginx HTTP and reverse proxy server... Aug 09 17:26:42 master10 nginx[1434]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok Aug 09 17:26:42 master10 nginx[1434]: nginx: configuration file /etc/nginx/nginx.conf test is successful Aug 09 17:26:42 master10 systemd[1]: Started The nginx HTTP and reverse proxy server.
-s signal Send a signal to the master process. The argument signal can be one of: stop, quit, reopen, reload. The following table shows the corresponding system signals: