CentOS 5.4+OpenVZ+Vtonf實現VPS伺服器的方法

來源:互聯網
上載者:User

到目前為止,Vtonf僅僅支援RedHat, Fedora, 和 CentOS(支援Debian正在計劃中)。

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……………….

買空間、伺服器就上主機網(CNIDC.COM) 虛擬機器主機評測+IDC導航=IDC123.COM。

OK.安裝完成。

開啟vtonf控制台http://yourhostip:8001/

輸入安裝過程中你設定的使用者名稱和密碼

Login Name : admin

Password :

屬於你自己的VPS已經呈現在你的眼前,晚些時候再把vtonf的使用方法弄出來。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.