How to restart an Nginx server or service in Linux?

Published June 28, 2021

To restart a Nginx server or service, we can use the systemctl command-line utility followed by the reload nginx command in Linux.

# Restarts Nginx service
sudo systemctl reload nginx

What is systemctl?

  • The systemctl is a command-line utility that is used to control and manage the systemd services.
  • It is widely used with web server services like Nginx, Apache, etc.

Feel free to share if you found this useful 😃.

Share on: Facebook Twitter