LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]RedHat Enterprise Linux AS 4.0中Apache的端口问题

[复制链接]
发表于 2005-8-25 03:25:03 | 显示全部楼层 |阅读模式
我是linux的菜鸟, 请高手指教:

1. 我用的是root用户。
2. apache 用80端口和8080端口都能启动,服务正常。
3. 改用其它端口, 都有Error: "(13)Permission denied:make_sock: could not bind to address [::]:8088 no listening socket available..."

我觉得是permission的设置问题, 请问我应该在哪里设呢?

谢谢。

我是在windows xp下的vmware中安装的redhat.
 楼主| 发表于 2005-8-26 00:03:37 | 显示全部楼层

Answer the question by myself.

Go to Applictions-->Security Level --> SELinux, mark the checkbox of "Disable SELinux protection for httpd daemon". Then I can stard my apache.
回复 支持 反对

使用道具 举报

发表于 2005-8-26 07:37:10 | 显示全部楼层
在不启动服务的情况下netstat -antp然后把结果给我看看
回复 支持 反对

使用道具 举报

发表于 2005-8-26 11:42:51 | 显示全部楼层
Post by bonitoyu
Go to Applictions-->Security Level --> SELinux, mark the checkbox of "Disable SELinux protection for httpd daemon". Then I can stard my apache.


我发现很多人都把SELinux禁用了。建议有什么问题之后暂时改成permissive,看log然后再改相应配置。直接disable简直浪费了这个功能。

安全第一!

/etc/sysconfig/selinux
[PHP]# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted[/PHP]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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