Start, Stop, or Restart Nginx

Computer terminalThis is a tutorial on how to manage your Nginx web server under CentOS 7.x, Debian 8.x (Jessie), and FreeBSD 10.x. Commands to start, stop, and restart Nginx web server for these operating systems are shown below and are separated by the different operating systems.

CentOS (version 7.x)

To start Nginx under CentOS:

systemctl start nginx.service

To stop Nginx under CentOS:

systemctl stop nginx.service

To restart Nginx under CentOS:

systemctl restart nginx.service

Debian (version 8.x aka Jessie)

To start Nginx under Debian:

service nginx start

To stop Nginx under Debian:

service nginx stop

To restart Nginx under Debian:

service nginx restart

FreeBSD (version 10.x)

The commands to start, stop, and restart Nginx under FreeBSD are the same like under Debian.
To start Nginx:

service nginx start

To stop Nginx:

service nginx stop

To restart Nginx:

service nginx restart

20% Off WP Engine
About VNKB | Advertising | Disclosures | Terms of Use | Privacy Policy | DMCA | Contact VNKB
VNKB is a trademark of VNKB.com
Copyright Ā© 2007-2016 VNKB.com All Rights Reserved.