歡迎您光臨本站 註冊首頁

selinux 拒絕改變埠

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

selinux 拒絕改變埠

請問
httpd  更改 listen 8000 后無法啟動
估計是 selinux 的問題,因為看到 SELINUX 錯誤信息
那麼請問如何修改

使用 setsebool  打開 HTTP 也不行 >_<"
《解決方案》

關閉selinux

不舍的關閉,就把selinux的錯誤消息貼出來看看吧
《解決方案》

May 27 14:40:26 localhost kernel: audit(1211870426.169:20): avc:  denied  { name_bind } for  pid=30656 comm="httpd" src=8000 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket
May 27 14:40:26 localhost kernel: audit(1211870426.169:21): avc:  denied  { name_bind } for  pid=30656 comm="httpd" src=8000 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket
May 27 14:41:57 localhost kernel: audit(1211870517.175:22): avc:  denied  { name_bind } for  pid=30688 comm="httpd" src=8000 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket
May 27 14:41:58 localhost kernel: audit(1211870518.371:23): avc:  denied  { name_bind } for  pid=30710 comm="httpd" src=8000 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket
《解決方案》

查過原因了。。 另外一個 soundd 的東西佔用了 8000

如果改成 8008, 8009 就可以用,放棄好了,不用 8000 埠了,太難改了,用 8001 吧。

[ 本帖最後由 signmem 於 2008-5-27 15:42 編輯 ]

[火星人 ] selinux 拒絕改變埠已經有721次圍觀

http://coctec.com/docs/service/show-post-30220.html