安装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 #编辑防火墙配置文件
[root@localhost ~]# systemctl restart iptables.service #最后重启防火墙使配置生效
[root@localhost ~]# systemctl enable iptables.service #设置防火墙开机启动
[root@localhost ~]# service iptables restart #重启防火墙