CentOS7.1 最小安装 后 初次配置

安装wget

# yum -y install wget

1、CentOS 7.0关闭默认防火墙启用iptables防火墙

1、关闭firewall:
[root@localhost ~]# systemctl stop firewalld.service            #停止firewall
[root@localhost ~]# systemctl disable firewalld.service        #禁止firewall开机启动


2、安装iptables防火墙
[root@localhost ~]# yum install iptables-services            #安装
[root@localhost ~]# vi /etc/sysconfig/iptables              #编辑防火墙配置文件

CentOS7.1 最小安装 后 初次配置_第1张图片

[root@localhost ~]# systemctl restart iptables.service                  #最后重启防火墙使配置生效
[root@localhost ~]# systemctl enable iptables.service                  #设置防火墙开机启动

[root@localhost ~]# service iptables restart               #重启防火墙


 

 

 

转载于:https://my.oschina.net/u/3226688/blog/848150

你可能感兴趣的:(运维)