LinuxSir.cn,穿越时空的Linuxsir!

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

apache WEB sever 配置的问题

[复制链接]
发表于 2003-4-8 12:25:05 | 显示全部楼层 |阅读模式
我昨天刚装上redhat9 安装时选择了 web server 项,第一次在redhat上用apache

我先看了看httpd.conf,没做什么改动,退出来
我的httpd.conf 文件里DocumentRoot 在/var/www/目录  我copy了一个index.html到该目录下
然后想测试一下行不行, httpd -f /etc/httpd/conf/httpd.conf结果如下

# ./httpd -f /etc/httpd/conf/httpd.conf
httpd: Could not 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 0.0.0.0:443
no listening sockets available, shutting down

再用ps -aux |grep httpd 查看时如下

ps -aux |grep httpd
root      1955  0.0  1.8 18076 2352 ?        S    20:29   0:01 ./httpd
apache    1956  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
apache    1957  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
apache    1958  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
apache    1959  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
apache    1960  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
apache    1961  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
apache    1962  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
apache    1963  0.0  1.8 18100 2316 ?        S    20:29   0:00 [httpd]
root      2425  0.0  0.4  3568  616 pts/1    S    21:15   0:00 grep httpd


但是在另一台电脑上打不开这里的页面 说找不到服务器

我这是什么地方错了?
发表于 2003-4-8 12:31:09 | 显示全部楼层
关闭防火墙
 楼主| 发表于 2003-4-8 13:19:20 | 显示全部楼层

再请教

怎么关掉防火墙? 再请教一下!!! 安装后我没有配置防火墙
发表于 2003-4-8 13:34:29 | 显示全部楼层
console -> setup -> firewall configuration
发表于 2003-4-8 14:30:15 | 显示全部楼层

asdf

asdf
发表于 2003-4-8 14:31:40 | 显示全部楼层
sorry刚才按错了.楼主,你是把index.html拷在哪里了?是/var/www还是/var/www/html?
发表于 2003-4-8 14:46:20 | 显示全部楼层
我刚刚解决这个问题,不必关闭防火墙,你甚至使用“高级”都可,你只要将“Trusted Devices”后对应的网卡选中、然后在“Allow incoming”后选中WWW(HTTP)即可。操作步骤为:按Crtl+Alt+F1进入虚拟终端,以Root用户进入后,键入Setup,出现选择“Firewall configuration”即可。祝你好运!
发表于 2003-4-8 14:48:50 | 显示全部楼层
另外,还必须设置访问权限:
chmod 701 /var/www
chmod 701 /var/www/*
刚才忘记说了。
 楼主| 发表于 2003-4-8 15:34:35 | 显示全部楼层
感谢以上回复的各位
已经摆平了 正如hhl00所言 就是防火墙配置的问题

多谢各位
发表于 2003-4-8 19:58:25 | 显示全部楼层
最初由 hhl00 发布
我刚刚解决这个问题,不必关闭防火墙,你甚至使用“高级”都可,你只要将“Trusted Devices”后对应的网卡选中、然后在“Allow incoming”后选中WWW(HTTP)即可。操作步骤为:按Crtl+Alt+F1进入虚拟终端,以Root用户进入后,键入Setup,出现选择“Firewall configuration”即可。祝你好运!



这是设置网卡信用设备吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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