更新Ubuntu后尝试启动nginx时出错

更新Ubuntu后尝试启动nginx时出错,nginx,ubuntu-16.04,nginx-config,Nginx,Ubuntu 16.04,Nginx Config,我正在尝试对我的nginx进行故障排除,但它不会好起来。 我首先运行sudo systemctl start nginx,然后 Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. 因此,我继续并尝试systemctl status nginx.s

我正在尝试对我的nginx进行故障排除,但它不会好起来。 我首先运行
sudo systemctl start nginx
,然后

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
因此,我继续并尝试
systemctl status nginx.service
获取:

Dec 13 00:29:18  systemd[1]: nginx.service: Control process exited, code=exited status=1
Dec 13 00:29:18  systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Dec 13 00:29:18 systemd[1]: nginx.service: Unit entered failed state.
Dec 13 00:29:18 systemd[1]: nginx.service: Failed with result 'exit-code'
所以我继续给它一个测试
sudonginx-t-c/etc/nginx/nginx.conf
导致

nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/sites-enabled/nginx_aggrigator.conf:164
nginx: configuration file /etc/nginx/nginx.conf test failed
我正试图在ubuntu 16.04上运行这个程序,如果有任何帮助的话,就像错误所说的那样。。
未知指令“乘客已启用”

nginx\u aggrigator.conf:164

因此,首先检查此文件: /etc/nginx/sites enabled/nginx_aggrigator.conf


查看第164行,找到您声明已启用乘客号的部分,因为这是您的错误所在

谢谢。。我想弄明白这件事已经太久了。