nginx启动报错

已注销
  • 4
新手上路,请多包涵
longfellow@ubuntu:~/node$ systemctl -l status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since 二 2015-12-29 03:05:50 CST; 11min ago
  Process: 4662 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

12月 29 03:05:49 ubuntu systemd[1]: Starting A high performance web server and a reverse proxy server...
12月 29 03:05:50 ubuntu nginx[4662]: nginx: [emerg] unknown directive "root.html" in /etc/nginx/sites-enabled/default:53
12月 29 03:05:50 ubuntu nginx[4662]: nginx: configuration file /etc/nginx/nginx.conf test failed
12月 29 03:05:50 ubuntu systemd[1]: nginx.service: Control process exited, code=exited status=1
12月 29 03:05:50 ubuntu systemd[1]: Failed to start A high performance web server and a reverse proxy server.
12月 29 03:05:50 ubuntu systemd[1]: nginx.service: Unit entered failed state.
12月 29 03:05:50 ubuntu systemd[1]: nginx.service: Failed with result 'exit-code'.
回复
阅读 32.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏