关闭selinux
- 先查询系统是否开启selinux
# getenforce
- 关闭SELinux:
方法1:临时关闭(不用重启机器):
# setenforce 0
- 设置SELinux 成为permissive模式
- setenforce 1 设置SELinux 成为enforcing模式
方法2:修改配置文件需要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
没有netstat命令
# yum install net-tools
网友评论