CentOS firewalld 防火牆操做

Centos 7 開啓端口
CentOS 7 默認沒有使用iptables,因此經過編輯iptables的配置文件來開啓80端口是不能夠的tcp

CentOS 7 採用了 firewalld 防火牆ip

如要查詢是否開啓80端口則:cmd

[root@joe-pc ~]# firewall-cmd --query-port=80/tcptable

no配置

下面咱們開啓80端口:iptables

[root@joe-pc ~]# firewall-cmd --add-port=80/tcp
success防火牆

相關文章
相關標籤/搜索