今天重启nginx发现突然重启不了!如下图所示:
第一反应是查看日志文件/var/log/nginx/error.log,发现
[emerg] 6096#0: duplicate upstream "xxserver" in /etc/nginx/sites-enabled/xxserver_nginx.conf:1
[emerg] 6096#0: duplicate upstream "xxserver" in /etc/nginx/sites-enabled/xxserver_nginx.conf:1