Basic NGINX Commands Updated on November 7, 2025 by InMotion Hosting Contributor 1 Minutes, 28 Seconds to Read This short tutorial covers a few basic commands or tasks that can be performed with Nginx from the command line. Understanding the basic commands is the first step to understanding how to manage NGINX on your server. You can invoke the NGINX executable using the -s parameter. The correct syntax is as follows: nginx -s signalnginx -s signal Common Commands stop (Shutdown nginx fast) quit (Shutdown nginx gracefully) restart (Restarts nginx while also applying any current configurations) reload (forces a reload of the configuration file)stop (Shutdown nginx fast) quit (Shutdown nginx gracefully) restart (Restarts nginx while also applying any current configurations) reload (forces a reload of the configuration file) Stop Command Let’s say we wanted to stop NGINX right away without finishing the current worker processes. We would use the “stop” command like this: nginx -s stopnginx -s stop Reload Command Keep in mind, if you edit the configuration file for NGINX it will not be used or applied until the reload command is invoked or you restart NGINX to force a reload of NGINX, run the command: nginx -s reloadnginx -s reload Once the reload command is ran a signal is sent to the master process. It then checks the syntax of the new configuration file and attempts to apply it. If this is successful, the master process will start new child processes using the new configuration. Old child processes still running will be sent a command to end the current process and restart using the new configuration. If the new configuration is found to be invalid, the master process will roll back changes and will continue to use the old configuration. This is a great feature as you’ll never be able to stop the current configuration and replace it with an invalid one. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles HTTP Strict Transport Security (HSTS) in NGINX Basic NGINX Commands How to Manage NGINX How to Create NGINX Redirects Advanced NGINX Stack Configuration for VPS and Dedicated Servers How to Remove NGINX From Your Server What is NGINX? How to Fix Nextcloud Not Working With NGINX Hide Your NGINX Server Version How to Install NGINX on cPanel