现在的位置: 首页 > 综合 > 正文

nginx -t “host not found in upstream”的问题解决

2013年08月10日 ⁄ 综合 ⁄ 共 221字 ⁄ 字号 评论关闭

# nginx -t
nginx: [emerg] host not found in upstream "sns.onbobo.local" in /etc/nginx/nginx.conf:87
nginx: configuration file /etc/nginx/nginx.conf test failed

语法上是没有错误的,只是系统无法解析这个域名,所以报错.
解决办法就是添加dns到/etc/resolv.conf 或者是/etc/hosts,让其能够解析到IP.

抱歉!评论已关闭.