Home > Article > Operation and Maintenance > How to restart Nginx
Steps to restart nginx:
##1. Verify that the nginx configuration file is correct
Method 1: Enter the nginx installation directory sbin, enter the command ./nginx -t and see the following display:nginx.conf syntax is ok,
nginx .conf test is successful
2, Restart the Nginx service
./nginx -s reload, then
kill -HUP process number to restart the nginx service
The above is the detailed content of How to restart Nginx. For more information, please follow other related articles on the PHP Chinese website!