KVM 初始安装命令
安装相关组件
yum -y install sysstat
yum -y install lvm2
yum -y install wget
创建VG分区
pvcreate /dev/sdb1
vgcreate -s 32M kvmvg /dev/sdb1 (必须使用32M的块)
安装solusvm
wget http://soluslabs.com/installers/solusvm/install
chmod 755 install
./install
测试磁盘性能
dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
一.关闭iptables
1.iptables -F
2.service iptables save 保存规则
3.service iptables stop 停止
二.关闭selinux
1.vi etc/selinux/config
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 # 将这个更换为 disabled
SELINUXTYPE= can take one of these two values:
targeted - Targeted processes are protected,
mls - Multi Level Security protection.
SELINUXTYPE=targeted
2.关闭内存中selinux规则
setenforce 0
评论已关闭