davidmaneuver of Maneuver
5/4/2018 - 2:41 PM

Manage the Nginx Process

Now that you have your web server up and running, we can go over some basic management commands.

To stop your web server, you can type:

sudo systemctl stop nginx To start the web server when it is stopped, type:

sudo systemctl start nginx To stop and then start the service again, type:

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 By default, Nginx is configured to start automatically when the server boots. If this is not what you want, you can disable this behavior by typing:

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

sudo systemctl enable nginx