You are on page 1of 1

Start

systemctl start nginx-rc

# Stop
systemctl stop nginx-rc

# Reload
systemctl reload nginx-rc

# Restart
systemctl restart nginx-rc

# Start nginx after reboot


systemctl enable nginx-rc

# Disable nginx automatic start after reboot


systemctl disable nginx-rc

# Config Test
nginx-rc -t

Docker

For systemd driven OS (e.g. Ubuntu 16.04, RHEL/CentOS 7, Arch Linux), that will be:

sudo systemctl stop docker


sudo systemctl disable docker

You might also like