还是Apache的问题!启动错误!急!急!急!

mysun 2001-12-25 10:26:20
我下的是apache得原码包!
./configure --prefix=/usr/local/apache
make
make install
cd /usr/local/apache/bin
#apachectl start
apachectl start:http started
#apachectl status
look up localhost
Making HTTP connection to localhost
Alert!:Unable to connect to remote host.
lynx Can't access startfile http://localhost/server-status
我记得我只改了一个地方,就是conf/httpd.conf,我把里面的ServerName 设成了
ServerName 192.168.0.2,而且用浏览器也无法访问!
请问这是怎么回事! 谢谢了
...全文
401 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
mysun 2002-01-29
  • 打赏
  • 举报
回复
xie le
mysun 2001-12-25
  • 打赏
  • 举报
回复
./apachectl configtest 返回结果:
Syntax OK
可是我用./apachectl start返回:
httpd start
./apachectl stop
apache not running
./apachectl status
look localhost
Making HTTP connection to localhost
Alert!:Unable to connect to remote host.
lynx Can't access startfile http://localhost/server-status
superdreamer 2001-12-25
  • 打赏
  • 举报
回复
./apachectl configtest 把返回信息贴出来看看
haijiang_jin 2001-12-25
  • 打赏
  • 举报
回复
再看一下/etc/hosts,看看localhost有没有解析成127.0.0.1。
如果再不行,怀疑是你的浏览器有问题,重新装一个netscape试试

mysun 2001-12-25
  • 打赏
  • 举报
回复
我是试过用localhost的也不行,好像就是apache没有启动一样。
我看过httpd.conf 的里面的 port是80阿!
mysun 2001-12-25
  • 打赏
  • 举报
回复
谢谢scxy(小熊) :ServerName 我曾经试过用了localhost,还是不行。
谢谢haijiang_jin(心有独方):我看到httpd.conf中的port:80 应该没有问题呀!
dragonsky 2001-12-25
  • 打赏
  • 举报
回复
你先用hostname看一下你的主机名是什么,然后把httpd.conf中的ServerName设置为你的主机名应该就可以了。
楼上的已经说了,请注意httpd.conf中Port的设置是否是缺省的80。
haijiang_jin 2001-12-25
  • 打赏
  • 举报
回复
你看一下你的端口设置,http默认80端口,可能是8080,改过来就ok。
scxy 2001-12-25
  • 打赏
  • 举报
回复
你把ServerName不要设为IP而用实在地名字如:hello试试
superdreamer 2001-12-25
  • 打赏
  • 举报
回复
你是不是装了OPENSSL,你用TELNET试试:
telnet localhost 80

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧