小编Pau*_*ul 的帖子

在 Ubuntu 15.04 和 15.10 上使用 systemd 启动时 nginx 无法启动

nginx 不会在启动时启动,但手动启动正常。日志说的是

nginx: [emerg] host not found in upstream "{some hostname}" in /etc/nginx/conf.d/some_site.conf
nginx: configuration file /etc/nginx/nginx.conf test failed

Failed to start A high performance web server and a reverse proxy server.
nginx.service: Unit entered failed state.
nginx.service: Failed with result 'exit-code'.
Run Code Online (Sandbox Code Playgroud)

似乎在启动时 dns 还没有准备好,nginx 正在尝试查找我作为反向代理使用的主机名。

ubuntu nginx systemd ubuntu-15.10 ubuntu-15.04

5
推荐指数
1
解决办法
1921
查看次数

标签 统计

nginx ×1

systemd ×1

ubuntu ×1

ubuntu-15.04 ×1

ubuntu-15.10 ×1