美文网首页
CentOS7 Minimal安装后一些配置

CentOS7 Minimal安装后一些配置

作者: testerzhang | 来源:发表于2020-10-23 15:39 被阅读0次

关闭selinux

  1. 先查询系统是否开启selinux
# getenforce                
  1. 关闭SELinux:

方法1:临时关闭(不用重启机器):

# setenforce 0                  
  • 设置SELinux 成为permissive模式
  • setenforce 1 设置SELinux 成为enforcing模式

方法2:修改配置文件需要重启机器:

修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可

没有netstat命令

# yum install net-tools

相关文章

网友评论

      本文标题:CentOS7 Minimal安装后一些配置

      本文链接:https://www.haomeiwen.com/subject/nmvvmktx.html