After manually modifying the nginx.conf file, you need to restart the nginx service for the configuration to take effect.
Restart command:nginx -s reload
Shutdown, start, restart commands under nginx
1. Start:
start nginx // It is recommended to use
nginx.exe // The window cannot perform other command operations
2. Stop:
nginx.exe -s stop // Quickly stop without saving information
nginx. exe -s quit // Complete and orderly stop, and save relevant information
3. Reload nginx
nginx.exe -s reload // This command needs to be used after modifying the configuration information.
4. Reopen the log file:
nginx.exe -s reopen
5. Check the version: nginx -v