LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1565|回复: 7

帮我看一下:怎样启动apache?

[复制链接]
发表于 2003-6-3 17:42:39 | 显示全部楼层 |阅读模式
我想启动apache,用
[root@King root]# apachectl restart(之前我用start,结果是一样的)
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

结果我就想启动httpd但还是不行:
[root@King root]# /usr/local/apache/bin/httpd
[Tue Jun  3 17:35:09 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
不知道是哪个脚本配置错了还怎么着?应该怎样检查?
 楼主| 发表于 2003-6-3 18:10:56 | 显示全部楼层
不好意思,发错地方了,管理员:能不能帮我挪挪.谢谢!!!
发表于 2003-6-3 18:11:50 | 显示全部楼层
好象你的80端口被什么东西占用了
还有一个启动方式
service httpd start
 楼主| 发表于 2003-6-3 19:10:58 | 显示全部楼层
谢谢Itkun,让我知道了是什么原因.
我想可能是在浏览网页的默认端口也是80吧?
不知应该怎样查看各个端口,怎样设置的?或者能不能介绍相关的文章?
现在httpd已经根据你的提示可以启动了,但apache还是不行,是不是要改端口了,是在httpd.conf里改吗?
发表于 2003-6-4 03:29:24 | 显示全部楼层
晕了 apache是程序的名字 httpd是它在linux里面的服务名
你在浏览器里面打127.0.0.1 或者 localhost 看看
 楼主| 发表于 2003-6-4 18:10:52 | 显示全部楼层
不是啊,httpd不是只是apache里的一个服务吗?
那apacheclt start是启动什么服务?
启动httpd后浏览本机的静态网页是没问题了,但PHP还是不支持
因为有些东西还不清楚,所以想问地清楚点
发表于 2003-6-4 18:50:33 | 显示全部楼层
你概念不清楚
到网络版块找点精华看看
发表于 2003-8-23 03:45:07 | 显示全部楼层
/etc/hosts 里丢了主机名

127.0.0.1    hostname1     localhost.localdomain   localhost
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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