nginx -t "host not found in upstream"错误的解决方法
时间:2015-05-27 00:31 来源:linux.it.net.cn 作者:IT
错误信息如下:
# 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即可。 (责任编辑:IT)
错误信息如下: # 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即可。 (责任编辑:IT) |