容器技术交流

 找回密码
 立即注册
查看: 7206|回复: 13

错误信息nginx: [emerg] host not found in upstream "1.lum"

[复制链接]
发表于 2011-8-14 09:30:49 | 显示全部楼层 |阅读模式
每次重启,APACHE上的网站都打不开,但LuManager服务器管理系统可以正常打开,修改网站配置时,提示nginx: [emerg] host not found in upstream "1.lum" 等错误信息,请问这是什么原因呢,谢谢
发表于 2011-8-14 09:54:13 | 显示全部楼层
在服务器上ping 127.0.0.1的结果是什么?
 楼主| 发表于 2011-8-14 10:11:38 | 显示全部楼层

PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.030 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.025 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.022 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.024 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.051 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=0.025 ms
发表于 2011-8-14 10:16:32 | 显示全部楼层
ping 1.lum呢?
 楼主| 发表于 2011-8-14 10:18:46 | 显示全部楼层
怎么ping 呢,登录LINUX直接输入 ping 1.lum吗?提示这个

ping: unknown host 1.lum
发表于 2011-8-14 10:19:41 | 显示全部楼层
添加网站的时候,不要选择apache,添加好后,再编辑网站,然后改成apache
 楼主| 发表于 2011-8-14 10:22:00 | 显示全部楼层
现在编辑网站,出现

您填写的内容有错,错误信息
nginx: [emerg] host not found in upstream "1.lum" in /usr/local/nginx/conf/vhost.test.conf:151 nginx: configuration file /usr/local/nginx/conf/vhost.test.conf test failed
发表于 2011-8-14 10:22:36 | 显示全部楼层
安装的是不是1.1.9啊?
 楼主| 发表于 2011-8-14 10:32:56 | 显示全部楼层
是啊,晕了,网站一个多小时没打开
 楼主| 发表于 2011-8-14 10:41:53 | 显示全部楼层
添加网站的时候,我选择的是“当使用Apache时,PHP以CGI方式执行 ”这个。
发表于 2011-8-14 10:46:25 | 显示全部楼层
cat /etc/hosts的内容里,有没有1.lum字样?
 楼主| 发表于 2011-8-14 10:53:55 | 显示全部楼层
本帖最后由 zsxzy 于 2011-8-14 10:54 编辑

当时没看有没有1.lum字样,现在删除了重新添加网站。

如下内容
127.0.0.1 4.lum
127.0.0.1 localhost
我的IP
发表于 2011-8-14 11:15:50 | 显示全部楼层
添加网站的时候,不要选择Apache,添加好后,再选择apache,应该就对了
发表于 2012-8-5 00:06:18 | 显示全部楼层
我也出现这个问题,我是把
仅PHP用Apache处理。将动态的PHP脚本交给Apache处理,即前端Nginx,后端Apache
这个项取消就正常了,吓死我了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 01:22 , Processed in 0.034668 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表