CentOS⾃带是Python2版本,系统很多软件⽤的是python2,⽽我们⽇常开发中 使⽤最多的却是Python3版本。使⽤CentOS的yum直接安装Python3会报错,因为Python3不在CentOS的默认安装源⾥。这种情况下,可以使⽤以下方法安装Python3.7
一. 防⽕墙
CentOS7/RHEL7系统默认的iptables管理⼯具是firewalld,不再是以往的iptablesservices,命令⽤起来也是不⼀样了,当然你也可以选择卸载firewalld,安装 iptables-services。
1 安装firewalld(如果没有安装firewalld⾸先要安装 )
sudo yum -y install firewalld
2 firewalld基本使⽤
启动: systemctl start firewalld
重启: systemctl restart firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁⽤ : systemctl disable firewalld
开机启⽤ : systemctl enable firewalld
3 配置防⽕墙firewalld-cmd