• linux怎么开启端口?

    2018-11-30 笑清风 linux

    Centos7之后默认使用的firewall防火墙,而不是Centos6使用的iptables,所以请仔细检查自己服务器的版本。以下是笑清风博客介绍Centos7下的开启端口方法(以25为例): 1、运行命令,获取活动的区域: firewall-cmd --get-active-zones2、执行如下命令命令: firewall-cmd --zone=public --add-port=25/tcp --permanent3、重启防火墙,运行命令: firewall-cmd --...

    912 次 0 条

  • Centos7怎么开启端口?

    2018-11-11 笑清风 linux

    Centos7怎么开启端口? CentOS7默认没有使用iptables,所以通过编辑iptables的配置文件来开启80端口是不可以的, CentOS7采用的是firewalld 防火墙,如果没有安装的话,可以使用yum install firewalld firewalld-config进行安装。 如要查询是否开启80端口,显示no,表示没有开启端口:[root@VM_0_16_centos ~]# firewall-cmd --query-port=8...

    1142 次 1 条