[原创]CentOS 5.4+OpenVZ+Vtonf自建VPS服务器

四 29th, 2010 | Posted by | Filed under Linux

CentOS-5.4-i386系统(Vtonf不支持x86-64的系统,安装过程会出错,在其INSTALL中也有说明)
1、关闭SELinux
打开setup界面–firewall configureation,将SELinux置为Disabled
或修改

vi /etc/sysconfig/selinux

SELINUX=disabled
SELINUXTYPE=targeted

2、Firewall
如果不想关闭Firewall,需要打开8001端口: 

/sbin/iptables -I INPUT -p tcp –dport 8001 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart 

3、安装 OpenVZ  

cd /etc/yum.repos.d
wget http://download.openvz.org/openvz.repo
rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ
yum search ovzkernel   
yum -y install ovzkernel 
yum -y install vzctl vzquota

vi /etc/sysctl.conf

修改或添加以下内容

net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.conf.default.forwarding=1

使之生效:

sysctl -p

重启系统

reboot

uname -r

如果安装正常应该显示为:

2.6.18-164.15.1.el5.028stab068.9

4、安装Vtonf

yum -y install vzpkg expect

wget http://mesh.dl.sourceforge.net/sourceforge/vtonf/vtonfinstaller.1.0-beta1.tar.gz
tar xvfz vtonfinstaller.1.0-beta1.tar.gz
cd vtonfinstaller.1.0-beta1
./install

会问你是否开始安装程序,输入yes

Do you wish to start the installation procedure (y/n)? : y
Starting installation
Please wait……………….

 

OK.安装完成。

打开vtonf控制面板http://yourhostip:8001/

输入安装过程中你设置的用户名和密码
Login Name : admin
Password :

属于你自己的VPS已经呈现在你的眼前,晚些时候再把vtonf的使用方法弄出来。

  1. boydu
    五 8th, 201022:37

    好东西啊,呵呵,谢谢分享
    .-= boydu的最新日志中国最美瑜伽教练 节目现场大秀性感身段 =-.

  2. 文夕
    五 22nd, 201009:38

    好专业啊~

  3. 由于政策原因。vpS已经不得不要了!

  4. 林香玉
    六 12th, 201018:22

    呼呼,真的很不错哦,谢谢您的分享,有时间去我的这里看看吧!

  5. 外链
    六 12th, 201018:27

    支持一下你吧 有空来我网站游游

  6. 北大青鸟
    六 12th, 201018:29

    很不错的博客,赞一下。

  7. 易棋牌
    六 14th, 201010:43

    不错哦““““有空来我这看看