/ systemd

systemd

操作 nginx

sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx

If you are simply making configuration changes, Nginx can often reload without dropping connections. To do this, this command can be used:

sudo systemctl reload nginx

To re-enable the service to start up at boot, you can type:

sudo systemctl enable nginx
sudo systemctl status nginx