天天看點

openvz安裝

openvz安裝過程:

主系統:Centos 6.0

安裝方法:yum

1、添加yum源

   #cd /etc/yum.repos.d

   #wget http://download.openvz.org/openvz.repo

2、更新系統

   #yum update

3、安裝

   #yum install ovzkernel vzctl

4、配置啟動項為openvz

   #vim /boot/grub/menu.list

   把啟動項設定為如下:

   title OpenVZ (2.6.8-022stab029.1)

        root (hd0,0)

        kernel /vmlinuz-2.6.8-022stab029.1 ro root=/dev/sda5

        initrd /initrd-2.6.8-022stab029.1.img

5、重新開機

   #reboot

6、啟動openvz

   # /sbin/service vz start

7、可安裝web管理界面

   #wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh

安裝完成:

  安裝完成後通路:

   http://IP:3000

參考文檔:

http://wiki.openvz.org/Yum

http://wiki.openvz.org/Quick_installation

繼續閱讀