浏览:1671|更新:2017-04-26 04:27在CenTos 7上开端口号。工具/原料Centos 7方法/步骤1查询端口号:firewall-cmd --query-port=8020/tcp查询端口号8020 是否开启!2开永久端口号:firewall-cmd --add-port=8020/tcp --permanent这里把8020替换为需要开的端口号, --permanent是指永久的意思。3如何执行一行命令开多个端口号?开永久端口号:firewall-cmd --add-port=8020/tcp --permanent&&开永久端口号:firewall-cmd --add-port=8088/tcp --permanent