First, forcibly stop the nginx process

pkill -9 nginx 
Copy the code

2. Start the nginx process

ps -ef | grep nginx 
Copy the code

3. Reconfigure the nginx.conf file

nginx -c /etc/nginx/nginx.conf
Copy the code