第一步、强行停止nginx进程

pkill -9 nginx

2、开启nginx进程

ps -ef | grep nginx

3、重新配置nginx.conf文件

nginx -c /etc/nginx/nginx.conf