Completely close the nginx service under windows
1. Open the cmd window in the nginx directory
2. Run the command: start nginx to start the nginx service
3. Run the command: nginx -s stop to stop the nginx service (you can’t stop it by running the command, so you can only use more violent methods)
4. Run the command: taskkill /f /t /im nginx.exe to close other nginx services so that they can be shut down completely.
5. If it still cannot be killed, directly find the nginx process and kill the process.