http不能使用端口 centos

 

 

 nginx: [emerg] bind() to 0.0.0.0:2280 failed (13: Permission denied

 

 

[root@localhost conf.d]# nano site.conf
[root@localhost conf.d]# sudo systemctl restart nginx.service
[root@localhost conf.d]# semanage port -l | grep http_port_t
http_port_t tcp 22280, 80, 81, 443, 488, 8008, 8009, 8443, 9000
pegasus_http_port_t tcp 5988
[root@localhost conf.d]# semanage port -a -t http_port_t -p tcp 22280

 

posted @ 2022-03-10 10:32  南城编程Die师  阅读(49)  评论(0)    收藏  举报