vim /etc/selinux/config
[pre]
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled #永久禁用,需要重启主机生效
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[/pre]
3.禁用防火墙服务 systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service
4.修改网卡配置(前置条件,虚拟机网卡设置为桥接) vim /etc/sysconfig/network-scripts/ifcfg-ens33