DEV Community

Cover image for How to stop an Nginx server or service in Linux?
MELVIN GEORGE
MELVIN GEORGE

Posted on • Originally published at melvingeorge.me

How to stop an Nginx server or service in Linux?

Originally posted here!

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

# Stops Nginx service
sudo systemctl stop nginx
Enter fullscreen mode Exit fullscreen mode

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 😃.


Top comments (0)