<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[自建VPS服务器基于CentOS 5.5+OpenVZ+Vtonf（汉化包）]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Linux技术]]></category>
<pubDate>Wed, 18 May 2011 14:51:14 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	Vtonf是一款免费的基于web界面的控制面板（符合GPL），它可以管理OpenVz上虚拟专用服务器（VPS）。使用它可以很简单地创建和管理OpenVZ上的虚拟机。到目前为止，Vtonf仅仅支持RedHat, Fedora, 和 CentOS（支持Debian正在计划中）。<br/> <br/>CentOS-5.5-i386系统(Vtonf不支持x86-64的系统，安装过程会出错，在其INSTALL中也有说明)<br/> <br/>1、关闭SELinux<br/> <br/>编辑vim /etc/sysconfig/selinux 修改为：<br/>SELINUX=disabled<br/>SELINUXTYPE=targeted<br/> <br/>2、关闭Firewall<br/> <br/>如果不想关闭Firewall，需要输入下列规则打开8001端口：<br/>/sbin/iptables -I INPUT -p tcp --dport 8001 -j ACCEPT<br/>/etc/rc.d/init.d/iptables save<br/>/etc/init.d/iptables restart<br/> <br/>3、安装 OpenVZ<br/>cd /etc/yum.repos.d<br/>wget http://download.openvz.org/openvz.repo<br/>rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ<br/>yum search ovzkernel<br/>yum -y install ovzkernel<br/>yum -y install vzctl vzquota<br/> <br/>编辑vim /etc/sysctl.conf，修改或添加以下内容：<br/>net.ipv4.ip_forward = 1<br/>net.ipv4.conf.default.proxy_arp = 0<br/>net.ipv4.conf.all.rp_filter = 1<br/>kernel.sysrq = 1<br/>net.ipv4.conf.default.send_redirects = 1<br/>net.ipv4.conf.all.send_redirects = 0<br/>net.ipv4.icmp_echo_ignore_broadcasts = 1<br/>net.ipv4.conf.default.forwarding = 1<br/>使之生效:<br/>sysctl -p<br/>重启系统<br/>reboot<br/>uname -r<br/>如果安装正常应该显示为：<br/>2.6.18-194.el5.028stab068.9<br/> <br/>4、安装Vtonf<br/>yum -y install vzpkg expect<br/>wget -c http://mesh.dl.sourceforge.net/sourceforge/vtonf/vtonfinstaller.1.0-beta1.tar.gz<br/>（此软件包比较大，一定要在wget后加－c参数，这样在下载停顿的时候可以按Ctrl＋C结束，再续传！）<br/>tar zxvf vtonfinstaller.1.0-beta1.tar.gz<br/>cd vtonfinstaller.1.0-beta1<br/>./install<br/>会问你是否开始安装程序，输入yes<br/> <br/>Do you wish to start the installation procedure (y/n)? : y<br/>Starting installation<br/>Please wait…………<br/><a href="http://www.zhanghaijun.com/attachment.php?fid=25" target="_blank"><img src="http://www.zhanghaijun.com/attachment.php?fid=25" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://www.zhanghaijun.com/attachment.php?fid=26" target="_blank"><img src="http://www.zhanghaijun.com/attachment.php?fid=26" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://www.zhanghaijun.com/attachment.php?fid=27" target="_blank"><img src="http://www.zhanghaijun.com/attachment.php?fid=27" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://www.zhanghaijun.com/attachment.php?fid=28" target="_blank"><img src="http://www.zhanghaijun.com/attachment.php?fid=28" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://www.zhanghaijun.com/attachment.php?fid=29" target="_blank"><img src="http://www.zhanghaijun.com/attachment.php?fid=29" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>安装完成。<br/> <br/>打开vtonf控制面板：http://服务器ip:8001/<br/> <br/>输入安装过程中你设置的用户名和密码<br/>Login Name : admin<br/>Password :<br/> <br/>属于你自己的VPS已经呈现在你的眼前。<br/> <br/>5、安装Vtonf汉化包（可选）<br/>wget http://www.ha97.com/code/vtonf-cn-1.0.tar.bz2<br/>tar xvfj vtonf-cn-1.0.tar.bz2<br/>cd vtonf-cn<br/>./vtonf-cn.sh /usr/local/vtonf<br/>汉化完成，打开登录界面会出现简体中文语言选择。<br/> <br/>注：以上配置在CentOS 5.5 32位和64位系统上测试通过，2011.05.18重新部署过。<br/>Tags - <a href="http://www.zhanghaijun.com/tags/centos/" rel="tag">centos</a> , <a href="http://www.zhanghaijun.com/tags/openvz/" rel="tag">openvz</a> , <a href="http://www.zhanghaijun.com/tags/vtonf/" rel="tag">vtonf</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] 自建VPS服务器基于CentOS 5.5+OpenVZ+Vtonf（汉化包）]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>