In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Detailed introduction to the usage of nginx command parameters
Nginx command: start nginx
After installing nginx on Windows, we need to start the nginx service. There are two main ways to start the command line operation of the nginx service, namely
C:/nginx-0.8.53 > nginx.exe
Or
C:/nginx-0.8.53 > start nginx
Start nginx command description: it should be noted that since the default port of nginx is also port 80, if the Apache or IIS service is enabled on your machine, be sure to shut down the IIS or Apache service before starting nginx, otherwise the nginx startup command will not succeed.
Nginx command: stop nginx
There are two main commands to stop nginx, namely
C:/nginx-0.8.53 > nginx- s stop
Or
C:/nginx-0.8.53 > nginx- s quit
The difference between the nginx stop command stop and the quit parameter is that stop quickly stops the nginx and may not save the relevant information, while quit stops the nginx in a complete and orderly manner and saves the relevant information.
The effects of the nginx start and stop commands can be observed through the process tab in the Windows task manager.
Detailed explanation of other nginx command parameters
Nginx-c
This command parameter specifies a new nginx configuration file to replace the default nginx configuration file. If you are not sure whether the new nginx configuration file syntax is correct, you can test it with the nginx command-t parameter, which means not running the configuration file, but just testing the configuration file, that is,
Nginx-t-c
The difference between nginx command parameters v and V
The nginx-v command simply displays the version information (nginx version) of nginx, while nginx-V displays not only the version information of nginx, but also the configuration parameter information of nginx.
Reload the nginx command
Nginx-s reload
When you change the nginx configuration information and need to reload these configurations, you can use this command to reload nginx
Reopen log file command
Nginx-s reopen
At this point, the most basic nginx commands, such as starting, stopping nginx, viewing, and testing nginx configuration files, are introduced.
If you have any questions, please leave a message or go to the community to exchange and discuss, thank you for reading, hope to help you, thank you for your support!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.