Apache怎么启动不了

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
qq55476925
帖子: 30
注册时间: 2008-08-13 16:35

Apache怎么启动不了

#1

帖子 qq55476925 » 2008-08-18 15:28

我用的也是ubuntu 8.04安装 Apache2 之后,在终端输入:sudo /etc/init.d/apache2 start 来启动Apache2.结果为
* Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
httpd (pid 5136) already running
为什么呢 是不是跟服务器IP地址设置有关系?应该怎么设置?
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2008-08-18 15:33

already running <== 已经在运行了...
关注我的blog: ε==3
头像
chewbaaca
帖子: 126
注册时间: 2006-08-25 16:24
来自: Beijing
联系:

#3

帖子 chewbaaca » 2008-08-18 15:34

/etc/init.d/apache2 stop

vim /etc/apache2/apache.conf

add ServerName local

change LogEvent to warn

/etc/init.dapache2 start

see what happened?
qq55476925
帖子: 30
注册时间: 2008-08-13 16:35

#4

帖子 qq55476925 » 2008-08-18 16:14

dd ServerName local

change LogEvent to warn

/etc/init.dapache2 start










-- INSERT --
这是为什么呢
qq55476925
帖子: 30
注册时间: 2008-08-13 16:35

#5

帖子 qq55476925 » 2008-08-18 16:16

在IE中输入了IP后 显示I t works
成功了
头像
skyfolly
帖子: 79
注册时间: 2008-08-04 23:27
来自: Hong Kong
联系:

#6

帖子 skyfolly » 2008-08-18 16:19

在apache2.conf里ServerName后面加你想要的名字就可以,最好是DDNS网址。

你的APACHE已经启动了。在浏览器打入localhost就可以
"Those who excel in beauty become vain; those who excel in strength become violent."
回复