RHEL7.x系统安装图文详解

2018-11-22  本文已影响0人  静美书斋

一、基本命令

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

文章:

上一篇 下一篇

猜你喜欢

热点阅读