KVM 初始安装命令 - 80vps 博客 

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

标签: none

评论已关闭

2018shijiebei w88 18luck 188bet beplay manbet 12bet 95zz shenbo weide1946 ca88