centos下nginx bind() to 0.0.0.0:8090 failed

來源:互聯網
上載者:User

標籤:

cnetos下修改連接埠成非常規連接埠出現報錯

2014/01/10 09:20:02 [emerg] 30181#0: bind() to 0.0.0.0:8090 failed (13: Permission denied)

原因seLinux限制了http的連接埠

方法一:關閉seLinux

方法二:添加seLinux允許的http連接埠

1、查看連接埠是否加入seLinux允許的http連接埠

semanage port -l | grep http_port_t

2、添加連接埠

semanage port -a -t http_port_t  -p tcp 8090

在湖聞樟註:如果出現 semanage command not found錯誤就執行

yum -y install policycoreutils-python


centos下nginx bind() to 0.0.0.0:8090 failed

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.