查看 Apache 在 Linux 下默认可以使用的端口

执行命令:semanage port -l | grep http服务器输出:[root@ca1 ~]# semanage port -l | grep http http_cache_port_t tcp 3128, 8080, 8118, 8123, 10001-10010 http_cache_port_t udp 3130 http_port_t tcp 80, 443, 488, 8008, 8009, 8443 pegasus_http_port_t tcp 5988 pegasus_https_port_t tcp 5989 [root@ca1 ~]# 表示 Apache 在默认情况下可以使用 80, 443, 488, 8008, 8009, 8443 端口。