“Centos7 使用kvm创建虚拟机”的版本间的差异
来自CloudWiki
(→安装kvm) |
(→1. KVM环境配置) |
||
第1行: | 第1行: | ||
==1. KVM环境配置== | ==1. KVM环境配置== | ||
关闭Selinux | 关闭Selinux | ||
− | <nowiki>root@ localhost ~]#vim /etc/sysconfig/selinux | + | <nowiki> |
+ | root@ localhost ~]#vim /etc/sysconfig/selinux | ||
# 修改SELINUX=disabled | # 修改SELINUX=disabled | ||
# This file controls the state of SELinux on the system. | # This file controls the state of SELinux on the system. | ||
第14行: | 第15行: | ||
SELINUXTYPE=targeted | SELINUXTYPE=targeted | ||
− | </nowiki> | + | </nowiki> |
2019年11月13日 (三) 00:36的版本
1. KVM环境配置
关闭Selinux
root@ localhost ~]#vim /etc/sysconfig/selinux # 修改SELINUX=disabled # 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=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted