一、基本命令
1、查看系统版本
cat /etc/redhat-release
2、防火墙
# 查看防火墙
systemctl status firewalld
# 停止防火墙
systemctl stopfirewalld
# 启动防火墙
systemctl start firewalld
# 开机自动关闭防火墙
systemctl disable firewalld
# 防火墙开机自启
systemctl enable firewalld
3、selinux
# 获取selinux状态
getenforce
# 关闭selinux(修改之后重启生效)
sed -i 's/SELINUX=enforcing/SELINX=disabled/' /etc/selinux/config