+ -
当前位置:首页 → 问答吧 → 在debian下安装apache2,启动出现问题

在debian下安装apache2,启动出现问题

时间:2008-05-21

来源:互联网

我的debian是独立安装在一台主机上的,局域网内分配的地址是192.168.0.113,用ssh远程控制,apt-get install apache2 后,port.conf文件里只有一条:Listen 80,我修改为Listen 192.168.0.113:80,apache2,执行/etc/init.d/apache2 start 后,出现以下提示:
复制内容到剪贴板
代码:
Starting web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 192.168.0.113:80
no listening sockets available, shutting down
Unable to open logs
failed!
提示上看,是不是ServerName设置不对,但我在/etc/apache2/apache2.conf里找不到ServerName,不知道该如何设置,/etc/apache2/httpd.conf是空的。

我是liunx、debian、lamp的新手,请教大家了,谢谢

作者: wArwIck   发布时间: 2008-05-20

设置正确的ServerName
如:ServerName localhost

至于/etc/apache2/httpd.conf是空的,你确定你的httpd.conf应该在apache2下
一般都在apache2/conf/下的

作者: scc_166   发布时间: 2008-05-20

引用:
原帖由 scc_166 于 2008-5-20 22:47 发表
设置正确的ServerName
如:ServerName localhost

至于/etc/apache2/httpd.conf是空的,你确定你的httpd.conf应该在apache2下
一般都在apache2/conf/下的
没有conf目录,只有一个/etc/apache2/conf.d/ 目录,下面有两个文件,一个 apache2-dos 一个 charset

作者: wArwIck   发布时间: 2008-06-01