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

浙公网安备 33010602011771号