<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VPS主机租用</title>
	<atom:link href="http://vps.15099.net/feed" rel="self" type="application/rss+xml" />
	<link>http://vps.15099.net</link>
	<description>经济、实用的VPS从这里开始</description>
	<lastBuildDate>Tue, 30 Jun 2009 06:34:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>openvz vps最新促销</title>
		<link>http://vps.15099.net/2009/06/openvz-new-coupon-685.html</link>
		<comments>http://vps.15099.net/2009/06/openvz-new-coupon-685.html#comments</comments>
		<pubDate>Tue, 30 Jun 2009 04:47:55 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[vps新闻]]></category>
		<category><![CDATA[促销]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=685</guid>
		<description><![CDATA[配置：
内存：128M
磁盘：10G
IP: 一个独立ip
系统：centos5.3
流量：100G
还剩余2个可购买，价格为：50元/每月，
]]></description>
			<content:encoded><![CDATA[<p>配置：</p>
<p>内存：128M</p>
<p>磁盘：10G</p>
<p>IP: 一个独立ip</p>
<p>系统：centos5.3</p>
<p>流量：100G</p>
<p>还剩余2个可购买，价格为：50元/每月，</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/06/openvz-new-coupon-685.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机上配置防ping的方法</title>
		<link>http://vps.15099.net/2009/02/the-ways-of-anti-ping-in-vps-hosting-668.html</link>
		<comments>http://vps.15099.net/2009/02/the-ways-of-anti-ping-in-vps-hosting-668.html#comments</comments>
		<pubDate>Wed, 25 Feb 2009 12:58:47 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=668</guid>
		<description><![CDATA[
在/etc/rc.d/rc.local最后添加 echo &#8220;1&#8243; &#62;  /proc/sys/net/ipv4/icmp_echo_ignore_all  语句，将其值改为1后为禁止PING
将其值改为0后为解除禁止PING
使用iptable最简单 0是echo-reply，8是echo-request禁止出去的icmp echo-request  意义不是很大
iptables -A OUTPUT -p icmp &#8211;icmp-type echo-request -j DROP
或者
iptables -A OUTPUT -p icmp &#8211;icmp-type 8 -j DROP
允许客户端的ping
iptables -I INPUT -i eth0 -p icmp -s 0/0 -d 0/0 -j ACCEPT
禁止客户端的ping
iptables -I INPUT -i eth0 -p icmp -s 0/0 -d 0/0 -j DROP
允许出去的ping 请求
SERVER_IP=&#8221;202.54.10.20&#8243;
iptables -A OUTPUT -p icmp &#8211;icmp-type [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>在/etc/rc.d/rc.local最后添加 <a>echo &#8220;1&#8243; &gt;  /proc/sys/net/ipv4/icmp_echo_ignore_all</a>  语句，将其值改为1后为禁止PING<br />
将其值改为0后为解除禁止PING</li>
<li>使用iptable最简单 0是echo-reply，8是echo-request禁止出去的icmp echo-request  意义不是很大<br />
iptables -A OUTPUT -p icmp &#8211;icmp-type echo-request -j DROP<br />
或者<br />
iptables -A OUTPUT -p icmp &#8211;icmp-type 8 -j DROP</p>
<p>允许客户端的ping<br />
iptables -I INPUT -i eth0 -p icmp -s 0/0 -d 0/0 -j ACCEPT</p>
<p>禁止客户端的ping</p>
<p>iptables -I INPUT -i eth0 -p icmp -s 0/0 -d 0/0 -j DROP</p>
<p>允许出去的ping 请求<br />
SERVER_IP=&#8221;202.54.10.20&#8243;<br />
iptables -A OUTPUT -p icmp &#8211;icmp-type 8 -s $SERVER_IP -d 0/0 -m state &#8211;state NEW,ESTABLISHED,RELATED -j ACCEPT</p>
<p>iptables -A INPUT -p icmp &#8211;icmp-type 0 -s 0/0 -d $SERVER_IP -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/02/the-ways-of-anti-ping-in-vps-hosting-668.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VZCC/VZPP/VZCP/VZMC/SVPS/解释</title>
		<link>http://vps.15099.net/2009/02/vzcc-vzpp-vzcp-vzmc-svps-explication-664.html</link>
		<comments>http://vps.15099.net/2009/02/vzcc-vzpp-vzcp-vzmc-svps-explication-664.html#comments</comments>
		<pubDate>Mon, 23 Feb 2009 00:13:46 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[名称解释]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=664</guid>
		<description><![CDATA[&#8211;VZCC&#8211;
VZCC，全称是Virtuozzo Control Center是基于web界面的提供给服务器管理员用的管理中心。可以管理这台服务器上的所有VPS的启动、停止、新建、删除、备份、恢复等。登录地址是https://SVPS的IP:4643
注意：VZCC只能管理当前这台服务器，不能管理别的VZ服务器。
&#8211;VZPP&#8211;
VZPP，全称是Virtuozzo Power Panel是基于web界面的提供给每个VPS用户的终端客户管理界面，通过VZPP，VPS的用户可以管理自己VPS的启动、停止、备份、恢复、重新安装等操作。但是不能管理别的VPS
所以它是提供给最终VPS用户的管理界面。登录地址是https://要管理的VPS地址:4643
&#8211;VZCP&#8211;
VZCP，全称是Virtuozzo Control Panel它是对VZCC/VZPP这种web方式管理面板的一个通用称呼。仅仅表示所有web界面形式的管理方式，并不意味着另外一个独立的登录地址和入口，这是一个不太标准的说法，建议使用VZCC和VZPP的准确名称，不要使用VZCP这个模糊、概括的名称。
&#8211;VZMC&#8211;
VZMC，全称是Virtuozzo Managerment Console在Windows是一个基于Windows图形环境的MMC控制台，在Linux下则是一个基于GTK的图形应用程序，需要有KDE/GNOME图形环境，通过VZMC，可以同时管理多台Virtuozzo服务器所有VZCC/VZPP上的功能，在VZMC上都能得以体现并且还有更多强大的资源设置参数和功能，附带应用程序模板管理向导等。亦可设置VPS集群，自动分配VPSID和IP等资源是Virtuozzo提供的各种工具中，最高级的管理工具。
&#8211;SVPS&#8211;
SVPS，全称是Service Virtual Private Server在Virtuozzo内部，有一个特殊的VPS，叫做Service VPS顾名思义，他为Virtuozzo提供了管理服务。例如VZCC和VZPP两个web管理界面，实质上都是由SVPS提供的服务。所以，VZCC的登录地址，就是登录SVPS的4643端口，为了用户能够从web上访VZCC/VZPP，需要给SVPS赋予一个单独的公网IP。如果使用内网IP，则用户无法反问VZCC/VZPP界面了，如果这个VPS被关闭甚至是被删除了，那么用户也无法反问VZCC/VZPP界面，这个VPS具有很高的安全设置，比如禁止Admin/Root用户登录。所以尽量不要试图修改SVPS内部的各种参数避免造成系统崩溃。
]]></description>
			<content:encoded><![CDATA[<p>&#8211;VZCC&#8211;</p>
<p>VZCC，全称是Virtuozzo Control Center是基于web界面的提供给服务器管理员用的管理中心。可以管理这台服务器上的所有VPS的启动、停止、新建、删除、备份、恢复等。登录地址是https://SVPS的IP:4643<br />
注意：VZCC只能管理当前这台服务器，不能管理别的VZ服务器。</p>
<p>&#8211;VZPP&#8211;</p>
<p>VZPP，全称是Virtuozzo Power Panel是基于web界面的提供给每个VPS用户的终端客户管理界面，通过VZPP，VPS的用户可以管理自己VPS的启动、停止、备份、恢复、重新安装等操作。但是不能管理别的VPS<br />
所以它是提供给最终VPS用户的管理界面。登录地址是https://要管理的VPS地址:4643</p>
<p>&#8211;VZCP&#8211;</p>
<p>VZCP，全称是Virtuozzo Control Panel它是对VZCC/VZPP这种web方式管理面板的一个通用称呼。仅仅表示所有web界面形式的管理方式，并不意味着另外一个独立的登录地址和入口，这是一个不太标准的说法，建议使用VZCC和VZPP的准确名称，不要使用VZCP这个模糊、概括的名称。</p>
<p>&#8211;VZMC&#8211;</p>
<p>VZMC，全称是Virtuozzo Managerment Console在Windows是一个基于Windows图形环境的MMC控制台，在Linux下则是一个基于GTK的图形应用程序，需要有KDE/GNOME图形环境，通过VZMC，可以同时管理多台Virtuozzo服务器所有VZCC/VZPP上的功能，在VZMC上都能得以体现并且还有更多强大的资源设置参数和功能，附带应用程序模板管理向导等。亦可设置VPS集群，自动分配VPSID和IP等资源是Virtuozzo提供的各种工具中，最高级的管理工具。</p>
<p>&#8211;SVPS&#8211;</p>
<p>SVPS，全称是Service Virtual Private Server在Virtuozzo内部，有一个特殊的VPS，叫做Service VPS顾名思义，他为Virtuozzo提供了管理服务。例如VZCC和VZPP两个web管理界面，实质上都是由SVPS提供的服务。所以，VZCC的登录地址，就是登录SVPS的4643端口，为了用户能够从web上访VZCC/VZPP，需要给SVPS赋予一个单独的公网IP。如果使用内网IP，则用户无法反问VZCC/VZPP界面了，如果这个VPS被关闭甚至是被删除了，那么用户也无法反问VZCC/VZPP界面，这个VPS具有很高的安全设置，比如禁止Admin/Root用户登录。所以尽量不要试图修改SVPS内部的各种参数避免造成系统崩溃。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/02/vzcc-vzpp-vzcp-vzmc-svps-explication-664.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>什么是vps（视频教程）</title>
		<link>http://vps.15099.net/2009/02/what-is-vps-video-course-650.html</link>
		<comments>http://vps.15099.net/2009/02/what-is-vps-video-course-650.html#comments</comments>
		<pubDate>Mon, 16 Feb 2009 00:07:27 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售前问题]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=650</guid>
		<description><![CDATA[ 
]]></description>
			<content:encoded><![CDATA[<p> <object width="100%" height="50%" data="http://eompi.com/components/com_seyret/localplayer/player.swf" type="application/x-shockwave-flash"><param name="id" value="seyretp" /><param name="name" value="seyretp" /><param name="flashvars" value="width=100%&amp;height=100%&amp;enablejs=true&amp;file=http://eompi.com/seyretfiles/cache/pro/vyoukucom/a183677ae5f9df44ea0e1c092ca3e2b5.xml&amp;image=http://vimg10.youku.com/0100641F464997D9392015015B187A2976C120-E5D7-CC89-F76B-DD57402E9A3D&amp;autostart=false&amp;logo=http://eompi.com/components/com_seyret/localplayer/logo.png&amp;skin=http://eompi.com/components/com_seyret/localplayer/skins/seyret_default1.swf&amp;repeat=false&amp;fullscreen=true" /><param name="src" value="http://eompi.com/components/com_seyret/localplayer/player.swf" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/02/what-is-vps-video-course-650.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>特价xen vps促销</title>
		<link>http://vps.15099.net/2009/02/xen-vps-special-promotions-647.html</link>
		<comments>http://vps.15099.net/2009/02/xen-vps-special-promotions-647.html#comments</comments>
		<pubDate>Sat, 14 Feb 2009 08:20:31 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[vps新闻]]></category>
		<category><![CDATA[促销]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=647</guid>
		<description><![CDATA[感谢各位朋友春节期间还有这么多朋友来信咨询我们的vps主机,回馈新老客户，我们决定推出两款促销，有需要的朋友请尽快办理
vps-spec-1:
空间：2G
月流量：100G
内存：64M
费用：150/3个月
主机性能测试： http://vpstest.15099.net/

这款最要针对从没有使用过vps的客户试用，
vps-spec-2:
空间：5G
月流量：150G
内存：128M
费用：200/3个月
以上两款系统都为linux操作系统，分配一个独立ip
]]></description>
			<content:encoded><![CDATA[<p>感谢各位朋友春节期间还有这么多朋友来信咨询我们的<a href="http://vps.15099.net">vps主机</a>,回馈新老客户，我们决定推出两款促销，有需要的朋友请尽快办理</p>
<p><strong>vps-spec-1:</strong></p>
<p>空间：2G</p>
<p>月流量：100G</p>
<p>内存：64M</p>
<p>费用：150/3个月</p>
<p>主机性能测试： <a href="http://vpstest.15099.net/">http://vpstest.15099.net/</a></p>
<p><span id="more-647"></span></p>
<p>这款最要针对从没有使用过vps的客户试用，</p>
<p><strong>vps-spec-2:</strong></p>
<p>空间：5G</p>
<p>月流量：150G</p>
<p>内存：128M</p>
<p>费用：200/3个月</p>
<p>以上两款系统都为linux操作系统，分配一个独立ip</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/02/xen-vps-special-promotions-647.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>虚拟化发展势在必行 VPS主机笑迎2009</title>
		<link>http://vps.15099.net/2009/02/virtualization-is-imperative-the-development-of-host-vps-meet-2009virtualization-is-imperative-the-development-of-host-vps-meet-2009-643.html</link>
		<comments>http://vps.15099.net/2009/02/virtualization-is-imperative-the-development-of-host-vps-meet-2009virtualization-is-imperative-the-development-of-host-vps-meet-2009-643.html#comments</comments>
		<pubDate>Thu, 12 Feb 2009 05:08:06 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[vps新闻]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[域名]]></category>
		<category><![CDATA[美国vps]]></category>
		<category><![CDATA[邮箱]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=643</guid>
		<description><![CDATA[由于我国中小企业众多，不管从消费水平还是实用性来说，网络中低端产品更受到市场的青睐。从最新的统计数字来看，中国有近80%的企业选择了虚拟主 机作为自己开拓市场的平台。其中，民营企业及中小企业以超过55%的比例，从这些数字中不难看出，IDC市场发展的新方向。但随着web 2.0，网络视频，网络播客的迅速走红，各种网络资源的需求也不断增加，一般的虚拟主机已无法满足现有的市场需求。专家预计2009年，将是VPS主机最 为火爆的一年。
VPS(Virtual Private Server)是在一台物理服务器上创建多个相互隔离的虚拟专用服务器。这些虚拟服务器以最大化的效率共享硬件、软件许可证以及管理资源。对其用户和应用 程序来讲，每一个VPS平台的运行和管理都与一台独立主机完全相同，因为每一个VPS均可独立进行重启并拥有自己的root访问权限、用户、IP地址、内 存、过程、文件、应用程序、系统函数库以及配置文件。
VPS和虚拟主机相比，稳定性比虚拟主机高；而和独享主机相比，价格又比独享主机便宜。介于稳定性和性价比，现在已有不少企业和个人站长都使用 VPS主机。VPS主机管理起来也比虚拟主机方便，用户除了可以分配多个虚拟主机及无限企业邮箱外，更具有独立服务器功能，可自行安装程序，单独重启服务 器。换而言之，VPS是一项具备高弹性、高质量及低成本效益的服务器解决方案。
VPS作为新兴的技术，已经为越来越多用户所接受。vps主机租用http://vps.15099.net，秉承一贯的优质服务原则，VPS主机放置于美国3A机房，保证严格控制服务器上用户开通个数，保证用户专享资源。保证为用户提供优质的服务。
据悉，我们VPS主机服务优势：网站提供windows 系列和linux系列的vps技术文档，每篇文章都是针对vps进行的配置才发布；同时提供7&#215;24小时技术支持。
同时我们也帮客户提供域名注册服务及google邮箱服务，有需要的请与我们联系。
]]></description>
			<content:encoded><![CDATA[<p>由于我国中小企业众多，不管从消费水平还是实用性来说，网络中低端产品更受到市场的青睐。从最新的统计数字来看，中国有近80%的企业选择了虚拟主 机作为自己开拓市场的平台。其中，民营企业及中小企业以超过55%的比例，从这些数字中不难看出，IDC市场发展的新方向。但随着web 2.0，网络视频，网络播客的迅速走红，各种网络资源的需求也不断增加，一般的虚拟主机已无法满足现有的市场需求。专家预计2009年，将是VPS主机最 为火爆的一年。</p>
<p><a href="http://vps.15099.net">VPS</a>(Virtual Private Server)是在一台物理服务器上创建多个相互隔离的虚拟专用服务器。这些<a href="http://vps.15099.net">虚拟服务器</a>以最大化的效率共享硬件、软件许可证以及管理资源。对其用户和应用 程序来讲，每一个VPS平台的运行和管理都与一台独立主机完全相同，因为每一个VPS均可独立进行重启并拥有自己的root访问权限、用户、IP地址、内 存、过程、文件、应用程序、系统函数库以及配置文件。</p>
<p>VPS和虚拟主机相比，稳定性比虚拟主机高；而和独享主机相比，价格又比独享主机便宜。介于稳定性和性价比，现在已有不少企业和个人站长都使用 <a href="http://vps.15099.net">VPS主机</a>。VPS主机管理起来也比虚拟主机方便，用户除了可以分配多个虚拟主机及无限企业邮箱外，更具有独立服务器功能，可自行安装程序，单独重启服务 器。换而言之，VPS是一项具备高弹性、高质量及低成本效益的服务器解决方案。</p>
<p>VPS作为新兴的技术，已经为越来越多用户所接受。vps主机租用<a href="http://vps.15099.net">http://vps.15099.net</a><a class="akey" href="http://www.west263.com/" target="_blank"></a>，秉承一贯的优质服务原则，VPS主机放置于美国3A机房，保证严格控制服务器上用户开通个数，保证用户专享资源。保证为用户提供优质的服务。</p>
<p>据悉，我们VPS主机服务优势：网站提供windows 系列和linux系列的vps技术文档，每篇文章都是针对vps进行的配置才发布；同时提供7&#215;24小时技术支持。</p>
<p>同时我们也帮客户提供<strong>域名注册</strong>服务及<strong>google邮箱</strong>服务，有需要的请与我们联系。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/02/virtualization-is-imperative-the-development-of-host-vps-meet-2009virtualization-is-imperative-the-development-of-host-vps-meet-2009-643.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在windows vps主机上图解安装apache php和mysql</title>
		<link>http://vps.15099.net/2009/01/install-apche-php-mysql-in-windows-vps-hosting-614.html</link>
		<comments>http://vps.15099.net/2009/01/install-apche-php-mysql-in-windows-vps-hosting-614.html#comments</comments>
		<pubDate>Thu, 22 Jan 2009 02:55:49 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[windows VPS]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=614</guid>
		<description><![CDATA[概述：本文详细描述如何在我们的windows系列vps主机上配置php环境，包括安装apache和php两个部分。
环境：我们的windows vps主机特惠型
步骤：
1、安装apache
首先安装apache服务，首先下载最新版本到windows  vps主机本地，我写此文章，apache最新版本为2.2.11 ，下载地址 我这里下载的是 apache_2.2.11-win32-x86-no_ssl.msi 无mod_ssl模块。双击下载的软件包 apache_2.2.11-win32-x86-no_ssl.msi，启动apache的安装程序，会显示下图所示

该对话框为apache服务器的欢迎使用界面，单击Next按钮，会显示图2所示对话框
该对话框主要是安装的许可协议，单击图2所示的单选框选中 “I accept the terms in the license agreement”，然后单击Next按钮，显示如下图3对话框
其中主要是对apache服务器的介绍，单击Next按钮，会显示图4对话框
第一个文本框表示计算机的网络域，如果默认，就表示是本机ip地址，我填写15099.net(请各位vps主机客户根据自己的要求设置填写自己相应的域名)，第二个文本框表示服务器的名词，这里我填写vps.15099.net,如果默认，就表示localhost,第三个文本框是系统管理员的电子邮箱地址，这里可以输入自己的邮箱地址，以后再进行修改。界面的下方提示是为所有人提供apche服务，还是仅为当前用户提供服务，这里我选择第一项“for All Users,on Port 80,as a Service &#8211;Recommended”单选按钮，会显示图5
这个对话框可以选择安装类型，有典型安装和定制安装，这里选择典型安装，单击Next按钮，会显示图6对话框
在该对话框中可以自由设定apache的安装目录，在这里选择C:\web\apache目录下，单击Next按钮，会显示图7对话框
单击Install按钮,开始安装apache服务器，会显示图8对话框
安装完成后，会显示如下对话框，提示成功安装了apache服务器
此时，右下角的任务栏会出现一个apache的图标，您可以使用此图标控制apache服务器的启动、关闭、重启等操作。
打开游览器，在地址栏输入：http://vps.15099.net，就可以看到图下画面
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>本文详细描述如何在我们的<a href="http://vps.15099.net/vps-hosting">windows系列vps主机</a>上配置php环境，包括安装apache和php两个部分。</p>
<p><strong>环境：</strong>我们的<a href="http://vps.15099.net/vps-hosting">windows vps</a>主机特惠型</p>
<p><strong>步骤：</strong></p>
<p><strong>1、安装apache</strong></p>
<p>首先安装<a href="http://www.apache.org/">apache</a>服务，首先下载最新版本到windows  vps主机本地，我写此文章，apache最新版本为2.2.11 ，<a href="http://apache.mirror.phpchina.com/httpd/binaries/win32/apache_2.2.11-win32-x86-no_ssl.msi">下载地址</a> 我这里下载的是 <a href="http://apache.mirror.phpchina.com/httpd/binaries/win32/apache_2.2.11-win32-x86-no_ssl.msi">apache_2.2.11-win32-x86-no_ssl.msi</a> 无mod_ssl模块。双击下载的软件包 apache_2.2.11-win32-x86-no_ssl.msi，启动apache的安装程序，会显示下图所示</p>
<div id="attachment_615" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-001.jpg"><img class="size-full wp-image-615" title="apache-install-windows-001" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-001.jpg" alt="图1 apache安装欢迎页面" width="504" height="388" /></a><p class="wp-caption-text">图1 apache安装欢迎页面</p></div>
<p><span id="more-614"></span><br />
该对话框为apache服务器的欢迎使用界面，单击Next按钮，会显示图2所示对话框</p>
<div id="attachment_616" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-002.jpg"><img class="size-full wp-image-616" title="apache-install-windows-002" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-002.jpg" alt="图2 apache接受协议" width="504" height="388" /></a><p class="wp-caption-text">图2 apache接受协议</p></div>
<p>该对话框主要是安装的许可协议，单击图2所示的单选框选中 “I accept the terms in the license agreement”，然后单击Next按钮，显示如下图3对话框</p>
<div id="attachment_617" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-003.jpg"><img class="size-full wp-image-617" title="apache-install-windows-003" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-003.jpg" alt="图3 apache介绍" width="504" height="388" /></a><p class="wp-caption-text">图3 apache介绍</p></div>
<p>其中主要是对apache服务器的介绍，单击Next按钮，会显示图4对话框</p>
<div id="attachment_618" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-004.jpg"><img class="size-full wp-image-618" title="apache-install-windows-004" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-004.jpg" alt="apache-install-windows-004" width="504" height="388" /></a><p class="wp-caption-text">图4 apache选项输入</p></div>
<p>第一个文本框表示计算机的网络域，如果默认，就表示是本机ip地址，我填写15099.net(请各位vps主机客户根据自己的要求设置填写自己相应的域名)，第二个文本框表示服务器的名词，这里我填写<a href="http://vps.15099.net">vps.15099.net</a>,如果默认，就表示localhost,第三个文本框是系统管理员的电子邮箱地址，这里可以输入自己的邮箱地址，以后再进行修改。界面的下方提示是为所有人提供apche服务，还是仅为当前用户提供服务，这里我选择第一项“for All Users,on Port 80,as a Service &#8211;Recommended”单选按钮，会显示图5</p>
<div id="attachment_619" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-005.jpg"><img class="size-full wp-image-619" title="apache-install-windows-005" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-005.jpg" alt="图5 安装类型" width="504" height="388" /></a><p class="wp-caption-text">图5 安装类型</p></div>
<p>这个对话框可以选择安装类型，有典型安装和定制安装，这里选择典型安装，单击Next按钮，会显示图6对话框</p>
<div id="attachment_620" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-006.jpg"><img class="size-full wp-image-620" title="apache-install-windows-006" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-006.jpg" alt="图6 安装路径" width="504" height="388" /></a><p class="wp-caption-text">图6 安装路径</p></div>
<p>在该对话框中可以自由设定apache的安装目录，在这里选择C:\web\apache目录下，单击Next按钮，会显示图7对话框</p>
<div id="attachment_621" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-007.jpg"><img class="size-full wp-image-621" title="apache-install-windows-007" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-007.jpg" alt="图7 安装准备" width="504" height="388" /></a><p class="wp-caption-text">图7 安装准备</p></div>
<p>单击Install按钮,开始安装apache服务器，会显示图8对话框</p>
<div id="attachment_623" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-008.jpg"><img class="size-full wp-image-623" title="apache-install-windows-008" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-008.jpg" alt="图8 开始安装" width="504" height="388" /></a><p class="wp-caption-text">图8 开始安装</p></div>
<p>安装完成后，会显示如下对话框，提示成功安装了apache服务器</p>
<div id="attachment_624" class="wp-caption alignnone" style="width: 514px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-009.jpg"><img class="size-full wp-image-624" title="apache-install-windows-009" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-009.jpg" alt="图9 安装成功" width="504" height="388" /></a><p class="wp-caption-text">图9 安装成功</p></div>
<p>此时，右下角的任务栏会出现一个apache的图标，您可以使用此图标控制apache服务器的启动、关闭、重启等操作。</p>
<p>打开游览器，在地址栏输入：http://vps.15099.net，就可以看到图下画面</p>
<div id="attachment_626" class="wp-caption alignnone" style="width: 459px"><a href="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-010.jpg"><img class="size-full wp-image-626" title="apache-install-windows-010" src="http://vps.15099.net/wp-content/uploads/2009/01/apache-install-windows-010.jpg" alt="图10 apache正常启动" width="449" height="261" /></a><p class="wp-caption-text">图10 apache正常启动</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/install-apche-php-mysql-in-windows-vps-hosting-614.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机上快速配置lxadmin控制面板</title>
		<link>http://vps.15099.net/2009/01/configure-lxadmin-cpanel-in-vps-hosting-506.html</link>
		<comments>http://vps.15099.net/2009/01/configure-lxadmin-cpanel-in-vps-hosting-506.html#comments</comments>
		<pubDate>Wed, 21 Jan 2009 21:29:11 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[vps控制面板]]></category>
		<category><![CDATA[lxadmin]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=506</guid>
		<description><![CDATA[Lxadmin是一个开源的VPS控制面板。免费、高效是是它的绝对优点。使用无管理服务VPS，选择Lxadmin不仅能降低VPS的使用费用，而且它让你控制VPS变得更加简单。
Lxadmin最新的5.0版支持Linux，未来的6.0将支持Windows。下面介绍一下如何安装使用Lxadmin。
如果使用的VPS的管理界面是HyperVM，从控制界面”Console”下的”Rebuild”可以快速重装系统。我装的是CentOS- i386-hostinabox，这其实就是集成了Lxadmin控制面板的CentOS，快速简单。如果你的主机上没有提供这个版本，而你又想使用免费 的Lxadmin，没关系，我来教你。先安装标准的CentOS5，然后用Putty连接终端，输入命令：
* wget http://download.lxlabs.com/downl … n-install-master.sh
* sh lxadmin-install-master.sh
国内主机可能安装要慢点了，因为是在线安装（更新源在国外），使用美国主机的朋友们很快就能安装完了。安装完后你除了安好Lxadmin，同时也基 本安好了Apache、Lighttpd、MySQL、Xcache、Bind、Djbdns等一系列服务器软件。下面我们完成后续安装，在终端完成 （/*这里面是备注，不要执行*/）。
* yum install php-bcmath /*高精度数学运算组件，默认没安装，MD5运算时用到*/
* yum check-update /*检查全部更新*/
* yum update /*更新全部更新*/
* yum clean all /*清理全部缓存的安装文件（都安装完了，留着浪费空间啊）*/
OK，基本完成，可以把终端关闭了。我们来登录Lxadmin，第一次登陆用户名和密码都是admin，地址：
* https://yourdomain:7777/ /*安全连接，不过默认证书不受IE信任*/
* http://yourdomain:7778/ /*还是用这个普通链接吧*/
一、选择要使用的服务器套件
Home -&#62; Home -&#62; Severinux -&#62; SwitchProgram
服务器程序lighttpd的效率远远高于Apache，高手可以选择lighttpd（Rewrite规则和Apache不一样，有点麻烦，如果 你只用WordPress，请参考诡谲的文章）新手还是算了老老实实用Apache吧。Dns用djbdns，一个轻量级的高效DNS。
二、域名设置
Lxadmin控制面板有个特点，必须先设置DNS服务器，否则不能添加域名。其实设置了可以不用，大家可以随便设置。大家买的廉价VPS本来系统资源就不多，就不要再让它多负担了。不过，如何使用DNS还是要介绍的。
Home -&#62; Home -&#62; Resources -&#62; DNS Templates
名称随便填，选择用于DNS服务的IP，下面两个DNS服务用域名一般填类似ns.youtdomain.com的格式（没有要求，习惯而已），添加就可以了。
我们以在Godaddy注册的域名为例，看看如何拥有自己的DNS服务器。首先进入域名管理界面，在Host Summary添加内容，域名就是刚才设好的DNS服务器的，IP同样是刚才填的。
将DNS服务器改为你自己的，这个不会的话自己查吧。
现在就可以添加域名了，添加后，系统会自动产生一个用户名为yourdomain.com密码同管理员密码的FTP账户。这个账户只能FTP对应域名的文件夹。还有一个admin的可以控制所有站点的。
开头说到安装完后占用空间很大，那是因为Lxadmin预置了各种网站程序供用户快捷安装。看了一下，软件版本都太老了，还是删除节省空间吧，位置/home/lxadmin/httpd/installsoft/
Lxadmin的使用就介绍到这里，我只是抛砖引玉，把疑惑最多的内容说一下，其余的自己学吧。
祝大家玩儿的愉快！！
]]></description>
			<content:encoded><![CDATA[<p>Lxadmin是一个开源的VPS控制面板。免费、高效是是它的绝对优点。使用无管理服务VPS，选择Lxadmin不仅能降低VPS的使用费用，而且它让你控制VPS变得更加简单。</p>
<p>Lxadmin最新的5.0版支持Linux，未来的6.0将支持Windows。下面介绍一下如何安装使用Lxadmin。<br />
如果使用的VPS的管理界面是HyperVM，从控制界面”Console”下的”Rebuild”可以快速重装系统。我装的是CentOS- i386-hostinabox，这其实就是集成了Lxadmin控制面板的CentOS，快速简单。如果你的主机上没有提供这个版本，而你又想使用免费 的Lxadmin，没关系，我来教你。先安装标准的CentOS5，然后用Putty连接终端，输入命令：</p>
<p>* wget http://download.lxlabs.com/downl … n-install-master.sh<br />
* sh lxadmin-install-master.sh</p>
<p>国内主机可能安装要慢点了，因为是在线安装（更新源在国外），使用美国主机的朋友们很快就能安装完了。安装完后你除了安好Lxadmin，同时也基 本安好了Apache、Lighttpd、MySQL、Xcache、Bind、Djbdns等一系列服务器软件。下面我们完成后续安装，在终端完成 （/*这里面是备注，不要执行*/）。</p>
<p>* yum install php-bcmath /*高精度数学运算组件，默认没安装，MD5运算时用到*/<br />
* yum check-update /*检查全部更新*/<br />
* yum update /*更新全部更新*/<br />
* yum clean all /*清理全部缓存的安装文件（都安装完了，留着浪费空间啊）*/</p>
<p>OK，基本完成，可以把终端关闭了。我们来登录Lxadmin，第一次登陆用户名和密码都是admin，地址：</p>
<p>* https://yourdomain:7777/ /*安全连接，不过默认证书不受IE信任*/<br />
* http://yourdomain:7778/ /*还是用这个普通链接吧*/</p>
<p>一、选择要使用的服务器套件</p>
<p>Home -&gt; Home -&gt; Severinux -&gt; SwitchProgram</p>
<p>服务器程序lighttpd的效率远远高于Apache，高手可以选择lighttpd（Rewrite规则和Apache不一样，有点麻烦，如果 你只用WordPress，请参考诡谲的文章）新手还是算了老老实实用Apache吧。Dns用djbdns，一个轻量级的高效DNS。</p>
<p>二、域名设置</p>
<p>Lxadmin控制面板有个特点，必须先设置DNS服务器，否则不能添加域名。其实设置了可以不用，大家可以随便设置。大家买的廉价VPS本来系统资源就不多，就不要再让它多负担了。不过，如何使用DNS还是要介绍的。</p>
<p>Home -&gt; Home -&gt; Resources -&gt; DNS Templates</p>
<p>名称随便填，选择用于DNS服务的IP，下面两个DNS服务用域名一般填类似ns.youtdomain.com的格式（没有要求，习惯而已），添加就可以了。</p>
<p>我们以在Godaddy注册的域名为例，看看如何拥有自己的DNS服务器。首先进入域名管理界面，在Host Summary添加内容，域名就是刚才设好的DNS服务器的，IP同样是刚才填的。</p>
<p>将DNS服务器改为你自己的，这个不会的话自己查吧。</p>
<p>现在就可以添加域名了，添加后，系统会自动产生一个用户名为yourdomain.com密码同管理员密码的FTP账户。这个账户只能FTP对应域名的文件夹。还有一个admin的可以控制所有站点的。</p>
<p>开头说到安装完后占用空间很大，那是因为Lxadmin预置了各种网站程序供用户快捷安装。看了一下，软件版本都太老了，还是删除节省空间吧，位置/home/lxadmin/httpd/installsoft/</p>
<p>Lxadmin的使用就介绍到这里，我只是抛砖引玉，把疑惑最多的内容说一下，其余的自己学吧。</p>
<p>祝大家玩儿的愉快！！</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/configure-lxadmin-cpanel-in-vps-hosting-506.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机上mysql服务的效率调校/etc/my.cnf</title>
		<link>http://vps.15099.net/2009/01/optimize-etc-my-cnf-in-vps-hosting-598.html</link>
		<comments>http://vps.15099.net/2009/01/optimize-etc-my-cnf-in-vps-hosting-598.html#comments</comments>
		<pubDate>Wed, 14 Jan 2009 08:01:48 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[centos VPS主机维护]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=598</guid>
		<description><![CDATA[概述：如果MySQL数据库系统有很多用户同时联机的话，很大的可能造成vps主机效率方面的瓶颈，虽然优化mysql服务器，有很多方法，例如SQL优化(使用索引、正则表达式）数据库对象优化（优化表的数据类型、通过拆分提高表的访问效率、逆规则化、使用中间表提高统计查询速度）磁盘I/O优化（使用磁盘阵列、使用虚拟文件卷LVM2或软RAID、使用Symbolic Links分布I/O,禁止操作系统更新文件的atime属性、使用裸设置）应用优化（使用连接池、减少对MYsql的访问、增加CACHE层、负载均衡）但是这些方法要不针对于数据库设置的优化、要不针对于操作系统级别或提升硬件环境的优化，对于我们的vps主机来讲，都用不上，那么最主要的还是优化mysql服务器，而优化mysql服务器本身，就是一个调校/etc/my.cnf的过程
环境：vps linux 主机 centos5 操作系统   使用yum命令安装mysql数据库
我们这里假设我们的主机内存为128M ,数据库使用64M,关于数据库内存的设置，注意，内存的简单计算公式
key_buffer_size+（sort_buffer_size+read_buffer_size)*max_connections，且总量不能高于实际的物理内存量
其他64M给系统使用以及web服务使用



[mysqld]字段


centos5 yum安装默认值
vps主机特惠型优化值
属性含义介绍


user = mysql
user = mysql
mysqld服务启用帐号


port = 3306 （默认值）
port = 3306
mysql服务启用的端口


socket=/var/lib/mysql/mysql.sock
 
socket存放位置，已经在/etc/init.d/mysqld设置了，这里还是设置值一下


basedir=/usr
已经在/etc/init.d/mysqld设置了
主目录


datadir=/var/lib/mysql
datadir=/var/lib/mysql
数据库资料存放目录，已经在/etc/init.d/mysqld设置了，这里还设置一下，


默认错误日志已经在/etc/init.d/mysqld设置了&#8211;log-error=/var/log/mysql.log
log-error=/var/log/mysql.log,这里可以不设置。
错误日志设置，它记录了当mysqld启动和停止时，已经服务器在运行过程中发生任何严重错误的相关信息。当数据库出现任何故障导致无法正常使用时，可以先查看此日志。


默认没有启用二进制日志
log-bin=/var/log/localhost-bin
如果不需要配置mysql复制，建议不要启用


 
expire_logs_days = 7
此参数的含义是设置日志的过期天数，过了指定的天数后日志将会自动删除，这样将有利于减少DBA管理日志的工作量


binlog_cache_size = 32K
binlog_cache_size = 2M
二进制缓存日志大小，默认值为32K，有点小，我这里设置为2M


默认没有启用慢查询日志
log-slow-queries=/var/log/slow-queries.log
启用慢查询日志，将记录所有执行时间超过参数long_query_time(单位：秒）所设置语句的日志，这样可以迅速定位系统SQL瓶颈所在，便于改善mysql性能。


long_query_time = 10
long_query_time = 2
修改long_query_time = 2，超过2秒就是慢查询语句


 
default-character-set=utf8
 


old_passwords=1
#old_password=1
在MYSQL4.1版本之前，password函数生成的密码为16位，现在新版改进算法，生成的函数值变成41位，所以建议关闭旧版本密码格式，增强数据库的安全性


 
skip-locking

避免MySQL的外部锁定，减少出错几率增强稳定性



 
skip-name-resolve
禁止MySQL对外部连接进行DNS解析，使用这一选项可以消除MySQL进行DNS解析的时间。但需要注意，如果开启该选项，则所有远程主机连接授权都要使用IP地址方式，否则MySQL将无法正常处理连接请求！


默认启用了innodb存储引擎
skip-innodb
此存储引擎具有提交、回滚和崩溃恢复能力的事务安全机制，建议关闭，节约内存开销


默认启用了BDB存储引擎
skip-bdb
建议关闭，节约内存开销


 
#skip-merge
建议不需要关闭，关闭也基本不节省什么内存


key_buffer_size = 8M
key_buffer_size = 4M
索引块缓冲大小,了解更多关于buffer_size，请访问：在vps主机上mysql数据库优化


sort_buffer_size = 2M
sort_buffer_size = 256K
排序查询操作所能使用的缓冲区大小 该参数对应的分配内存也是每连接独享


join_buffer_size = 2M
join_buffer_size = 128K
联合查询操作所能使用的缓冲区大小 该参数对应的分配内存也是每连接独享


read_buffer_size = 2M
read_buffer_size = 128K
读查询操作所能使用的缓冲区大小


 
bind-address=127.0.0.1
 


max_connections = 100
max_connections = 100
最大连接数,如果在访问网站时经常出现Too Many Connections的错误提 示，则需要增大该参数值


max_connect_errors=100
max_connect_errors [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>如果MySQL数据库系统有很多用户同时联机的话，很大的可能造成vps主机效率方面的瓶颈，虽然优化mysql服务器，有很多方法，例如SQL优化(使用索引、正则表达式）数据库对象优化（优化表的数据类型、通过拆分提高表的访问效率、逆规则化、使用中间表提高统计查询速度）磁盘I/O优化（使用磁盘阵列、使用虚拟文件卷LVM2或软RAID、使用Symbolic Links分布I/O,禁止操作系统更新文件的atime属性、使用裸设置）应用优化（使用连接池、减少对MYsql的访问、增加CACHE层、<a href="http://vps.15099.net/2009/01/mysql-replication-in-two-vps-hosting-546.html">负载均衡</a>）但是这些方法要不针对于数据库设置的优化、要不针对于操作系统级别或提升硬件环境的优化，对于我们的<a href="http://vps.15099.net">vps主机</a>来讲，都用不上，那么最主要的还是优化mysql服务器，而优化mysql服务器本身，就是一个调校/etc/my.cnf的过程</p>
<p><strong>环境</strong>：<a href="http://vps.15099.net">vps linux 主机</a> <a href="http://wiki.15099.net">centos5 </a>操作系统   使用<a href="http://vps.15099.net/2009/01/three-configure-mysql-server-in-vps-hosting-542.html">yum命令安装mysql数据库</a></p>
<p>我们这里假设我们的主机内存为128M ,数据库使用64M,关于数据库内存的设置，注意，内存的简单计算公式</p>
<p>key_buffer_size+（sort_buffer_size+read_buffer_size)*max_connections，且总量不能高于实际的物理内存量</p>
<p>其他64M给系统使用以及web服务使用<span id="more-598"></span></p>
<table border="1">
<tbody>
<tr>
<td colspan="3"><strong>[mysqld]字段</strong></td>
</tr>
<tr>
<td><strong>centos5 yum安装默认值</strong></td>
<td><strong>vps主机特惠型优化值</strong></td>
<td><strong>属性含义介绍</strong></td>
</tr>
<tr>
<td>user = mysql</td>
<td>user = mysql</td>
<td>mysqld服务启用帐号</td>
</tr>
<tr>
<td>port = 3306 （默认值）</td>
<td>port = 3306</td>
<td>mysql服务启用的端口</td>
</tr>
<tr>
<td>socket=/var/lib/mysql/mysql.sock</td>
<td> </td>
<td>socket存放位置，已经在/etc/init.d/mysqld设置了，这里还是设置值一下</td>
</tr>
<tr>
<td>basedir=/usr</td>
<td>已经在/etc/init.d/mysqld设置了</td>
<td>主目录</td>
</tr>
<tr>
<td>datadir=/var/lib/mysql</td>
<td>datadir=/var/lib/mysql</td>
<td>数据库资料存放目录，已经在/etc/init.d/mysqld设置了，这里还设置一下，</td>
</tr>
<tr>
<td>默认错误日志已经在/etc/init.d/mysqld设置了&#8211;log-error=/var/log/mysql.log</td>
<td>log-error=/var/log/mysql.log,这里可以不设置。</td>
<td>错误日志设置，它记录了当mysqld启动和停止时，已经服务器在运行过程中发生任何严重错误的相关信息。当数据库出现任何故障导致无法正常使用时，可以先查看此日志。</td>
</tr>
<tr>
<td>默认没有启用二进制日志</td>
<td>log-bin=/var/log/localhost-bin</td>
<td>如果不需要<a href="http://vps.15099.net/2009/01/mysql-replication-in-two-vps-hosting-546.html">配置mysql复制</a>，建议不要启用</td>
</tr>
<tr>
<td> </td>
<td>expire_logs_days = 7</td>
<td>此参数的含义是设置日志的过期天数，过了指定的天数后日志将会自动删除，这样将有利于减少DBA管理日志的工作量</td>
</tr>
<tr>
<td>binlog_cache_size = 32K</td>
<td>binlog_cache_size = 2M</td>
<td>二进制缓存日志大小，默认值为32K，有点小，我这里设置为2M</td>
</tr>
<tr>
<td>默认没有启用慢查询日志</td>
<td>log-slow-queries=/var/log/slow-queries.log</td>
<td>启用慢查询日志，将记录所有执行时间超过参数long_query_time(单位：秒）所设置语句的日志，这样可以迅速定位系统SQL瓶颈所在，便于改善mysql性能。</td>
</tr>
<tr>
<td>long_query_time = 10</td>
<td>long_query_time = 2</td>
<td>修改long_query_time = 2，超过2秒就是慢查询语句</td>
</tr>
<tr>
<td> </td>
<td>default-character-set=utf8</td>
<td> </td>
</tr>
<tr>
<td>old_passwords=1</td>
<td>#old_password=1</td>
<td>在MYSQL4.1版本之前，password函数生成的密码为16位，现在新版改进算法，生成的函数值变成41位，所以建议关闭旧版本密码格式，增强数据库的安全性</td>
</tr>
<tr>
<td> </td>
<td>skip-locking</td>
<td>
<pre>避免MySQL的外部锁定，减少出错几率增强稳定性</pre>
</td>
</tr>
<tr>
<td> </td>
<td>skip-name-resolve</td>
<td>禁止MySQL对外部连接进行DNS解析，使用这一选项可以消除MySQL进行DNS解析的时间。但需要注意，如果开启该选项，则所有远程主机连接授权都要使用IP地址方式，否则MySQL将无法正常处理连接请求！</td>
</tr>
<tr>
<td>默认启用了innodb存储引擎</td>
<td>skip-innodb</td>
<td>此存储引擎具有提交、回滚和崩溃恢复能力的事务安全机制，建议关闭，节约内存开销</td>
</tr>
<tr>
<td>默认启用了BDB存储引擎</td>
<td>skip-bdb</td>
<td>建议关闭，节约内存开销</td>
</tr>
<tr>
<td> </td>
<td>#skip-merge</td>
<td>建议不需要关闭，关闭也基本不节省什么内存</td>
</tr>
<tr>
<td>key_buffer_size = 8M</td>
<td>key_buffer_size = 4M</td>
<td>索引块缓冲大小,了解更多关于buffer_size，请访问：<a title="在vps主机上mysql数据库优化的永久链接" rel="bookmark" href="../2009/01/mysql-database-optimize-vps-hosting-484.html">在vps主机上mysql数据库优化</a></td>
</tr>
<tr>
<td>sort_buffer_size = 2M</td>
<td>sort_buffer_size = 256K</td>
<td>排序查询操作所能使用的缓冲区大小 该参数对应的分配内存也是每连接独享</td>
</tr>
<tr>
<td>join_buffer_size = 2M</td>
<td>join_buffer_size = 128K</td>
<td>联合查询操作所能使用的缓冲区大小 该参数对应的分配内存也是每连接独享</td>
</tr>
<tr>
<td>read_buffer_size = 2M</td>
<td>read_buffer_size = 128K</td>
<td>读查询操作所能使用的缓冲区大小</td>
</tr>
<tr>
<td> </td>
<td>bind-address=127.0.0.1</td>
<td> </td>
</tr>
<tr>
<td>max_connections = 100</td>
<td>max_connections = 100</td>
<td>最大连接数,如果在访问网站时经常出现Too Many Connections的错误提 示，则需要增大该参数值</td>
</tr>
<tr>
<td>max_connect_errors=100</td>
<td>max_connect_errors = 20</td>
<td>不要设置这么大，20就差不多了,同一个IP地址最大错误连接数目，就是说如果连接失败，并且超过这个数字后，mysql将拒绝这个IP再次连接，这个数字设置的太大没有必要，设置的小一点，可以防止某些恶意攻击,看有的兄弟把这个值设置为10000000，真是汗一个，如果遇上有人搞破坏，撑不到这个数，机器就已经挂了，只能你硬重启，也无从发现问题；设置的小一点，这样应用程序和数据库之间的连接出现问题了，发现后也可以及时的处理。</p>
<p>  如果发现是网络原因，最后应用程序无法连接数据库而报错，只需要在数据库上flush hosts就行。</td>
</tr>
<tr>
<td>open_files_limit = 1024</td>
<td>open_files_limit = 600</td>
<td>最大可以打开的文件数，可以查看http://imysql.cn/2008_04_18_how_mysql_calculate_open_files文章</td>
</tr>
<tr>
<td>back_log = 384</td>
<td>back_log = 20</td>
<td>指定MySQL可能的连接数量。当MySQL主线程在很短的时间内接收到非常多的连接请求，该参数生效，主线程花费很短的时间检查连接并且启动一个新线程。back_log参数的值指出在MySQL暂时停止响应新请求之前的短时间内多少个请求可以被存在堆栈中。如果系统在一个短时间内有很多连接，则需要增大该参数的值，该参数值指定到来的TCP/IP连接的侦听队列的大小。不同的操作系统在这个队列大小上有它自己的限制。试图设定back_log高于你的操作系统的限制将是无效的。默认值为50。对于Linux系统推荐设置为小于512的整数。</td>
</tr>
<tr>
<td>table_cache = 1024</td>
<td>table_cache = 300</td>
<td>缓存表格数，与最大连接数有关 http://www.askwan.com/read.php?4</td>
</tr>
<tr>
<td>query_cache_size = 0M</td>
<td>query_cache_size = 2M</td>
<td>查询缓存的值，了解更多cache_size，请访问：<a title="在vps主机上mysql数据库优化的永久链接" rel="bookmark" href="../2009/01/mysql-database-optimize-vps-hosting-484.html">在vps主机上mysql数据库优化</a></td>
</tr>
<tr>
<td>query_cache_limit = 1M</td>
<td>query_cache_limit = 1M</td>
<td>具体可以查看这篇文章 http://www.17rumen.com/archives/49.html 如果查询结果很大， 也缓存？？？？这个明显是不可能的。MySql 可以设置一个最大的缓存值，当你查询缓存数结果数据超过这个值就不会进行缓存。缺省为1M，也就是超过了1M查询结果就不会缓存</td>
</tr>
<tr>
<td>query_cache_type=1</td>
<td>query_cache_type=1</td>
<td>查询缓存类型设置。</td>
</tr>
<tr>
<td>query_cache_min_res_unit = 4k</td>
<td>query_cache_min_res_unit = 2k</td>
<td>默认是4K,最小分配的快大小，可以看看：http://www.phpe.net/mysql_manual/06-9.html</td>
</tr>
<tr>
<td>myisam_sort_buffer_size = 8M</td>
<td>myisam_sort_buffer_size = 4M</td>
<td>myisam_sort_buffer_size = 4M 默认为8M,</td>
</tr>
<tr>
<td>thread_cache_size = 32</td>
<td>thread_cache_size = 10</td>
<td>服务器线程缓存,可以看看这篇文章 http://www.sysbus.com/?p=115 http://qroom.blogspot.com/2008/09/query-cache.html</td>
</tr>
<tr>
<td>tmp_table_size = 64M</td>
<td>tmp_table_size = 512K</td>
<td>mysql 的配置文件中，tmp_table_size 的默认大小是 32M。如果一张临时表超出该大小，MySQL产生一个 The table tbl_name is full 形式的错误，如果你做很多高级 GROUP BY 查询，增加 tmp_table_size 值。</td>
</tr>
<tr>
<td>max_allowed_packet = 16M</td>
<td>max_allowed_packet = 16M</td>
<td>可以控制其通信缓冲区的最大长度</td>
</tr>
<tr>
<td>external-locking = FALSE</td>
<td>external-locking = FALSE</td>
<td>来避免外部锁，从MySQL 4.0开始，这个选项默认是打开的。在这之前，只有编译支持，也可以在启动文件命令添加：&#8211;skip-external-locking</td>
</tr>
<tr>
<td>thread_concurrency = 8</td>
<td>thread_concurrency = 8</td>
<td>该参数取值为服务器逻辑CPU数量×2，在vps宿主机，服务器有2颗物理CPU，而每颗物理CPU又支持H.T超线程，所以实际取值为4 × 2 ＝ 8</td>
</tr>
<tr>
<td>wait_timeout=28800</td>
<td>wait_timeout = 20</td>
<td>由连接到确定断线的时间，默认是28800（sec)将它改为20秒，此参数可以查看&gt;mysql show processlist;查看的状态来决定。</td>
</tr>
<tr>
<td colspan="3">[mysql]</td>
</tr>
<tr>
<td> </td>
<td>no-auto-rehash</td>
<td> </td>
</tr>
<tr>
<td colspan="3">[mysqldump]</td>
</tr>
<tr>
<td> </td>
<td>quick</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>max_allowed_packet = 16M</td>
<td> </td>
</tr>
<tr>
<td colspan="3">[mysqlhotcopy]</td>
</tr>
<tr>
<td> </td>
<td>interactive-timeout</td>
<td> </td>
</tr>
</tbody>
</table>
<p>最终整理后，我们的vps主机特惠型使用的/etc/my.cnf如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">user</span>=mysql
<span style="color: #007800;">port</span>=<span style="color: #000000;">3306</span>
<span style="color: #007800;">socket</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>mysql.sock
<span style="color: #007800;">datadir</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql
&nbsp;
log-error=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>mysqld.log
log-bin=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>localhost-bin
expire_logs_days = <span style="color: #000000;">7</span>
binlog_cache_size =2M
log-slow-queries=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>slow-queries.log
long_query_time = <span style="color: #000000;">2</span>
default-character-set=utf8
&nbsp;
<span style="color: #666666; font-style: italic;"># old_passwords=1</span>
&nbsp;
skip-locking
skip-name-resolve
skip-innodb
skip-bdb
<span style="color: #666666; font-style: italic;"># skip-memory</span>
&nbsp;
key_buffer_size = 4M
sort_buffer_size = 256K
join_buffer_size = 128K
read_buffer_size = 128K
bind-address=127.0.0.1
&nbsp;
max_connections = <span style="color: #000000;">100</span>
<span style="color: #007800;">max_connect_errors</span>=<span style="color: #000000;">20</span>
open_files_limit = <span style="color: #000000;">600</span>
back_log = <span style="color: #000000;">20</span>
&nbsp;
table_cache = <span style="color: #000000;">300</span>
query-cache-size = 2M
query_cache_limit = 1M
query-cache-type = <span style="color: #000000;">1</span>
query_cache_min_res_unit = 2k
&nbsp;
myisam_sort_buffer_size = 4M
thread_cache_size = <span style="color: #000000;">10</span>
tmp_table_size = 512K
max_allowed_packet = 16M
external-locking = FALSE
thread_concurrency = <span style="color: #000000;">2</span>
wait_timeout = <span style="color: #000000;">20</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld_safe<span style="color: #7a0874; font-weight: bold;">&#93;</span>
log-error=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>mysqld.log
pid-file=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>mysqld<span style="color: #000000; font-weight: bold;">/</span>mysqld.pid
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>mysql<span style="color: #7a0874; font-weight: bold;">&#93;</span>
no-auto-rehash
default-character-set=utf8
<span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqldump<span style="color: #7a0874; font-weight: bold;">&#93;</span>
quick
max_allowed_packet = 16M
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqlhotcopy<span style="color: #7a0874; font-weight: bold;">&#93;</span>
interactive-timeout</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/optimize-etc-my-cnf-in-vps-hosting-598.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机上找回mysql服务器root密码</title>
		<link>http://vps.15099.net/2009/01/reback-mysql-server-root-password-in-vps-hosting-594.html</link>
		<comments>http://vps.15099.net/2009/01/reback-mysql-server-root-password-in-vps-hosting-594.html#comments</comments>
		<pubDate>Wed, 14 Jan 2009 02:18:27 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[centos VPS主机维护]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=594</guid>
		<description><![CDATA[概述： 最近有个vps客户，在配置LAMP的时候，修改了mysql服务器root密码，过几天忘了密码，问我如何才能找回来，下面我就详细讲讲如何找回root密码，分两种情况，一种mysql数据库资料不是很重要，可以删除，另外一种适合mysql服务器里面有重要的数据，不能初始化。
环境： linux vps主机 centos5 操作系统 使用yum安装的数据库，当然此解决办法同样适合其他linux发行版本
步骤：
1、mysql数据库资料不是很重要,找回root方法

1.1关闭mysqld服务

/etc/init.d/mysqld stop

1.2删除/var/lib/mysql整个目录

rm -rf /var/lib/mysql

1.3重新启动mysqld服务，mysql数据库会重建，您的root 就没有密码了

/etc/init.d/mysqld start

特别提醒：此方法仅适合您的数据库并不重要的时候，如何数据库很重要，那千万不要随便删除，请使用第二种方法
2、mysql数据库资料有很重要的资料,找回root方法
2.1关闭mysql服务

/etc/init.d/mysqld stop

2.2使用&#8211;skip-grant-tables选项启动MySQL服务,可以修改/etc/inin.d/mysqld脚本启动位置增加此选项，

vi /etc/init.d/mysqld
在运行启动的语句里增加--skip-grant-tables

&#8211;skip-grant-tables的意思是启动MySQL服务的时候跳过权限表认证。启动后，连接到MySQL的root不需要口令
2.3重新启动mysql服务

/etc/init.d/mysqld stop

2.4使用空密码的root用户连接MySQL ,并且更改root口令

mysql -uroot
mysql&#62;use mysql;  &#60; --使用mysql数据库
mysql&#62;update user set password=password&#40;'123'&#41; where user='root' and host='localhost';  &#60; --更改密码语句
mysql&#62;set password=password&#40;'123'&#41;; &#60; --使用此语句更改密码会失败，使用上面语句直接更新user表 password字段后更改密码成功

2.5关闭mysql服务


/etc/init.d/mysqld stop

2.6重新修改2.2步骤修改的/etc/init.d/mysqld，使其保持原来不变，也就是取消skip-grant-tables语句
2.7重新启动mysql服务

/etc/init.d/mysqld stop

经过上面7步骤，就可以找回丢失的root密码。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong> 最近有个<a href="http://vps.15099.net">vps</a>客户，在配置<a href="http://vps.15099.net/tag/lamp">LAMP</a>的时候，修改了mysql服务器root密码，过几天忘了密码，问我如何才能找回来，下面我就详细讲讲如何找回root密码，分两种情况，一种mysql数据库资料不是很重要，可以删除，另外一种适合mysql服务器里面有重要的数据，不能初始化。<br />
<strong>环境： </strong><a href="http://vps.15099.net">linux vps主机</a> <a href="http://wiki.15099.net">centos5</a> 操作系统 <a href="http://vps.15099.net/2009/01/three-configure-mysql-server-in-vps-hosting-542.html">使用yum安装的数据库</a>，当然此解决办法同样适合其他<a href="http://vps.15099.net/2008/11/vps-support-those-os-13.html">linux发行版本</a></p>
<p><strong>步骤：</strong></p>
<p><strong>1、mysql数据库资料不是很重要,找回root方法</strong><br />
<span id="more-594"></span><br />
1.1关闭mysqld服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld stop</pre></div></div>

<p>1.2删除/var/lib/mysql整个目录</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql</pre></div></div>

<p>1.3重新启动mysqld服务，mysql数据库会重建，您的root 就没有密码了</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start</pre></div></div>

<p>特别提醒：此方法仅适合您的数据库并不重要的时候，如何数据库很重要，那千万不要随便删除，请使用第二种方法<br />
<strong>2、mysql数据库资料有很重要的资料,找回root方法</strong><br />
2.1关闭mysql服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld stop</pre></div></div>

<p>2.2使用&#8211;skip-grant-tables选项启动MySQL服务,可以修改/etc/inin.d/mysqld脚本启动位置增加此选项，</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld
在运行启动的语句里增加--skip-grant-tables</pre></div></div>

<p>&#8211;skip-grant-tables的意思是启动MySQL服务的时候跳过权限表认证。启动后，连接到MySQL的root不需要口令<br />
2.3重新启动mysql服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld stop</pre></div></div>

<p>2.4使用空密码的root用户连接MySQL ,并且更改root口令</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-uroot</span>
mysql<span style="color: #000000; font-weight: bold;">&gt;</span>use mysql;  <span style="color: #000000; font-weight: bold;">&lt;</span> --使用mysql数据库
mysql<span style="color: #000000; font-weight: bold;">&gt;</span>update user <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">password</span>=password<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'123'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> where <span style="color: #007800;">user</span>=<span style="color: #ff0000;">'root'</span> and <span style="color: #007800;">host</span>=<span style="color: #ff0000;">'localhost'</span>;  <span style="color: #000000; font-weight: bold;">&lt;</span> --更改密码语句
mysql<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">password</span>=password<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'123'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">&lt;</span> --使用此语句更改密码会失败，使用上面语句直接更新user表 password字段后更改密码成功</pre></div></div>

<p>2.5关闭mysql服务
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld stop</pre></div></div>

<p>2.6重新修改2.2步骤修改的/etc/init.d/mysqld，使其保持原来不变，也就是取消skip-grant-tables语句<br />
2.7重新启动mysql服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld stop</pre></div></div>

<p>经过上面7步骤，就可以找回丢失的root密码。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/reback-mysql-server-root-password-in-vps-hosting-594.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机上mysql数据库优化</title>
		<link>http://vps.15099.net/2009/01/mysql-database-optimize-vps-hosting-484.html</link>
		<comments>http://vps.15099.net/2009/01/mysql-database-optimize-vps-hosting-484.html#comments</comments>
		<pubDate>Tue, 13 Jan 2009 01:16:53 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPSweb应用]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=484</guid>
		<description><![CDATA[概述：在linux vps主机上配置mysql数据库，由于默认使用yum安装的数据库启动了InnoDB引擎，同时其/etc/my.cnf配置都我们的vps主机不是很适合，本文详细讲解如何配置适合自己vps主机的mysql配置文件
目的:优化vps主机上的mysql数据库，使之更合适vps主机这样的环境

query_cache_size = 268435456
query_cache_type=1
query_cache_limit=1048576

查看mysql-server静态参数值命令
mysql>show variables;
或者mysqladmin -uroot variables
mysql服务器的参数很多，如果需要了解某个参数的详细定义，可以使用mysqld &#8211;verbose &#8211;help &#124; more
查看mysql-server动态状态信息命令
mysql>show status;
或者mysqladmin -uroot status
其中show status分为show [session&#124;global]status;可以根据需要加上参数“session&#8221;或者&#8221;global&#8221;来显示session级（当前统计）的统计结果和global级（自数据库上次启动至今）的统计结果，如果不写，默认为&#8221;session&#8221;
1、查看和修改默认的存储引擎，关闭不需要的存储引擎
在我们使用vps主机过程中，很多用户只使用MyISAM一个引擎，关闭那么没有使用的InnoDB MEMORY等其他引擎
查看当前系统有哪些引擎

mysql&#62;SHOW ENGINES \G
或者第二种方法
mysql&#62;SHOW VARIABLES LIKE 'have%';

查看默认引擎

mysql&#62; show variables like 'table_type';
+---------------+--------+
&#124; Variable_name &#124; Value  &#124;
+---------------+--------+
&#124; table_type    &#124; MyISAM &#124;
+---------------+--------+
1 row in set &#40;0.00 sec&#41;
或者
mysql&#62; show variables like 'storage_engine';
+----------------+--------+
&#124; Variable_name  &#124; Value  &#124;
+----------------+--------+
&#124; storage_engine &#124; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>在linux vps主机上配置mysql数据库，由于默认使用yum安装的数据库启动了InnoDB引擎，同时其/etc/my.cnf配置都我们的vps主机不是很适合，本文详细讲解如何配置适合自己vps主机的mysql配置文件</p>
<p><strong>目的:</strong>优化vps主机上的mysql数据库，使之更合适<a href="http://vps.15099.net">vps主机</a>这样的环境</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">query_cache_size = <span style="color: #000000;">268435456</span>
<span style="color: #007800;">query_cache_type</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">query_cache_limit</span>=<span style="color: #000000;">1048576</span></pre></div></div>

<p><strong>查看mysql-server静态参数值命令</strong><br />
mysql>show variables;<br />
或者mysqladmin -uroot variables<br />
mysql服务器的参数很多，如果需要了解某个参数的详细定义，可以使用mysqld &#8211;verbose &#8211;help | more<br />
<strong>查看mysql-server动态状态信息命令</strong></p>
<p>mysql>show status;</p>
<p>或者mysqladmin -uroot status<br />
其中show status分为show [session|global]status;可以根据需要加上参数“session&#8221;或者&#8221;global&#8221;来显示session级（当前统计）的统计结果和global级（自数据库上次启动至今）的统计结果，如果不写，默认为&#8221;session&#8221;</p>
<p><strong>1、查看和修改默认的存储引擎，关闭不需要的存储引擎</strong><br />
在我们使用vps主机过程中，很多用户只使用MyISAM一个引擎，关闭那么没有使用的InnoDB MEMORY等其他引擎<br />
查看当前系统有哪些引擎</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span>SHOW ENGINES \G
或者第二种方法
mysql<span style="color: #000000; font-weight: bold;">&gt;</span>SHOW VARIABLES LIKE <span style="color: #ff0000;">'have%'</span>;</pre></div></div>

<p>查看默认引擎</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show variables like <span style="color: #ff0000;">'table_type'</span>;
+---------------+--------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name <span style="color: #000000; font-weight: bold;">|</span> Value  <span style="color: #000000; font-weight: bold;">|</span>
+---------------+--------+
<span style="color: #000000; font-weight: bold;">|</span> table_type    <span style="color: #000000; font-weight: bold;">|</span> MyISAM <span style="color: #000000; font-weight: bold;">|</span>
+---------------+--------+
<span style="color: #000000;">1</span> row <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
或者
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show variables like <span style="color: #ff0000;">'storage_engine'</span>;
+----------------+--------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name  <span style="color: #000000; font-weight: bold;">|</span> Value  <span style="color: #000000; font-weight: bold;">|</span>
+----------------+--------+
<span style="color: #000000; font-weight: bold;">|</span> storage_engine <span style="color: #000000; font-weight: bold;">|</span> MyISAM <span style="color: #000000; font-weight: bold;">|</span>
+----------------+--------+
<span style="color: #000000;">1</span> row <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>mysql默认的存储引擎是MyISAM,修改默认的存储引擎可以修改/etc/my.cnf参数文件，在[mysqld]字段里面增加default-storage-engine=innodb，这里假设设置默认为innodb，根据自己的需要进行设置,关闭不需要的存储引擎，可以修改/etc/my.cnf参数文件，在[mysqld]字段里面增加&#8211;skip-innodb。<br />
<strong>2、调节key_buffer_size大小</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show variables like <span style="color: #ff0000;">'key_buffer_size'</span>;
+-----------------+-----------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name   <span style="color: #000000; font-weight: bold;">|</span> Value     <span style="color: #000000; font-weight: bold;">|</span>
+-----------------+-----------+
<span style="color: #000000; font-weight: bold;">|</span> key_buffer_size <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">402653184</span> <span style="color: #000000; font-weight: bold;">|</span>
+-----------------+-----------+
<span style="color: #000000;">1</span> row <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
从上面可以看到,key_buffer_size为：384M,可以修改<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>my.cnf参数文件，在<span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span>字段里面增加key_buffer_size = 384M，当然也可以使用mysql<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">set</span> grobal <span style="color: #007800;">key_buffer_size</span>=512M修改。
此参数是用来<span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>设置索引块<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>（Index Blocks<span style="color: #7a0874; font-weight: bold;">&#41;</span>缓存的大小，它被所有的线程共享，只适合MyISAM存储引擎。</pre></div></div>

<p><strong>3、调节table_cache设置</strong><br />
这个参数表示数据库用户打开表的缓存数量，每个连接进来，都会至少打开一个表缓存，如此，table_cache与max_connections有关，<br />
查看当前的table_cache值</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show variables like <span style="color: #ff0000;">'table_cache'</span>;
+---------------+-------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name <span style="color: #000000; font-weight: bold;">|</span> Value <span style="color: #000000; font-weight: bold;">|</span>
+---------------+-------+
<span style="color: #000000; font-weight: bold;">|</span> table_cache   <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">4096</span>  <span style="color: #000000; font-weight: bold;">|</span>
+---------------+-------+
<span style="color: #000000;">1</span> row <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>从上面可以看到,table_cache为：4096,可以修改/etc/my.cnf参数文件，在[mysqld]字段里面增加table_cachee = 4096</p>
<p><strong>4、调节query_cache设置</strong></p>
<p>Query Cache 在提高数据库性能方面具有非常重要的作用，其设定也非常简单，仅需要在配置文件写入两行： query_cache_type 和 query_cache _size，而且 MySQL 的 query cache 非常快！而且一旦命中，就直接发送给客户端，节约大量的 CPU 时间。</p>
<p>当然，非 SELECT 语句对缓冲是有影响的，它们可能使缓冲中的数据过期。一个 UPDATE 语句引起的部分表修改，将导致对该表所有的缓冲数据失效，这是 MySQL 为了平衡性能而没有采取的措施。因为，如果每次 UPDATE 需要检查修改的数据，然后撤出部分缓冲将导致代码的复杂度增加。</p>
<p>query_cache_type ：0 代表不使用缓冲， 1 代表使用缓冲，2 代表根据需要使用。</p>
<p>设置 1 代表缓冲永远有效，如果不需要缓冲，就需要使用如下语句：</p>
<p>SELECT SQL_NO_CACHE * FROM my_table WHERE &#8230;</p>
<p>如果设置为 2 ，需要开启缓冲，可以用如下语句：</p>
<p>SELECT SQL_CACHE * FROM my_table WHERE &#8230;</p>
<p>用 SHOW STATUS 可以查看缓冲的情况：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show status like <span style="color: #ff0000;">'Qca%'</span>;
+-------------------------+----------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name <span style="color: #000000; font-weight: bold;">|</span> Value <span style="color: #000000; font-weight: bold;">|</span>
+-------------------------+----------+
<span style="color: #000000; font-weight: bold;">|</span> Qcache_queries_in_cache <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">8</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> Qcache_inserts <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">545875</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> Qcache_hits <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">83951</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> Qcache_lowmem_prunes <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> Qcache_not_cached <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2343256</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> Qcache_free_memory <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">33508248</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> Qcache_free_blocks <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> Qcache_total_blocks <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">18</span> <span style="color: #000000; font-weight: bold;">|</span>
+-------------------------+----------+
<span style="color: #000000;">8</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>如果需要计算命中率，需要知道服务器执行了多少 SELECT 语句：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show status like <span style="color: #ff0000;">'Com_sel%'</span>;
+---------------+---------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name <span style="color: #000000; font-weight: bold;">|</span> Value <span style="color: #000000; font-weight: bold;">|</span>
+---------------+---------+
<span style="color: #000000; font-weight: bold;">|</span> Com_select <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">2889628</span> <span style="color: #000000; font-weight: bold;">|</span>
+---------------+---------+
<span style="color: #000000;">1</span> row <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.01</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>在本例中， MySQL 命中了 2,889,628 条查询中的 83,951 条，而且 INSERT 语句只有 545,875 条。因此，它们两者的和和280万的总查询相比有很大差距，因此，我们知道本例使用的缓冲类型是 2 。</p>
<p>而在类型是 1 的例子中， Qcache_hits 的数值会远远大于 Com_select 。 Qcache_not_cached是可以记录DML语句的数量的</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/mysql-database-optimize-vps-hosting-484.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vps主机上三种配置mysql服务器方法</title>
		<link>http://vps.15099.net/2009/01/three-configure-mysql-server-in-vps-hosting-542.html</link>
		<comments>http://vps.15099.net/2009/01/three-configure-mysql-server-in-vps-hosting-542.html#comments</comments>
		<pubDate>Mon, 12 Jan 2009 08:04:19 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS主机维护]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=542</guid>
		<description><![CDATA[概述：近几年来，开源数据库逐渐流行起来。由于具有免费使用、配置简单、稳定性好、性能优良等优点，开源数据库在中低端应用中占据了很大的市场份额，而Mysql正是开源数据库中的杰出代表，在linux环境中，mysql数据库在应用越来越广，本文详细讲解一下在vps主机上配置mysql-server的三种方法，分别为：rpm包（yum）、二进制包、源码包编译安装。
环境：vps主机实用性 centos5系统 (其他的linux 发行版也可以参考，但是rpm（yum)方法，请使用自己的包管理软件，例如：redhat的up2date
各安装包比较





RPM(YUM)
二进制
源码


优点
安装简单，适合初学者学习使用,升级方便
安装简单；可以安装到任何路径下，灵活性好；在一台服务器可以安装多个MySQL
在实际安装的操作系统进行可根据需要定制编译，最灵活；性能最好；一台服务器可以安装多个MySQL


缺点
安装路径不灵活，默认路径不能修改，一台服务器只能安装一个MySQL
已经经过编译，性能不如源码编译得好，不能灵活定制编译参数
安装过程复杂；编译时间长


文件布局
/usr/bin(客户端程序和脚本)/usr/sbin(mysqld服务器）
/var/lib/mysql（日志文件和数据库）
/usr/share/doc/packages(文档）
/usr/includer/mysql（包含（头）文件)
/usr/lib/mysql(库文件）
/usr/share/mysql（错误消息和字符集文件）
/usr/share/sql-bench(基准程序）
bin(客户端程序和脚本)data（日志文件和数据库）
docs(文档和Changlog）
include（包含（头）文件)
lib(库文件）
script(mysql_install_db脚本，用于安装系统数据库）
share/mysql(错误消息文件）
sql-bench(基准程序）
bin(客户端程序和脚本)
include/mysql（包含（头）文件)
info(info 格式的文档）
lib/mysql(库文件）
libexec（mysqld服务器）
share/mysql(错误消息文件）
sql-bench(基准程序）
var(数据库和日志文件）



1、rpm包安装（我这里的环境是centos,所以我使用系统自带的rpm，使用yum命令安装）

yum -y install mysql mysql-server

通过上面一个命令就完成了mysql数据库的安装，简单吧，建议我们的vps主机优先选择此方式安装，以后要升级，也很方便，使用

yum -y update mysql mysql-server

2、二进制包安装
如果用户不想安装最简单的却不够灵活的RPM包，又不想安装复杂费时的源码包，那么已经编译好的二进制包将是最好的选择。具体的配置步骤如下：
2.1用root登录操作系统，增加mysql用户和组，数据库将安装在此用户下

groupadd -r mysql
useradd -g mysql -rM mysql

2.2下载、解压最新的二进制压缩包,假设源码包存放在/usr/local/src，

cd /usr/local/src
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.30-linux-i686-glibc23.tar.gz/from/http://mirrors.24-7-solutions.net/pub/mysql/
tar zxvf mysql-5.1.30-linux-i686-glibc23.tar.gz
 mv mysql-5.1.30-linux-i686-glibc23 /usr/local/
cd ..
ln -s mysql-5.1.30-linux-i686-glibc23 mysql
chown -R mysql:mysql /usr/local/mysql

2.3安装和启动

cd mysql
 ./scripts/mysql_install_db --user=mysql
chown -R root:mysql .
chown -R mysql:mysql data
 ./bin/mysqld_safe --user=mysql &#38;

3、源码安装
如果对数据库的性能要求很高，并且希望能够灵活定制安装选项，源码安装将是最好的选择，其安装步骤和二进制安装非常类似，不过使用源码安装编译需要花费很长时间
3.1用root登录操作系统，增加mysql用户和组

groupadd -r mysql
useradd -g mysql -rM mysql

3.2下载和解压源码压缩包

cd /usr/local/src
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.30.tar.gz/from/http://mirror.services.wisc.edu/mysql/
tar zxvf mysql-5.1.30.tar.gz
cd [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>近几年来，开源数据库逐渐流行起来。由于具有免费使用、配置简单、稳定性好、性能优良等优点，开源数据库在中低端应用中占据了很大的市场份额，而Mysql正是开源数据库中的杰出代表，在linux环境中，mysql数据库在应用越来越广，本文详细讲解一下在<a href="http://vps.15099.net">vps主机</a>上配置mysql-server的三种方法，分别为：rpm包（yum）、二进制包、源码包编译安装。</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/linux-vps-host-configuration-flow">vps主机实用性</a> <a href="http://wiki.15099.net">centos5系统</a> (其他的linux 发行版也可以参考，但是rpm（yum)方法，请使用自己的包管理软件，例如：redhat的up2date</p>
<p><strong>各安装包比较</strong><br />
<span id="more-542"></span></p>
<table border="1">
<tbody>
<tr>
<td></td>
<td style="text-align: center;"><strong>RPM(YUM)</strong></td>
<td style="text-align: center;"><strong>二进制</strong></td>
<td style="text-align: center;"><strong>源码</strong></td>
</tr>
<tr>
<td>优点</td>
<td>安装简单，适合初学者学习使用,升级方便</td>
<td>安装简单；可以安装到任何路径下，灵活性好；在一台服务器可以安装多个MySQL</td>
<td>在实际安装的操作系统进行可根据需要定制编译，最灵活；性能最好；一台服务器可以安装多个MySQL</td>
</tr>
<tr>
<td>缺点</td>
<td>安装路径不灵活，默认路径不能修改，一台服务器只能安装一个MySQL</td>
<td>已经经过编译，性能不如源码编译得好，不能灵活定制编译参数</td>
<td>安装过程复杂；编译时间长</td>
</tr>
<tr>
<td>文件布局</td>
<td>/usr/bin(客户端程序和脚本)/usr/sbin(mysqld服务器）</p>
<p>/var/lib/mysql（日志文件和数据库）</p>
<p>/usr/share/doc/packages(文档）</p>
<p>/usr/includer/mysql（包含（头）文件)</p>
<p>/usr/lib/mysql(库文件）</p>
<p>/usr/share/mysql（错误消息和字符集文件）</p>
<p>/usr/share/sql-bench(基准程序）</td>
<td>bin(客户端程序和脚本)data（日志文件和数据库）</p>
<p>docs(文档和Changlog）</p>
<p>include（包含（头）文件)</p>
<p>lib(库文件）</p>
<p>script(mysql_install_db脚本，用于安装系统数据库）</p>
<p>share/mysql(错误消息文件）</p>
<p>sql-bench(基准程序）</td>
<td>bin(客户端程序和脚本)</p>
<p>include/mysql（包含（头）文件)</p>
<p>info(info 格式的文档）</p>
<p>lib/mysql(库文件）</p>
<p>libexec（mysqld服务器）</p>
<p>share/mysql(错误消息文件）</p>
<p>sql-bench(基准程序）</p>
<p>var(数据库和日志文件）</td>
</tr>
</tbody>
</table>
<p><strong>1、rpm包安装</strong>（我这里的环境是centos,所以我使用系统自带的rpm，使用yum命令安装）</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql mysql-server</pre></div></div>

<p>通过上面一个命令就完成了mysql数据库的安装，简单吧，建议我们的vps主机优先选择此方式安装，以后要升级，也很方便，使用</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> update mysql mysql-server</pre></div></div>

<p><strong>2、二进制包安装</strong><br />
如果用户不想安装最简单的却不够灵活的RPM包，又不想安装复杂费时的源码包，那么已经编译好的二进制包将是最好的选择。具体的配置步骤如下：<br />
2.1用root登录操作系统，增加mysql用户和组，数据库将安装在此用户下</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">groupadd <span style="color: #660033;">-r</span> mysql
useradd <span style="color: #660033;">-g</span> mysql <span style="color: #660033;">-rM</span> mysql</pre></div></div>

<p>2.2下载、解压最新的二进制压缩包,假设源码包存放在/usr/local/src，</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>dev.mysql.com<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>Downloads<span style="color: #000000; font-weight: bold;">/</span>MySQL-<span style="color: #000000;">5.1</span><span style="color: #000000; font-weight: bold;">/</span>mysql-5.1.30-linux-i686-glibc23.tar.gz<span style="color: #000000; font-weight: bold;">/</span>from<span style="color: #000000; font-weight: bold;">/</span>http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.24-<span style="color: #000000;">7</span>-solutions.net<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf mysql-5.1.30-linux-i686-glibc23.tar.gz
 <span style="color: #c20cb9; font-weight: bold;">mv</span> mysql-5.1.30-linux-i686-glibc23 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> mysql-5.1.30-linux-i686-glibc23 mysql
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> mysql:mysql <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql</pre></div></div>

<p>2.3安装和启动</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> mysql
 .<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>mysql_install_db <span style="color: #660033;">--user</span>=mysql
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root:mysql .
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> mysql:mysql data
 .<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqld_safe <span style="color: #660033;">--user</span>=mysql <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

<p><strong>3、源码安装</strong><br />
如果对数据库的性能要求很高，并且希望能够灵活定制安装选项，源码安装将是最好的选择，其安装步骤和二进制安装非常类似，不过使用源码安装编译需要花费很长时间<br />
3.1用root登录操作系统，增加mysql用户和组</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">groupadd <span style="color: #660033;">-r</span> mysql
useradd <span style="color: #660033;">-g</span> mysql <span style="color: #660033;">-rM</span> mysql</pre></div></div>

<p>3.2下载和解压源码压缩包</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>dev.mysql.com<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>Downloads<span style="color: #000000; font-weight: bold;">/</span>MySQL-<span style="color: #000000;">5.1</span><span style="color: #000000; font-weight: bold;">/</span>mysql-5.1.30.tar.gz<span style="color: #000000; font-weight: bold;">/</span>from<span style="color: #000000; font-weight: bold;">/</span>http:<span style="color: #000000; font-weight: bold;">//</span>mirror.services.wisc.edu<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf mysql-5.1.30.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mysql-5.1.30</pre></div></div>

<p>3.3用configure工具编译源码，这里可以选择很多编译参数，具体可以用configure &#8211;help来进行查看，</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>3.4选择一个MySQL自带的样例配置文件(在support-files目录下）,这里以my-medium.cnf作为示范，请根据自己的系统配置选择合适的配置文件，例如我们的<a href="http://vps.15099.net">vps特惠型</a>可以选择，my-small.cnf样例文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> support-files<span style="color: #000000; font-weight: bold;">/</span>my-medium.cnf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>my.cnf</pre></div></div>

<p>3.5在安装的数据目录下创建数据库和系统表,&#8211;user表示这些数据库和表owner是此用户</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql
.<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql_install_db <span style="color: #660033;">--user</span>=mysql</pre></div></div>

<p>3.6设置目录权限</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root:mysql .
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> mysql:mysql var</pre></div></div>

<p>3.7启动MySQL</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqld_safe <span style="color: #660033;">--user</span>=mysql <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/three-configure-mysql-server-in-vps-hosting-542.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>使用两个vps主机同步mysql数据（复制）</title>
		<link>http://vps.15099.net/2009/01/mysql-replication-in-two-vps-hosting-546.html</link>
		<comments>http://vps.15099.net/2009/01/mysql-replication-in-two-vps-hosting-546.html#comments</comments>
		<pubDate>Mon, 12 Jan 2009 01:27:34 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS主机维护]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=546</guid>
		<description><![CDATA[概述：你的网站访问量非常大，对系统的稳定性非常高，那么可以使用mysql功能的复制功能，复制是指将主要的数据库的DDL和DML操作通过二进制日志传到复制服务器（也叫从服务器)上然后在从服务器上对这些日志重新执行（也叫重做），从而使得从服务器和主服务器的数据保持同步，mysql复制的优点包括以下三个方面
1、如果主服务器出现问题，可以快速切换到从服务器提供服务
2、可以在从服务器上执行查询操作，降低主服务器的访问压力
3、可以在从服务器上执行备份，以避免备份期间影响主服务器的服务
缺点：由于Mysql实现的是异步的复制，所以在主从服务器之间存在一定的差距，所以对实时性要求高的需要从主服务器数据库获得，对一般只有更新不频繁的数据或对实时性要求不高的数据可以通过从服务器查询，解决这个办法的方法可以使用mysql cluster
环境：两台vps主机 系统都为centos5 这里先假设：
主服务器 A, 主机名：vps-rep1.15099.net  IP;192.168.3.201
从服务器 B,主机名：vps-rep2.15099.net IP:192.168.3.202
两服务器时间同步
步骤：

1、在两台主机上安装相同版本的数据库，可以在各主机上使用下面命令安装：

yum -y install mysql mysql-server

2、在主服务器上，设置一个复制使用的帐号，并授予REPLICATIAN SLAVE权限。这里创建一个复制帐号rep1，可以从从服务器IP为：192.168.3.202的主机进行连接

mysql&#62; GRANT REPLICATION SLAVE ON *.* TO 'rep1'@'192.168.3.202' IDENTIFIED BY '1234vps';
Query OK, 0 rows affected &#40;0.00 sec&#41;

3、修改主数据库服务器 A 的配置文件/etc/my.cnf，开启BINLOG日志，并设置server-id的值，然后重启mysqld服务

vi /etc/my.cnf
#在[mysqld]字段中里添加下面两行
log-bin=/var/log/mysql-bin.log
server-id=1

4、在主服务器A,设置读锁定有效，这个步骤是为了确保没有数据库操作，以便获得一个一致性的快照
mysql> flush tables with read lock;
Query OK, 0 rows affected (0.00 sec)
经过上面的读锁定命令，这样数据库A就不能够往里面写数据，我们测试看看：

mysql&#62; create database vps;
ERROR 1223 &#40;HY000&#41;: Can't execute the query because you [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>你的网站访问量非常大，对系统的稳定性非常高，那么可以使用mysql功能的复制功能，复制是指将主要的数据库的DDL和DML操作通过二进制日志传到复制服务器（也叫从服务器)上然后在从服务器上对这些日志重新执行（也叫重做），从而使得从服务器和主服务器的数据保持同步，<strong>mysql复制的优点包括以下三个方面</strong></p>
<p>1、如果主服务器出现问题，可以快速切换到从服务器提供服务</p>
<p>2、可以在从服务器上执行查询操作，降低主服务器的访问压力</p>
<p>3、可以在从服务器上执行备份，以避免备份期间影响主服务器的服务</p>
<p><strong>缺点：</strong>由于Mysql实现的是异步的复制，所以在主从服务器之间存在一定的差距，所以对实时性要求高的需要从主服务器数据库获得，对一般只有更新不频繁的数据或对实时性要求不高的数据可以通过从服务器查询，解决这个办法的方法可以使用<strong>mysql cluster</strong></p>
<p><strong>环境：</strong>两台<a href="http://vps.15099.net">vps主机</a> 系统都为<a href="http://wiki.15099.net">centos5</a> 这里先假设：</p>
<p>主服务器 A, 主机名：vps-rep1.15099.net  IP;192.168.3.201<br />
从服务器 B,主机名：vps-rep2.15099.net IP:192.168.3.202<br />
两服务器时间同步</p>
<p><strong>步骤：</strong><br />
<span id="more-546"></span><br />
1、在两台主机上安装相同版本的数据库，可以在各主机上使用下面命令安装：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql mysql-server</pre></div></div>

<p>2、在主服务器上，设置一个复制使用的帐号，并授予REPLICATIAN SLAVE权限。这里创建一个复制帐号rep1，可以从从服务器IP为：192.168.3.202的主机进行连接</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> GRANT REPLICATION SLAVE ON <span style="color: #000000; font-weight: bold;">*</span>.<span style="color: #000000; font-weight: bold;">*</span> TO <span style="color: #ff0000;">'rep1'</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'192.168.3.202'</span> IDENTIFIED BY <span style="color: #ff0000;">'1234vps'</span>;
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>3、修改主数据库服务器 A 的配置文件/etc/my.cnf，开启BINLOG日志，并设置server-id的值，然后重启mysqld服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>my.cnf
<span style="color: #666666; font-style: italic;">#在[mysqld]字段中里添加下面两行</span>
log-bin=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>mysql-bin.log
server-id=<span style="color: #000000;">1</span></pre></div></div>

<p>4、在主服务器A,设置读锁定有效，这个步骤是为了确保没有数据库操作，以便获得一个一致性的快照</p>
<pre>mysql> flush tables with read lock;
Query OK, 0 rows affected (0.00 sec)</pre>
<p>经过上面的读锁定命令，这样数据库A就不能够往里面写数据，我们测试看看：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> create database vps;
ERROR <span style="color: #000000;">1223</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>HY000<span style="color: #7a0874; font-weight: bold;">&#41;</span>: Can<span style="color: #ff0000;">'t execute the query because you have a conflicting read lock</span></pre></div></div>

<p>5、然后再在主服务器A上运行命令命令，得到当前的二进制日志名和偏移量值，这个操作的目的是为了在从数据库启动以后，从这个点开始进行数据的恢复</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show master status;
+-------------------+----------+--------------+------------------+
<span style="color: #000000; font-weight: bold;">|</span> File              <span style="color: #000000; font-weight: bold;">|</span> Position <span style="color: #000000; font-weight: bold;">|</span> Binlog_Do_DB <span style="color: #000000; font-weight: bold;">|</span> Binlog_Ignore_DB <span style="color: #000000; font-weight: bold;">|</span>
+-------------------+----------+--------------+------------------+
<span style="color: #000000; font-weight: bold;">|</span> mysqld-bin.000003 <span style="color: #000000; font-weight: bold;">|</span>       <span style="color: #000000;">98</span> <span style="color: #000000; font-weight: bold;">|</span>              <span style="color: #000000; font-weight: bold;">|</span>                  <span style="color: #000000; font-weight: bold;">|</span>
+-------------------+----------+--------------+------------------+
<span style="color: #000000;">1</span> row <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>这里要记住上面的File和Position，等一下配置从服务器需要这两个数据<br />
6、在从服务器B上，把主服务器A的数据库数据使用scp命令备份到从服务器上,这个步骤有很多种方法，就是把主服务器的资料备份到从服务器</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#scp -rp root@192.168.3.201:/var/lib/mysql/* /var/lib/mysql/</span>
<span style="color: #666666; font-style: italic;">#chown -R mysql:mysql /var/lib/mysql/</span></pre></div></div>

<p>7、主服务器备份完毕后，恢复主数据库的写操作，剩下的工作之需要在从服务器上执行</p>
<pre>mysql> unlock tables;
Query OK, 0 rows affected (0.00 sec)</pre>
<p>8修改从服务器的/etc/my.cnf数据库配置文件，增加server-id参数，这里的server-id的值必须是唯一的，不能与主服务器相同</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>my.cnf
<span style="color: #666666; font-style: italic;">#在[mysqld]字段中里添加下面一行</span>
server-id=<span style="color: #000000;">2</span></pre></div></div>

<p>9、开启从服务器mysql服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>vps-rep2 mysql<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /etc/init.d/mysqld start</span>
Starting MySQL:                                            <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>vps-rep2 mysql<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mysql -uroot -p</span>
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection <span style="color: #c20cb9; font-weight: bold;">id</span> is <span style="color: #000000;">2</span>
Server version: 5.0.45 Source distribution
&nbsp;
Type <span style="color: #ff0000;">'help;'</span> or <span style="color: #ff0000;">'\h'</span> <span style="color: #000000; font-weight: bold;">for</span> help. Type <span style="color: #ff0000;">'\c'</span> to <span style="color: #c20cb9; font-weight: bold;">clear</span> the buffer.
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> stop slave;   <span style="color: #000000; font-weight: bold;">&lt;</span> --相当于使用--skip-slave-start参数启动数据库服务
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> CHANGE MASTER TO
    -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">MASTER_HOST</span>=<span style="color: #ff0000;">'192.168.3.201'</span>,
    -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">MASTER_PORT</span>=<span style="color: #000000;">3306</span>,
    -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">MASTER_USER</span>=<span style="color: #ff0000;">'rep1'</span>,
    -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">MASTER_PASSWORD</span>=<span style="color: #ff0000;">'1234vps'</span>,
    -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">MASTER_LOG_FILE</span>=<span style="color: #ff0000;">'mysqld-bin.000005'</span>,
    -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">MASTER_LOG_POS</span>=<span style="color: #000000;">98</span>;
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.01</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>10、在从服务器上，启动slave线程,同时执行show processlist命令，显示从服务器的进程</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> start slave;
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show processlist \G
<span style="color: #000000; font-weight: bold;">***************************</span> 1. row <span style="color: #000000; font-weight: bold;">***************************</span>
     Id: <span style="color: #000000;">2</span>
   User: root
   Host: localhost
     db: NULL
Command: Query
   Time: <span style="color: #000000;">0</span>
  State: NULL
   Info: show processlist
<span style="color: #000000; font-weight: bold;">***************************</span> 2. row <span style="color: #000000; font-weight: bold;">***************************</span>
     Id: <span style="color: #000000;">3</span>
   User: system user
   Host:
     db: NULL
Command: Connect
   Time: <span style="color: #000000;">20</span>
  State: Waiting <span style="color: #000000; font-weight: bold;">for</span> master to send event
   Info: NULL
<span style="color: #000000; font-weight: bold;">***************************</span> 3. row <span style="color: #000000; font-weight: bold;">***************************</span>
     Id: <span style="color: #000000;">4</span>
   User: system user
   Host:
     db: NULL
Command: Connect
   Time: <span style="color: #000000;">15</span>
  State: Has <span style="color: #c20cb9; font-weight: bold;">read</span> all relay log; waiting <span style="color: #000000; font-weight: bold;">for</span> the slave I<span style="color: #000000; font-weight: bold;">/</span>O thread to update it
   Info: NULL
<span style="color: #000000;">3</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>看到上面3.row下的connect，代表slave已经连接上master，并且开始接收并执行日志<br />
11、在主服务器上执行一些更新操作，观察是否在从服务器数据库上同步，这里在主服务器上新建一个vps，创建一个rep1_test表，且插入数据</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> create database vps;
Query OK, <span style="color: #000000;">1</span> row affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.02</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> use vps;
Database changed
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show tables;
Empty <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> create table rep1_test <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">id</span> int<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.01</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> insert into rep1_test values<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
Query OK, <span style="color: #000000;">5</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Records: <span style="color: #000000;">5</span>  Duplicates: <span style="color: #000000;">0</span>  Warnings: <span style="color: #000000;">0</span>
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">select</span> <span style="color: #000000; font-weight: bold;">*</span> from rep1_test;
+------+
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">id</span>   <span style="color: #000000; font-weight: bold;">|</span>
+------+
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">3</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">4</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">|</span>
+------+
<span style="color: #000000;">5</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>12、在从服务器B上，检查新表是否创建，数据是否同步</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> use vps;
Reading table information <span style="color: #000000; font-weight: bold;">for</span> completion of table and column names
You can turn off this feature to get a quicker startup with <span style="color: #660033;">-A</span>
&nbsp;
Database changed
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show tables;
+---------------+
<span style="color: #000000; font-weight: bold;">|</span> Tables_in_vps <span style="color: #000000; font-weight: bold;">|</span>
+---------------+
<span style="color: #000000; font-weight: bold;">|</span> rep1_test     <span style="color: #000000; font-weight: bold;">|</span>
+---------------+
<span style="color: #000000;">1</span> row <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">select</span> <span style="color: #000000; font-weight: bold;">*</span> from rep1_test;
+------+
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">id</span>   <span style="color: #000000; font-weight: bold;">|</span>
+------+
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">3</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">4</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>    <span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">|</span>
+------+
<span style="color: #000000;">5</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>从上面的结果看，数据库已经同步了，复制服务配置成功完成。<br />
更多的可以查看官方网站资料：<a href="http://dev.mysql.com/doc/refman/5.1/zh/replication.html">http://dev.mysql.com/doc/refman/5.1/zh/replication.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/mysql-replication-in-two-vps-hosting-546.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>美国VPS有什么好处</title>
		<link>http://vps.15099.net/2009/01/what-are-the-advantages-the-united-states-vps-538.html</link>
		<comments>http://vps.15099.net/2009/01/what-are-the-advantages-the-united-states-vps-538.html#comments</comments>
		<pubDate>Wed, 07 Jan 2009 08:36:00 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售前问题]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=538</guid>
		<description><![CDATA[使用美国VPS有什么好处
首先、美国服务器克服电信网通互访问题
第二、免去备案等复杂手续
第三、价格便宜，服务器稳定国外主机市场成熟规范，网络设施绝对一流,我们的vps linux主机每月只要60元
第四、政策健全的法律保证了商家承诺的可靠性
第五、解决面向其他国家访客速度慢的问题特别是针对国外客户的网站，很有必要选择国外的主机
第六、网站内容限制相对宽松现在国内的虚拟主机市场还不完善,如果自己想搞个站玩，手头不宽
裕又头疼国内备案等复杂手续，或者你的站点人气很旺国内主机满足不了你流量的要求又想花少量
的钱买稳定空间，建议使用我们的美国vps主机
]]></description>
			<content:encoded><![CDATA[<p>使用<strong>美国VPS</strong>有什么好处<br />
首先、美国服务器克服电信网通互访问题<br />
第二、免去备案等复杂手续<br />
第三、价格便宜，服务器稳定国外主机市场成熟规范，网络设施绝对一流,<strong>我们的vps linux主机每月只要60元</strong><br />
第四、政策健全的法律保证了商家承诺的可靠性<br />
第五、解决面向其他国家访客速度慢的问题特别是针对国外客户的网站，很有必要选择国外的主机<br />
第六、网站内容限制相对宽松现在国内的虚拟主机市场还不完善,如果自己想搞个站玩，手头不宽<br />
裕又头疼国内备案等复杂手续，或者你的站点人气很旺国内主机满足不了你流量的要求又想花少量<br />
的钱买稳定空间，建议使用我们的<a href="http://vps.15099.net/vps-hosting">美国vps主机</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/what-are-the-advantages-the-united-states-vps-538.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机安装centos5后初始化配置</title>
		<link>http://vps.15099.net/2009/01/initialization-the-centos-5-in-vps-hosting-211.html</link>
		<comments>http://vps.15099.net/2009/01/initialization-the-centos-5-in-vps-hosting-211.html#comments</comments>
		<pubDate>Wed, 07 Jan 2009 04:10:13 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[centos VPS主机维护]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[初始化]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=211</guid>
		<description><![CDATA[概述：我们的vps主机默认的环境是英文语言，可能有些有我们中文环境不相符合，那么新购买的美国linux VPS主机后，需要先进行初始化配置，以便于更适合我们国内的环境
环境：linux  vps 主机 centos5系统
步骤：
1、新建立一个用户平常系统维护的帐号,这里假设为sysadmin

useradd sysadm
passwd sysadm

2、只允许管理者登录ssh

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
vi /etc/ssh/sshd_config
echo &#34;AllowUsers sysadm&#34; &#62;&#62; /etc/ssh/sshd_config

3、重启ssh服务，更多可以查看 在vps主机配置安全ssh服务

/etc/init.d/sshd restart

4、安装vim增强功能

yum -y install vim-enhanced
mv /bin/vi /bin/vi.bak
ln -s /usr/bin/vim /bin/vi
echo &#34;set nu&#34; &#62;&#62; /etc/vimrc

退出ssh，使用刚才的新建的sysadmin帐号登录
5、语言环境

yum -y install Deployment_Guide-zh-TW Deployment_Guide-zh-CN lv stardict   &#60; --安装中文支持包，大概30M
echo &#34;LANG=zh_CN.UTF-8&#34; &#62;&#62; .bash_profile

]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>我们的<a href="http://vps.15099.net">vps主机</a>默认的环境是英文语言，可能有些有我们中文环境不相符合，那么新购买的<a href="http://vps.15099.net/vps-hosting">美国linux VPS主机</a>后，需要先进行初始化配置，以便于更适合我们国内的环境<br />
<strong>环境：</strong><a href="http://vps.15099.net/vps-hosting">linux  vps 主机 </a><a href="http://wiki.15099.net">centos5系统</a></p>
<p><strong>步骤：</strong></p>
<p>1、新建立一个用户平常系统维护的帐号,这里假设为sysadmin</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">useradd sysadm
<span style="color: #c20cb9; font-weight: bold;">passwd</span> sysadm</pre></div></div>

<p>2、只允许管理者登录ssh</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span><span style="color: #000000; font-weight: bold;">/</span>sshd_config <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span><span style="color: #000000; font-weight: bold;">/</span>sshd_config.bak
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span><span style="color: #000000; font-weight: bold;">/</span>sshd_config
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;AllowUsers sysadm&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span><span style="color: #000000; font-weight: bold;">/</span>sshd_config</pre></div></div>

<p>3、重启ssh服务，更多可以查看 <a href="http://vps.15099.net/2009/01/securing-ssh-on-your-virtual-server-495.html">在vps主机配置安全ssh服务</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sshd restart</pre></div></div>

<p>4、安装vim增强功能</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> vim-enhanced
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>vi.bak
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">vi</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;set nu&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vimrc</pre></div></div>

<p>退出ssh，使用刚才的新建的sysadmin帐号登录<br />
5、语言环境</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> Deployment_Guide-zh-TW Deployment_Guide-zh-CN lv stardict   <span style="color: #000000; font-weight: bold;">&lt;</span> --安装中文支持包，大概30M
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;LANG=zh_CN.UTF-8&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> .bash_profile</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/initialization-the-centos-5-in-vps-hosting-211.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用DenyHosts阻止SSH暴力攻击</title>
		<link>http://vps.15099.net/2009/01/use-denyhosts-ssh-attack-512.html</link>
		<comments>http://vps.15099.net/2009/01/use-denyhosts-ssh-attack-512.html#comments</comments>
		<pubDate>Tue, 06 Jan 2009 08:23:13 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[centos VPS主机维护]]></category>
		<category><![CDATA[DenyHosts]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=512</guid>
		<description><![CDATA[概述: 现在的互联网非常不安全，很多人没事就拿一些扫描机扫描ssh端口，然后试图连接ssh端口进行暴力破解（穷举扫描），所以建议vps主机的空间,尽量设置复杂的ssh登录密码，关于如何配置安全的ssh服务，请查看：在vps主机配置安全ssh服务这篇文章，那么有什么办法设法阻止这些，就可以使用denyhosts这款软件了，DenyHosts是Python语言写的一个程序，它会分析SSHD的日志文件，当发现重复的攻击时就会记录IP到/etc/hosts.deny文件，从而达到自动屏蔽IP的功能。
DenyHosts官方网站为：http://denyhosts.sourceforge.net
目的: 阻止非授权的大量访问我们的ssh端口，造成负载过高
环境：vps主机 使用型  centos5系统
安装：
一、使用原代码安装
1、下载原文件且解压

wget http://downloads.sourceforge.net/denyhosts/DenyHosts-2.6.tar.gz
tar zxvf DenyHosts-2.6.tar.gz
cd DenyHosts-2.6

2、安装、配置和启动

python setup.py install

默认是安装到/usr/share/denyhosts/目录的,进入相应的目录修改配置文件

cd /usr/share/denyhosts/
cp denyhosts.cfg-dist denyhosts.cfg
cp daemon-control-dist daemon-control

默认的设置已经可以适合centos系统环境，你们可以使用vi命令查看一下denyhosts.cfg和daemon-control，里面有详细的解释
接着使用下面命令启动denyhosts程序

chown root daemon-control
chmod 700 daemon-control
./daemon-control start

如果要使DenyHosts每次重起后自动启动还需做如下设置：

cd /etc/init.d
ln -s /usr/share/denyhosts/daemon-control denyhosts
chkconfig --add denyhosts
chkconfig --level 2345 denyhosts on

或者修改/etc/rc.local文件：

echo &#34;/usr/share/denyhosts/daemon-control start&#34; &#62;&#62; /etc/rc.local

DenyHosts配置文件denyhosts.cfg说明：

SECURE_LOG = /var/log/secure
&#160;
#sshd日志文件，它是根据这个文件来判断的，不同的操作系统，文件名稍有不同。
&#160;
HOSTS_DENY = /etc/hosts.deny
&#160;
#控制用户登陆的文件
&#160;
PURGE_DENY = 5m
&#160;
#过多久后清除已经禁止的
&#160;
BLOCK_SERVICE  = sshd
&#160;
#禁止的服务名
&#160;
DENY_THRESHOLD_INVALID = 1
&#160;
#允许无效用户失败的次数
&#160;
DENY_THRESHOLD_VALID = 10
&#160;
#允许普通用户登陆失败的次数
&#160;
DENY_THRESHOLD_ROOT = 5
&#160;
#允许root登陆失败的次数
&#160;
HOSTNAME_LOOKUP=NO
&#160;
#是否做域名反解
&#160;
DAEMON_LOG = /var/log/denyhosts
&#160;
#DenyHosts的日志文件

更多的说明请查看自带的README文本文件。
二、使用yum命令安装
1、下载和安装EPEL RPM

cd /tmp [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述: </strong>现在的互联网非常不安全，很多人没事就拿一些扫描机扫描ssh端口，然后试图连接ssh端口进行暴力破解（穷举扫描），所以建议<a href="http://vps.15099.net">vps主机</a>的空间,尽量设置复杂的ssh登录密码，关于如何配置安全的ssh服务，请查看：<a title="在vps主机配置安全ssh服务的永久链接" rel="bookmark" href="../2009/01/securing-ssh-on-your-virtual-server-495.html">在vps主机配置安全ssh服务</a>这篇文章，那么有什么办法设法阻止这些，就可以使用denyhosts这款软件了，DenyHosts是Python语言写的一个程序，它会分析SSHD的日志文件，当发现重复的攻击时就会记录IP到/etc/hosts.deny文件，从而达到自动屏蔽IP的功能。</p>
<p>DenyHosts官方网站为：<a href="http://denyhosts.sourceforge.net">http://denyhosts.sourceforge.net</a></p>
<p><strong>目的:</strong> 阻止非授权的大量访问我们的ssh端口，造成负载过高</p>
<p><strong>环境：</strong><a href="http://vps.15099.net">vps主机</a> <a href="http://vps.15099.net/vps-hosting/windows-utility-type-vps-hosting">使用型</a> <a href="http://wiki.15099.net"> centos5系统</a></p>
<p><strong>安装：</strong></p>
<p><strong>一、使用原代码安装</strong></p>
<p>1、下载原文件且解压</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>downloads.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>denyhosts<span style="color: #000000; font-weight: bold;">/</span>DenyHosts-2.6.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf DenyHosts-2.6.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> DenyHosts-<span style="color: #000000;">2.6</span></pre></div></div>

<p>2、安装、配置和启动</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>默认是安装到/usr/share/denyhosts/目录的,进入相应的目录修改配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>denyhosts<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> denyhosts.cfg-dist denyhosts.cfg
<span style="color: #c20cb9; font-weight: bold;">cp</span> daemon-control-dist daemon-control</pre></div></div>

<p>默认的设置已经可以适合centos系统环境，你们可以使用vi命令查看一下denyhosts.cfg和daemon-control，里面有详细的解释<br />
接着使用下面命令启动denyhosts程序</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chown</span> root daemon-control
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">700</span> daemon-control
.<span style="color: #000000; font-weight: bold;">/</span>daemon-control start</pre></div></div>

<p>如果要使DenyHosts每次重起后自动启动还需做如下设置：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>denyhosts<span style="color: #000000; font-weight: bold;">/</span>daemon-control denyhosts
chkconfig <span style="color: #660033;">--add</span> denyhosts
chkconfig <span style="color: #660033;">--level</span> <span style="color: #000000;">2345</span> denyhosts on</pre></div></div>

<p>或者修改/etc/rc.local文件：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;/usr/share/denyhosts/daemon-control start&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local</pre></div></div>

<p>DenyHosts配置文件denyhosts.cfg说明：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SECURE_LOG = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>secure
&nbsp;
<span style="color: #666666; font-style: italic;">#sshd日志文件，它是根据这个文件来判断的，不同的操作系统，文件名稍有不同。</span>
&nbsp;
HOSTS_DENY = <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts.deny
&nbsp;
<span style="color: #666666; font-style: italic;">#控制用户登陆的文件</span>
&nbsp;
PURGE_DENY = 5m
&nbsp;
<span style="color: #666666; font-style: italic;">#过多久后清除已经禁止的</span>
&nbsp;
BLOCK_SERVICE  = sshd
&nbsp;
<span style="color: #666666; font-style: italic;">#禁止的服务名</span>
&nbsp;
DENY_THRESHOLD_INVALID = <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#允许无效用户失败的次数</span>
&nbsp;
DENY_THRESHOLD_VALID = <span style="color: #000000;">10</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#允许普通用户登陆失败的次数</span>
&nbsp;
DENY_THRESHOLD_ROOT = <span style="color: #000000;">5</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#允许root登陆失败的次数</span>
&nbsp;
<span style="color: #007800;">HOSTNAME_LOOKUP</span>=NO
&nbsp;
<span style="color: #666666; font-style: italic;">#是否做域名反解</span>
&nbsp;
DAEMON_LOG = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>denyhosts
&nbsp;
<span style="color: #666666; font-style: italic;">#DenyHosts的日志文件</span></pre></div></div>

<p>更多的说明请查看自带的README文本文件。</p>
<p><strong>二、使用yum命令安装</strong></p>
<p>1、下载和安装EPEL RPM</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp 
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.fedora.redhat.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>epel<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>epel-release-<span style="color: #000000;">5</span>-3.noarch.rpm
rpm <span style="color: #660033;">-Uhv</span> epel-release-<span style="color: #000000;">5</span>-3.noarch.rpm</pre></div></div>

<p>2、使用yum命令安装denyhosts</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> denyhosts</pre></div></div>

<p>主要配置文件/etc/denyhosts.cfg ，您可以看看，确保配置合适你的环境<br />
3、添加系统启动自动运行</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">chkconfig <span style="color: #660033;">--add</span> denyhosts
chkconfig denyhosts on</pre></div></div>

<p>如何你想把某个ip或者ip段放入白名单，可以使用下列命令，这样就可以避免把自己的ip阻止了</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'208.85.151.*'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>denyhosts<span style="color: #000000; font-weight: bold;">/</span>allowed-hosts</pre></div></div>

<p>这样208.85.151.*就可以不受到此程序的约束，请根据自己的环境进行设置<br />
4、最后启动服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service denyhosts start</pre></div></div>

<p><strong>参考文件：</strong><br />
https://boxpanel.blueboxgrp.com/public/the_vault/index.php/Installing_DenyHosts<br />
http://www.sofee.cn/blog/2006/10/22/51/</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/use-denyhosts-ssh-attack-512.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机配置反黑客程序</title>
		<link>http://vps.15099.net/2009/01/configure-anti-rootkit-in-vps-hosting-508.html</link>
		<comments>http://vps.15099.net/2009/01/configure-anti-rootkit-in-vps-hosting-508.html#comments</comments>
		<pubDate>Mon, 05 Jan 2009 12:42:22 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[centos VPS主机维护]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[安全]]></category>
		<category><![CDATA[美国vps]]></category>
		<category><![CDATA[黑客]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=508</guid>
		<description><![CDATA[在vps主机配置好web环境后，我们还需要配置监控这个vps主机的反黑客程序，比较有名的有：rkhunter和chkrootki
下面就讲讲如何在vps主机配置这两款程序
环境：vps主机特惠型 centos 系统
一、先安装rkhunter安装使用
1、登录上SSH，到rkhunter的主页找到最新版本的下载链接，用wget下载到服务器上；
wget http://jaist.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.3.2.tar.gz
2、解压并进入到解压的目录内（一定要进入到目录内才能安装）
tar -xzvf rkhunter-1.3.2.tar.gz
cd rkhunter-1.3.2
3、运行installer.sh进行安装，如下面命令即是安装到/usr/local下：
installer.sh --layout /usr/local --install
4、现在可以运行下列命令进行检查
/usr/local/bin/rkhunter -c
二、chkrootkit的安装使用：
1、chkrootkit的安装就更简单了，
yum install chkrootkit
2、运行
chkrootkit

]]></description>
			<content:encoded><![CDATA[<p>在vps主机配置好web环境后，我们还需要配置监控这个vps主机的反黑客程序，比较有名的有：<a href="http://www.rootkit.nl/projects/rootkit_hunter.html">rkhunter</a>和<a href="http://www.chkrootkit.org/">chkrootki</a></p>
<p>下面就讲讲如何在vps主机配置这两款程序</p>
<p>环境：<a href="http://vps.15099.net/vps-hosting">vps主机特惠型</a> <a href="http://wiki.15099.net">centos 系统</a></p>
<p><strong>一、先安装<a href="http://www.rootkit.nl/projects/rootkit_hunter.html">rkhunter</a>安装使用</strong><br />
1、登录上SSH，到<a href="http://www.rootkit.nl/projects/rootkit_hunter.html">rkhunter的主页</a>找到最新版本的下载链接，用wget下载到服务器上；</p>
<p><code>wget http://jaist.dl.sourceforge.net/sourceforge/rkhunter/rkhunter-1.3.2.tar.gz</code></p>
<p>2、解压并进入到解压的目录内（一定要进入到目录内才能安装）<br />
<code>tar -xzvf rkhunter-1.3.2.tar.gz<br />
cd rkhunter-1.3.2</code></p>
<p>3、运行installer.sh进行安装，如下面命令即是安装到<em>/usr/local</em>下：<br />
<code>installer.sh --layout /usr/local --install</code><br />
4、现在可以运行下列命令进行检查<br />
<code>/usr/local/bin/rkhunter -c</code><br />
二、<strong>chkrootkit的安装使用</strong>：</p>
<p>1、chkrootkit的安装就更简单了，</p>
<pre class="code"><code>yum install chkrootkit
2、运行
</code><code>chkrootkit
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/configure-anti-rootkit-in-vps-hosting-508.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vps主机上免费的控制面板</title>
		<link>http://vps.15099.net/2009/01/free-cpanel-in-vps-hosting-501.html</link>
		<comments>http://vps.15099.net/2009/01/free-cpanel-in-vps-hosting-501.html#comments</comments>
		<pubDate>Sun, 04 Jan 2009 05:22:02 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[vps控制面板]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[ispconfig]]></category>
		<category><![CDATA[lxadmin]]></category>
		<category><![CDATA[vhcs]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=501</guid>
		<description><![CDATA[列出了一些优秀的免费虚拟主机控制面板
VHCS &#8211; http://vhcs.net
Ispcp- http://www.isp-control.net
Ispconfig &#8211; http://www.ispconfig.org    资料非常丰富
webmin-http://www.webmin.com
phpanel &#8211; http://phpanel.net
Domain Technologie Control &#8211; http://www.gplhost.com/?rub=softwares&#38;sousrub=dtc
syscp &#8211; http://www.syscp.de/page/start
zpanel &#8211; http://www.thezpanel.com
Bankoi http://www.webhost-panel.com
VishwaKarma http://kandalaya.org/vishwakarma.shtml
Xpanel: http://www.xpanel.com
Zervex: http://www.zervex.com/products.htm
ASM &#8211; www.acctmgr.com
Ababa &#8211; www.yupapa.com
lxadmin-http://lxlabs.com Linux VPS的轻量级控制面板,这个的免费版本有40个域名限制，LXadmin “Host in a box” 是唯一能够在一个干净系统上把内存用量控制在8MB以内的VPS控制面板，这个控制面板使用了轻量级的lighttpd和DJBDNS。在空闲的时候，控制面板只占用1MB内存。LXadmin “Host in a box” 是LXadmin的一部分，LXadmin是业界领先的轻量级的VPS控制面板。LXadmin “Host in a box”和LXadmin的唯一区别是两者使用的守护进程不同。
这个轻量级的控制面板拥有所有优秀的控制面板应该拥有的特性，比如邮件管理，垃圾邮件过滤，PHP，CGI，Perl，SUexec, FTP, MySQL等等
主要是试试VPS就好,很简洁。
Interworx: http://interworx.info
Interworx可不是免费的，只是他很是优秀，所以放到这里
另外还有web-CP &#8211; http://www.web-cp.net/，不过这个05年后就在没有更新过
]]></description>
			<content:encoded><![CDATA[<p>列出了一些优秀的免费虚拟主机控制面板<br />
VHCS &#8211; <a href="http://vhcs.net">http://vhcs.net</a><br />
Ispcp- <a href="http://www.isp-control.net">http://www.isp-control.net</a><br />
Ispconfig &#8211; <a href="http://www.ispconfig.org">http://www.ispconfig.org</a>    资料非常丰富<br />
webmin-<a href="http://www.webmin.com">http://www.webmin.com<br />
</a>phpanel &#8211; <a href="http://phpanel.net">http://phpanel.net</a><br />
Domain Technologie Control &#8211; <a href="http://www.gplhost.com/?rub=softwares&amp;sousrub=dtc">http://www.gplhost.com/?rub=softwares&amp;sousrub=dtc</a><br />
syscp &#8211; <a href="http://www.syscp.de/page/start">http://www.syscp.de/page/start</a><br />
zpanel &#8211; <a href="http://www.thezpanel.com">http://www.thezpanel.com</a><br />
Bankoi <a href="http://www.webhost-panel.com">http://www.webhost-panel.com</a><br />
VishwaKarma <a href="http://kandalaya.org/vishwakarma.shtml">http://kandalaya.org/vishwakarma.shtml</a><br />
Xpanel: <a href="http://www.xpanel.com">http://www.xpanel.com</a><br />
Zervex: <a href="http://www.zervex.com/products.htm">http://www.zervex.com/products.htm</a><br />
ASM &#8211; <a href="http://www.acctmgr.com">www.acctmgr.com</a><br />
Ababa &#8211; <a href="http://www.yupapa.com">www.yupapa.com</a></p>
<p><strong>lxadmin</strong>-<a href="http://lxlabs.com">http://lxlabs.com</a> Linux VPS的轻量级控制面板,这个的免费版本有40个域名限制，LXadmin “Host in a box” 是唯一能够在一个干净系统上把内存用量控制在8MB以内的VPS控制面板，这个控制面板使用了轻量级的lighttpd和DJBDNS。在空闲的时候，控制面板只占用1MB内存。LXadmin “Host in a box” 是LXadmin的一部分，LXadmin是业界领先的轻量级的VPS控制面板。LXadmin “Host in a box”和LXadmin的唯一区别是两者使用的守护进程不同。</p>
<p>这个轻量级的控制面板拥有所有优秀的控制面板应该拥有的特性，比如邮件管理，垃圾邮件过滤，PHP，CGI，Perl，SUexec, FTP, MySQL等等<br />
主要是试试VPS就好,很简洁。</p>
<p>Interworx: <a href="http://interworx.info">http://interworx.info</a><br />
Interworx可不是免费的，只是他很是优秀，所以放到这里<br />
另外还有web-CP &#8211; <a href="http://www.web-cp.net/">http://www.web-cp.net/</a>，不过这个05年后就在没有更新过</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/free-cpanel-in-vps-hosting-501.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机配置安全ssh服务</title>
		<link>http://vps.15099.net/2009/01/securing-ssh-on-your-virtual-server-495.html</link>
		<comments>http://vps.15099.net/2009/01/securing-ssh-on-your-virtual-server-495.html#comments</comments>
		<pubDate>Fri, 02 Jan 2009 07:51:00 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[centos VPS主机维护]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=495</guid>
		<description><![CDATA[1、使用vps主机开通的邮件信息，使用root帐号登录vps主机，创建一个用于平常有的系统帐号

# adduser 
# passwd

2 、编辑这个/etc/sudoers文件，让刚才新建的系统帐号使用root访问

# echo &#34;    ALL=(ALL)    ALL&#34; &#62;&#62; /etc/sudoers

3、 关闭root帐号登录ssh的权限

# echo &#34;PermitRootLogin no&#34; &#62;&#62; /etc/ssh/sshd_config

4、重启sshd服务使其修改的配置生效

/etc/init.d/sshd restart

5、当然你也可以修改ssh服务的端口，只有编辑/etc/ssh/sshd_config把Port 22 修改为高端口，例如 50000
]]></description>
			<content:encoded><![CDATA[<p>1、使用vps主机开通的邮件信息，使用root帐号登录vps主机，创建一个用于平常有的系统帐号</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># adduser </span>
<span style="color: #666666; font-style: italic;"># passwd</span></pre></div></div>

<p>2 、编辑这个/etc/sudoers文件，让刚才新建的系统帐号使用root访问</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># echo &quot;    ALL=(ALL)    ALL&quot; &gt;&gt; /etc/sudoers</span></pre></div></div>

<p>3、 关闭root帐号登录ssh的权限</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># echo &quot;PermitRootLogin no&quot; &gt;&gt; /etc/ssh/sshd_config</span></pre></div></div>

<p>4、重启sshd服务使其修改的配置生效</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sshd restart</pre></div></div>

<p>5、当然你也可以修改ssh服务的端口，只有编辑/etc/ssh/sshd_config把Port 22 修改为高端口，例如 50000</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/securing-ssh-on-your-virtual-server-495.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>容器式的虚拟化 Parallels虚拟化技术解释</title>
		<link>http://vps.15099.net/2009/01/parallels-virtualisation-technical-490.html</link>
		<comments>http://vps.15099.net/2009/01/parallels-virtualisation-technical-490.html#comments</comments>
		<pubDate>Thu, 01 Jan 2009 02:29:44 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[virtuozzo]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=490</guid>
		<description><![CDATA[一旦提及虚拟化技术，人们一般首先想到的都是VMware、微软和Citrix XenServer，却忘记了虚拟化家族中另外一个很重要的成员。Parallels Virtuozzo使用一种截然不同的虚拟化方法，提供了一种可以代替hypervisor虚拟化实现方式。
Virtuozzo和OpenVZ这两产品背后的公司名字从前叫SWsoft现在叫Parallels，Virtuozzo OS Virtualization和Virtuozzo Server Virtualization是SWsoft公司的商业版产品，OpenVZ是采用SWsoft源码的开源项目。
与微软，VMware，citrix等公司的的虚拟化产品相比，SWsoft的产品运行在更高的层次上。用专业术语来说，Virtuozzo和OpenVZ属于Application Container——应用程序的容器。
VMware、XEN、MS这些所虚拟出来的，都是一个个“硬”的主机，你得在这些虚机上再装操作系统。而Virtuozzo和OpenVZ所 虚出来的，是一个个已经装好系统的主机。也就是说，VMware、XEN、MS所虚拟的是硬件资源，而Virtuozzo和OpenVZ所虚拟的是操作系 统环境。
所以Virtuozzo和OpenVZ里面没有VM（Virtual Machine）这个概念，取而代之的是VE（Virtual Environment）或称VPS（Virtual Private Server）。而进到VE/VPS里面，看到的就是一个现成的操作系统环境。

具体来说。比方说Windows下安装某个程序，要改注册表是吧？还有创建目录和文件是吧？Virtuozzo能把这些动作统统截获，并且偷偷 在其它地方执行，而不真正修改原来的系统环境。这样程序自以为万事OK，很Happy的运行，殊不知却是被Virtuozzo给骗了。
Virtuozzo这个有所不同的机制，对资源管理更为灵活，某个虚拟环境只有活动的时候，才会被分配资源。因此在相同的硬件资源 下，Virtuozzo可以配置出更多的虚拟环境。一般VMware和XEN只能在一台服务器上跑几十个虚拟机，而Virtuozzo号称可以一台机器支 持5000个虚拟环境！
当然Virtuozzo也有很明显的不方便之处，就是Linux上只能虚拟Linux，Windows上只能虚拟Windows。而且像VMware或Xen那样在服务器之间挪动虚拟机，也是异常困难的。
下面我们就来详细的看看Parallels的虚拟化技术是如何实现的
在Parallels Virtuozzo技术中，操作系统的虚拟化包括一个在标准的主机操作系统之上的虚拟层。然后，在这个操作系统虚拟层之上，创建独立的容器（域）来最大化软件和硬件的使用效率。
为了更好地理解操作系统虚拟化，我们最好先分析一下Xen和微软Hyper V中的基于hypervisor的虚拟化技术是如何工作的。Hypervisor虚拟化技术使用瘦Linux内核基础层（这个Linux内核基础层对底层 有特定的虚拟化属性）。然后在hypervisor层之上创建虚拟机。
这种模式中的一个瓶颈问题是不需要虚拟化所有硬件的驱动程序而使用硬件资源。诸如泛（准）虚拟化技术对该问题提供了一种解决方案。然而在全虚拟 化技术中，必须首先虚拟化所有的硬件资源，然后才可以分配给虚拟机使用。在虚拟机内部，用户可以运行一个操作系统的完整拷贝，也可以运行用户希望虚拟化的 应用程序。
在操作系统或者Virtuozzo使用虚拟化操作系统中，虚拟化的方法是不同的。在最底层，首先是一个标准的宿主操作系统。当使用 Parallels Virtuozzo技术时，这个宿主操作系统可以是一个Windows系统，也可以是一个Linux系统。在这个宿主操作系统之上，有一个虚拟层作为操作 系统内部的一个应用程序运行。
虚拟层提供一个专用的文件系统和内核服务的抽象层，这保证了不同的虚拟机（在Virtuozzo中称之为容器（域））之间资源的隔离性。虚拟层确保每一个容器（域）看起来是一个独立的服务器。
操作系统虚拟化技术中最大的不同就是没有使用一个完整的虚拟机，反而使用的却是部分虚拟化技术来创建容器（域），或者使用的是宿主操作系统中的 一个独立的应用程序。虚拟层确保每个容器（域）之间互不干扰。这种方法的优势就是没有必要复制功能，由一个操作系统来负责完成对硬件资源的访问控制。因 此，借助驱动虚拟化，与硬件访问相关的传统性能问题在Virtuozzo方法中是不存在的。
但是这种方法也存在一个缺陷，就是缺乏在不同操作系统之间虚拟化的灵活性。从另一个方面讲，这也是一个优点。当用户运行的所有的服务器都是Windows或者Linux系统的时候，怎么可能会有对完整的操作系统虚拟化的需求呢？要知道这是一个相当复杂的支持需求。
Parallels Virtuozzo提供了一种完全不同的虚拟化技术。当其它的虚拟化技术都在试图努力提供一个虚拟平台，并且保证在这个平台之上用户可以安装一个完整的操 作系统的时候，Virtuozzo却通过在一个操作系统内部提供一个独立的容器（域）的方法，完成虚拟化。这个方法更加高效，尤其是用户在仅使用同一个操 作系统工作的时候效率更高。
]]></description>
			<content:encoded><![CDATA[<p>一旦提及虚拟化技术，人们一般首先想到的都是VMware、微软和Citrix XenServer，却忘记了虚拟化家族中另外一个很重要的成员。Parallels Virtuozzo使用一种截然不同的虚拟化方法，提供了一种可以代替hypervisor虚拟化实现方式。</p>
<p>Virtuozzo和OpenVZ这两产品背后的公司名字从前叫SWsoft现在叫Parallels，Virtuozzo OS Virtualization和Virtuozzo Server Virtualization是SWsoft公司的商业版产品，OpenVZ是采用SWsoft源码的开源项目。</p>
<p>与微软，VMware，citrix等公司的的虚拟化产品相比，SWsoft的产品运行在更高的层次上。用专业术语来说，Virtuozzo和OpenVZ属于Application Container——应用程序的容器。</p>
<p>VMware、XEN、MS这些所虚拟出来的，都是一个个“硬”的主机，你得在这些虚机上再装操作系统。而Virtuozzo和OpenVZ所 虚出来的，是一个个已经装好系统的主机。也就是说，VMware、XEN、MS所虚拟的是硬件资源，而Virtuozzo和OpenVZ所虚拟的是操作系 统环境。</p>
<p>所以Virtuozzo和OpenVZ里面没有VM（Virtual Machine）这个概念，取而代之的是VE（Virtual Environment）或称VPS（Virtual Private Server）。而进到VE/VPS里面，看到的就是一个现成的操作系统环境。</p>
<p><span id="more-490"></span></p>
<p>具体来说。比方说Windows下安装某个程序，要改注册表是吧？还有创建目录和文件是吧？Virtuozzo能把这些动作统统截获，并且偷偷 在其它地方执行，而不真正修改原来的系统环境。这样程序自以为万事OK，很Happy的运行，殊不知却是被Virtuozzo给骗了。</p>
<p>Virtuozzo这个有所不同的机制，对资源管理更为灵活，某个虚拟环境只有活动的时候，才会被分配资源。因此在相同的硬件资源 下，Virtuozzo可以配置出更多的虚拟环境。一般VMware和XEN只能在一台服务器上跑几十个虚拟机，而Virtuozzo号称可以一台机器支 持5000个虚拟环境！</p>
<p>当然Virtuozzo也有很明显的不方便之处，就是Linux上只能虚拟Linux，Windows上只能虚拟Windows。而且像VMware或Xen那样在服务器之间挪动虚拟机，也是异常困难的。</p>
<p>下面我们就来详细的看看Parallels的虚拟化技术是如何实现的</p>
<p>在Parallels Virtuozzo技术中，操作系统的虚拟化包括一个在标准的主机操作系统之上的虚拟层。然后，在这个操作系统虚拟层之上，创建独立的容器（域）来最大化软件和硬件的使用效率。</p>
<p>为了更好地理解操作系统虚拟化，我们最好先分析一下Xen和微软Hyper V中的基于hypervisor的虚拟化技术是如何工作的。Hypervisor虚拟化技术使用瘦Linux内核基础层（这个Linux内核基础层对底层 有特定的虚拟化属性）。然后在hypervisor层之上创建虚拟机。</p>
<p>这种模式中的一个瓶颈问题是不需要虚拟化所有硬件的驱动程序而使用硬件资源。诸如泛（准）虚拟化技术对该问题提供了一种解决方案。然而在全虚拟 化技术中，必须首先虚拟化所有的硬件资源，然后才可以分配给虚拟机使用。在虚拟机内部，用户可以运行一个操作系统的完整拷贝，也可以运行用户希望虚拟化的 应用程序。</p>
<p>在操作系统或者Virtuozzo使用虚拟化操作系统中，虚拟化的方法是不同的。在最底层，首先是一个标准的宿主操作系统。当使用 Parallels Virtuozzo技术时，这个宿主操作系统可以是一个Windows系统，也可以是一个Linux系统。在这个宿主操作系统之上，有一个虚拟层作为操作 系统内部的一个应用程序运行。</p>
<p>虚拟层提供一个专用的文件系统和内核服务的抽象层，这保证了不同的虚拟机（在Virtuozzo中称之为容器（域））之间资源的隔离性。虚拟层确保每一个容器（域）看起来是一个独立的服务器。</p>
<p>操作系统虚拟化技术中最大的不同就是没有使用一个完整的虚拟机，反而使用的却是部分虚拟化技术来创建容器（域），或者使用的是宿主操作系统中的 一个独立的应用程序。虚拟层确保每个容器（域）之间互不干扰。这种方法的优势就是没有必要复制功能，由一个操作系统来负责完成对硬件资源的访问控制。因 此，借助驱动虚拟化，与硬件访问相关的传统性能问题在Virtuozzo方法中是不存在的。</p>
<p>但是这种方法也存在一个缺陷，就是缺乏在不同操作系统之间虚拟化的灵活性。从另一个方面讲，这也是一个优点。当用户运行的所有的服务器都是Windows或者Linux系统的时候，怎么可能会有对完整的操作系统虚拟化的需求呢？要知道这是一个相当复杂的支持需求。</p>
<p>Parallels Virtuozzo提供了一种完全不同的虚拟化技术。当其它的虚拟化技术都在试图努力提供一个虚拟平台，并且保证在这个平台之上用户可以安装一个完整的操 作系统的时候，Virtuozzo却通过在一个操作系统内部提供一个独立的容器（域）的方法，完成虚拟化。这个方法更加高效，尤其是用户在仅使用同一个操 作系统工作的时候效率更高。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2009/01/parallels-virtualisation-technical-490.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机配置Lighttpd+php5+mysql环境</title>
		<link>http://vps.15099.net/2008/12/use-yum-configure-lighttpdphp5mysql-in-vps-hosting-427.html</link>
		<comments>http://vps.15099.net/2008/12/use-yum-configure-lighttpdphp5mysql-in-vps-hosting-427.html#comments</comments>
		<pubDate>Tue, 30 Dec 2008 06:20:44 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS lighttpd应用]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=427</guid>
		<description><![CDATA[概述：是一个德国人领导的开源软件，其根本的目的是提供一个专门针对高性能网站，安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销，cpu占用率低，效能好，本文详细讲解如何在vps主机下配置Lighttpd+php5+mysql环境
环境：centos5 特惠型vps主机
步骤：
1、安装数据库

yum remove httpd   &#60; --我们的vps主机一般默认已经安装了httpd服务，所以我这里先卸载掉httpd
yum -y install mysql-server
chkconfig --level 235 mysqld on
/etc/init.d/mysqld start
mysqladmin -u root password yourrootsqlpassword    &#60;--修改默认的管理员帐号密码，这里的yourrootsqlpassword 请使用自己想的秘密代替
mysqladmin -h server1.example.com -u root password yourrootsqlpassword

2、安装lighttpd


yum install yum-priorities  &#60; --安装yum库优先包，是系统自带的包优先
rpm -Uvh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm &#60;--安装有lighttpd包的库
yum -y install lighttpd
chkconfig --level 235 lighttpd on   &#60;--设置开启启动
/etc/init.d/lighttpd start


3、安装php5(CGI模式）


rpm -Uvh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum  install [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>是一个德国人领导的开源软件，其根本的目的是提供一个专门针对高性能网站，安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销，cpu占用率低，效能好，本文详细讲解如何在vps主机下配置Lighttpd+php5+mysql环境<br />
<strong>环境：</strong><a href="http://wiki.15099.net">centos5</a> <a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">特惠型vps主机</a></p>
<p><strong>步骤：</strong></p>
<p>1、安装数据库</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum remove httpd   <span style="color: #000000; font-weight: bold;">&lt;</span> --我们的vps主机一般默认已经安装了httpd服务，所以我这里先卸载掉httpd
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server
chkconfig <span style="color: #660033;">--level</span> <span style="color: #000000;">235</span> mysqld on
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start
mysqladmin <span style="color: #660033;">-u</span> root password yourrootsqlpassword    <span style="color: #000000; font-weight: bold;">&lt;</span>--修改默认的管理员帐号密码，这里的yourrootsqlpassword 请使用自己想的秘密代替
mysqladmin <span style="color: #660033;">-h</span> server1.example.com <span style="color: #660033;">-u</span> root password yourrootsqlpassword</pre></div></div>

<p>2、安装lighttpd
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> yum-priorities  <span style="color: #000000; font-weight: bold;">&lt;</span> --安装yum库优先包，是系统自带的包优先
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>dag.wieers.com<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>rpmforge-release<span style="color: #000000; font-weight: bold;">/</span>rpmforge-release-0.3.6-1.el5.rf.i386.rpm <span style="color: #000000; font-weight: bold;">&lt;</span>--安装有lighttpd包的库
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> lighttpd
chkconfig <span style="color: #660033;">--level</span> <span style="color: #000000;">235</span> lighttpd on   <span style="color: #000000; font-weight: bold;">&lt;</span>--设置开启启动
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>lighttpd start</pre></div></div>

<p><span id="more-427"></span><br />
3、安装php5(CGI模式）
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>dag.wieers.com<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>rpmforge-release<span style="color: #000000; font-weight: bold;">/</span>rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum  <span style="color: #c20cb9; font-weight: bold;">install</span> lighttpd-fastcgi php-cli php-mysql php-gd php-mbstring php-mcrypt</pre></div></div>

<p>4、修改一下php配置文件/etc/php.ini</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'cgi.fix_pathinfo = 1'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div>

<p>5、编辑vi /etc/lighttpd/lighttpd.conf<br />
在server.modules处注销mod_fastcgi</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">server.modules              = <span style="color: #7a0874; font-weight: bold;">&#40;</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_rewrite&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_redirect&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_alias&quot;,</span>
                                <span style="color: #ff0000;">&quot;mod_access&quot;</span>,
<span style="color: #666666; font-style: italic;">#                               &quot;mod_cml&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_trigger_b4_dl&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_auth&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_status&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_setenv&quot;,</span>
                                <span style="color: #ff0000;">&quot;mod_fastcgi&quot;</span>,    <span style="color: #000000; font-weight: bold;">&lt;</span> --这里注销，使得mod_fastcgi生效
<span style="color: #666666; font-style: italic;">#                               &quot;mod_proxy&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_simple_vhost&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_evhost&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_userdir&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_cgi&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_compress&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_ssi&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_usertrack&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_expire&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_secdownload&quot;,</span>
<span style="color: #666666; font-style: italic;">#                               &quot;mod_rrdtool&quot;,</span>
                                <span style="color: #ff0000;">&quot;mod_accesslog&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>接着把此文件相应的fastcgi.server 注销，使其生效
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#### fastcgi module</span>
<span style="color: #666666; font-style: italic;">## read fastcgi.txt for more info</span>
<span style="color: #666666; font-style: italic;">## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini</span>
fastcgi.server             = <span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">&quot;.php&quot;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span>
                               <span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">&quot;localhost&quot;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span>
                                 <span style="color: #7a0874; font-weight: bold;">&#40;</span>
                                   <span style="color: #ff0000;">&quot;socket&quot;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;/var/run/lighttpd/php-fastcgi.socket&quot;</span>,
                                   <span style="color: #ff0000;">&quot;bin-path&quot;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;/usr/bin/php-cgi&quot;</span>
                                 <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                               <span style="color: #7a0874; font-weight: bold;">&#41;</span>
                            <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>6、新建测试页面</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>lighttpd<span style="color: #000000; font-weight: bold;">/</span>info.php
<span style="color: #000000; font-weight: bold;">&lt;</span> ?php
phpinfo<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>7、重启lighttpd</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>lighttpd restart</pre></div></div>

<p>打开游览器，输入：http://youipaddress/info.php看看是否可以正常访问了：）</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/use-yum-configure-lighttpdphp5mysql-in-vps-hosting-427.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机快速布置nginx+php+mysql环境</title>
		<link>http://vps.15099.net/2008/12/use-yum-rapid-configure-nginx-php-mysql-in-hosting-428.html</link>
		<comments>http://vps.15099.net/2008/12/use-yum-rapid-configure-nginx-php-mysql-in-hosting-428.html#comments</comments>
		<pubDate>Mon, 29 Dec 2008 15:11:01 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS nginx应用]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=428</guid>
		<description><![CDATA[概述：使用vps的朋友可以都知道，nginx是一款高性能的web服务器。本文基于我们的linux vps特惠型 centos5系统上使用yum快速配置nginx+php+mysql环境，同时也使用yum安装eaccelerator加速模块和memcache缓存模块
环境：linux vps特惠型 操作系统：centos5.2
步骤:
1、安装数据库

yum remove httpd  &#60; --我们的vps主机一般默认已经安装了httpd服务，所以我这里先卸载掉httpd
yum -y install mysql-server
chkconfig --level 235 mysqld on
/etc/init.d/mysqld start

2、安装nginx


yum install yum-priorities   &#60; --安装yum库优先包，是系统自带的包优先
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm  &#60;--安装有nginx包的库
yum -y install nginx
chkconfig --level 235 nginx on   &#60; --设置开启启动
/etc/init.d/nginx start


3、安装php包(CGI模式）


rpm -Uvh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum   --disablerepo=epel install lighttpd-fastcgi php-cli php-mysql php-gd php-mbstring php-mcrypt php-eaccelerator php-pecl-memcache

4、修改一下php配置文件/etc/php.ini

echo 'cgi.fix_pathinfo = 1' [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>使用vps的朋友可以都知道，<a href="http://nginx.net/">nginx</a>是一款高性能的web服务器。本文基于我们的<a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">linux vps特惠型</a> <a href="http://wiki.15099.net">centos5</a>系统上使用yum快速配置<a href="http://vps.15099.net/category/vps-application/vps-nginx-application">nginx+php+mysql</a>环境，同时也使用yum安装<a href="http://vps.15099.net/2008/11/install-php-eaccelerator-in-vps-hosting-120.html">eaccelerator</a>加速模块和memcache缓存模块</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">linux vps特惠型</a> 操作系统：<a href="http://wiki.15099.net">centos5.2</a></p>
<p><strong>步骤</strong>:</p>
<p>1、安装数据库</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum remove httpd  <span style="color: #000000; font-weight: bold;">&lt;</span> --我们的vps主机一般默认已经安装了httpd服务，所以我这里先卸载掉httpd
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server
chkconfig <span style="color: #660033;">--level</span> <span style="color: #000000;">235</span> mysqld on
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start</pre></div></div>

<p>2、安装nginx
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> yum-priorities   <span style="color: #000000; font-weight: bold;">&lt;</span> --安装yum库优先包，是系统自带的包优先
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.fedora.redhat.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>epel<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>epel-release-<span style="color: #000000;">5</span>-3.noarch.rpm  <span style="color: #000000; font-weight: bold;">&lt;</span>--安装有nginx包的库
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> nginx
chkconfig <span style="color: #660033;">--level</span> <span style="color: #000000;">235</span> nginx on   <span style="color: #000000; font-weight: bold;">&lt;</span> --设置开启启动
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx start</pre></div></div>

<p><span id="more-428"></span><br />
3、安装php包(CGI模式）
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>dag.wieers.com<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>rpmforge-release<span style="color: #000000; font-weight: bold;">/</span>rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum   <span style="color: #660033;">--disablerepo</span>=epel <span style="color: #c20cb9; font-weight: bold;">install</span> lighttpd-fastcgi php-cli php-mysql php-gd php-mbstring php-mcrypt php-eaccelerator php-pecl-memcache</pre></div></div>

<p>4、修改一下php配置文件/etc/php.ini</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'cgi.fix_pathinfo = 1'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div>

<p>5、设置开机启动fcgi</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 5 -u nginx -g nginx -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local   <span style="color: #000000; font-weight: bold;">&lt;</span> --设置开机启动</pre></div></div>

<p>6、修改/etc/nginx/nginx.conf使得nginx处理php文件的请求
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf
把server区域的 location ~ \.php$ 修改为：
 location ~ \.php$ <span style="color: #7a0874; font-weight: bold;">&#123;</span>
            root           html;
            fastcgi_pass   127.0.0.1:<span style="color: #000000;">9000</span>;  <span style="color: #000000; font-weight: bold;">&lt;</span> --修改使用第<span style="color: #000000;">5</span>步的端口
            <span style="color: #666666; font-style: italic;">#fastcgi_pass   unix:/tmp/php-cgi.sock;</span>
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #007800;">$fastcgi_script_name</span>; <span style="color: #000000; font-weight: bold;">&lt;</span>--记得修改
            include        fastcgi_params;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>7新建测试页面
</pre>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">777</span>  <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>session<span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">&lt;</span> --这个为了使用phpmyadmin，要不phpmyadmin程序不能生成会话
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">&lt;!</span>--pinfo<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>--<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #ff0000;">&quot; &gt; phpinfo.php
reboot</span></pre></div></div>

<p>等电脑重启后，就可以访问http://youipaddress/phpinfo.php<br />
经过上述7个步骤，通过yum命令快速在vps主机上配置nginx+php+mysql环境。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/use-yum-rapid-configure-nginx-php-mysql-in-hosting-428.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机上配置Python支持功能</title>
		<link>http://vps.15099.net/2008/12/configure-python-in-vps-hosting-421.html</link>
		<comments>http://vps.15099.net/2008/12/configure-python-in-vps-hosting-421.html#comments</comments>
		<pubDate>Thu, 25 Dec 2008 13:11:19 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=421</guid>
		<description><![CDATA[概述：在centos5使用yum安装httpd，如果需要添加对python程序的支持，可以安装mod_python支持，本文详细讲解如何配置apache支持python的.py支持。
环境：centos5 特惠vps主机
步骤:
1、使用yum命令安装mod_python模块

yum -y install mod_python

2、让配置让apache配置文件

cp /etc/httpd/conf.d/python.conf /etc/httpd/conf.d/python.conf_orig
cat /dev/null &#62; /etc/httpd/conf.d/python.conf
vi /etc/httpd/conf.d/python.conf


LoadModule python_module modules/mod_python.so
&#160;
&#60;directory /var/www/html/&#62;
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
  AddHandler mod_python .py
  PythonHandler mod_python.publisher
  PythonDebug On

3、重启httpd

/etc/init.d/httpd restart

4、测试python是否启用
vi /var/www/html/test.py

def index&#40;req&#41;:
  return &#34;Test successful&#34;;

保存后使用游览器访问：http://你的vps主机ip地址/test.py  ，如果看到Test successful 就代表配置成功。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>在centos5使用<a href="http://vps.15099.net/2008/11/configure-lamp-in-vps-hosting-128.html">yum安装httpd</a>，如果需要添加对python程序的支持，可以安装mod_python支持，本文详细讲解如何配置apache支持python的.py支持。<br />
<strong>环境：</strong>centos5<a href="http://vps.15099.net/vps-hosting/preference-vps-hosting"> 特惠vps主机</a></p>
<p><strong>步骤:</strong></p>
<p>1、使用yum命令安装mod_python模块</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mod_python</pre></div></div>

<p>2、让配置让apache配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>python.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>python.conf_orig
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>python.conf
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>python.conf</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">LoadModule python_module modules<span style="color: #000000; font-weight: bold;">/</span>mod_python.so
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/&gt;</span>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
  AddHandler mod_python .py
  PythonHandler mod_python.publisher
  PythonDebug On</pre></div></div>

<p>3、重启httpd</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd restart</pre></div></div>

<p>4、测试python是否启用<br />
vi /var/www/html/test.py</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">def index<span style="color: #7a0874; font-weight: bold;">&#40;</span>req<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #ff0000;">&quot;Test successful&quot;</span>;</pre></div></div>

<p>保存后使用游览器访问：http://你的vps主机ip地址/test.py  ，如果看到Test successful 就代表配置成功。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/configure-python-in-vps-hosting-421.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>物理服务器和虚拟服务器的区别</title>
		<link>http://vps.15099.net/2008/12/physical-servers-and-virtual-servers-the-difference-411.html</link>
		<comments>http://vps.15099.net/2008/12/physical-servers-and-virtual-servers-the-difference-411.html#comments</comments>
		<pubDate>Thu, 25 Dec 2008 02:29:28 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[vps服务器]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=411</guid>
		<description><![CDATA[各位vps的朋友们，这篇文章是了解什么是vps的入门篇，可能很多朋友在听朋友或网站介绍，知道现在有一款独立于独立主机和虚拟主机的一种产品，名字叫做虚拟服务器（vps),下面我就简单讲讲他们的区别
物理服务器：也叫独立主机，就是我们机房真实存放的一台电脑，与我们的pc电脑不同的在于它不需要鼠标，键盘，显示器等输入输出设备，它只需要使用网卡接入互联网，提供网络服务。
虚拟服务器：运营商一般简称vps主机（Virtual Private Server）也叫虚拟专用服务器，是在一台独立主机的基础上通过虚拟技术，同时运行多个系统，这些系统彼此独立，在外面看来和独立主机没有什么区别，而现在所使用的虚拟及时有很多，主要有：1、应用于桌面环境的：VMware 和Microsofts Virtual PC ，这两款如果软件可以在主机（宿主）上安装其他操作系统，使用的是完全模拟一台新的硬件环境，就是我们所提及的全虚拟 2、在服务器方面，主要的虚拟技术有：www.parallels.com 的parallels ，www.vmware.com的vmware ESX ， 微软的Virtual server以及www.xen.org的xen,这四种是市面上比较出名的，当然还有一些其他的公司提供虚拟技术，其中Virtuozzo是针对操作系统的虚拟 ，Virtuozzo支持windows和linux，在windows下只能再虚拟windows，linux下只能再虚拟linux，实际上就是我们常说的半虚拟化；vmware ESX则本身就是精简的linux系统，直接在上面即可建立虚拟机，可以在上面建立linux系统和windows系统，实际上是完全虚拟， 微软的Virtual server只是虚拟windows操作系统，而xen更具CPU支持的硬件指令，可以做到半虚拟和全虚拟技术，支持半虚拟需要CPU支持实体位址延伸技术（PAE),一般的CPU都支持，而全虚拟化，此时需要硬体有支援虚拟化技术才行。目前在x86的主机当中， Intel提供VT技术， AMD则提供SVM技术。这两种技术在CPU的旗标分别是： Intel (vmx)与AMD (svm)，以上的PAE 、VMX 、SVM都可以在linux命令使用cat /proc/cpuinfo检测查看是否支持。支持半虚拟的CPU只能安装与宿主操作系统版本一直的系统，而支持全虚拟化的CPU，就可以安装各类linux系统和windows系统。
其实一句话，所谓的半虚拟和全虚拟，是看虚拟的操作系统是否和宿主系统使用同一个内核,使用同一个内核就是半虚拟化，这样的虚拟后的操作系统占用资源少，运行开销也小，而与宿主不是使用同一个内核，完全使用软件模拟出来的主机，就是全虚拟化，这样虚拟出来的主机占用资源多，空间大，运行开销也大。为更多明确比较各类虚拟主机性能，我把在linux 下相关的虚拟技术列表如下：
]]></description>
			<content:encoded><![CDATA[<p>各位vps的朋友们，这篇文章是了解什么是vps的入门篇，可能很多朋友在听朋友或网站介绍，知道现在有一款独立于独立主机和虚拟主机的一种产品，名字叫做虚拟服务器（vps),下面我就简单讲讲他们的区别</p>
<p><strong>物理服务器</strong>：也叫独立主机，就是我们机房真实存放的一台电脑，与我们的pc电脑不同的在于它不需要鼠标，键盘，显示器等输入输出设备，它只需要使用网卡接入互联网，提供网络服务。</p>
<p><strong>虚拟服务器</strong>：运营商一般简称<a href="http://vps.15099.net">vps主机</a>（Virtual Private Server）也叫虚拟专用服务器，是在一台独立主机的基础上通过虚拟技术，同时运行多个系统，这些系统彼此独立，在外面看来和独立主机没有什么区别，而现在所使用的虚拟及时有很多，主要有：1、应用于桌面环境的：VMware 和Microsofts Virtual PC ，这两款如果软件可以在主机（宿主）上安装其他操作系统，使用的是<strong>完全模拟</strong>一台新的硬件环境，就是我们所提及的全虚拟 2、在服务器方面，主要的虚拟技术有：<a href="www.parallels.com">www.parallels.com</a> 的parallels ，<a href="www.vmware.com">www.vmware.com</a>的vmware ESX ， <a href="http://www.microsoft.com/">微软</a>的Virtual server以及<a href="www.xen.or">www.xen.or</a><a href="www.xen.org">g</a>的xen,这四种是市面上比较出名的，当然还有一些其他的公司提供虚拟技术，其中<span id="reply_content_267622955">Virtuozzo是<strong>针对操作系统的虚拟</strong> ，Virtuozzo支持windows和linux，在windows下只能再虚拟windows，linux下只能再虚拟linux，实际上就是我们常说的半虚拟化；</span>vmware ESX<span id="reply_content_267622955">则本身就是精简的linux系统，直接在上面即可建立虚拟机，可以在上面建立linux系统和windows系统，实际上是完全虚拟，</span> <a href="http://www.microsoft.com/">微软</a>的Virtual server只是虚拟windows操作系统，而xen更具CPU支持的硬件指令，可以做到半虚拟和全虚拟技术，支持半虚拟需要CPU支持实体位址延伸技术（PAE),一般的CPU都支持，而全虚拟化，此时需要硬体有支援虚拟化技术才行。目前在x86的主机当中， Intel提供VT技术， AMD则提供SVM技术。这两种技术在CPU的旗标分别是： Intel (vmx)与AMD (svm)，以上的PAE 、VMX 、SVM都可以在linux命令使用cat /proc/cpuinfo检测查看是否支持。支持半虚拟的CPU只能安装与宿主操作系统版本一直的系统，而支持全虚拟化的CPU，就可以安装各类linux系统和windows系统。</p>
<p>其实一句话，所谓的半虚拟和全虚拟，是看虚拟的操作系统是否和宿主系统使用同一个内核,使用同一个内核就是半虚拟化，这样的虚拟后的操作系统占用资源少，运行开销也小，而与宿主不是使用同一个内核，完全使用软件模拟出来的主机，就是全虚拟化，这样虚拟出来的主机占用资源多，空间大，运行开销也大。为更多明确比较各类虚拟主机性能，我把在linux 下相关的虚拟技术列表如下：<span id="more-411"></span></p>
<div id="attachment_413" class="wp-caption alignnone" style="width: 510px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/virtual-private-server.jpg"><img class="size-full wp-image-413" title="virtual-private-server" src="http://vps.15099.net/wp-content/uploads/2008/12/virtual-private-server.jpg" alt="Linux 下虚拟技术对比" width="500" height="480" /></a><p class="wp-caption-text">Linux 下虚拟技术对比</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/physical-servers-and-virtual-servers-the-difference-411.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我们的vps主机提供哪些web服务支持</title>
		<link>http://vps.15099.net/2008/12/support-service-at-web-server-in-vps-hosting-407.html</link>
		<comments>http://vps.15099.net/2008/12/support-service-at-web-server-in-vps-hosting-407.html#comments</comments>
		<pubDate>Tue, 23 Dec 2008 15:11:55 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=407</guid>
		<description><![CDATA[vps主机最大的优势，就是可以通过ssh自行登录vps主机，进行相关服务的配置，由于我们提供的linux系统版本较多，基本覆盖几大流行的linux发行版本，关于在vps主机可安装的系统，请访问此页面：vps支持那些操作系统?,所以我们特选择centos5这款发行版本提供web安装配置服务等相关支持，如果你其他的linux版本操作比较熟悉，请自行根据自己的经验进行配置
如果客户对linux配置不熟悉，需要我们提供web安装配置优化技术支持，我们帮你安装配置web服务器，请选择centos5这个发行版本，
关于web服务器，我们将按centos5默认的软件包提供安装,下面列出当前web环境的版本
假设vps主机ip地址为：xxx.xxx.xxx.xxx
apache: 2.2
php: 5.1
mysql-server: 5.0
gd图形库支持：
phpmyadmin版本：安装目录：/var/www/html/phpmyadmin
网页存放路径：/var/www/html/
数据库存放路径:/var/lib/mysql
当然我们对使用yum安装的web服务器性能和mysql数据库性能做适当的优化，经过我们的设置基本可以满足大部分的网页程序环境，如果有特殊要求，请在配置前告知我们，
最后，我还是建议各位朋友自行安装配置，我们的网站提供很多相关的配置文章，按照网页的指引，完全可以配置好服务器。同时我们的每篇文章后面就可以留言，您在配置中有任何问题可以及时反馈给我们。
]]></description>
			<content:encoded><![CDATA[<p>vps主机最大的优势，就是可以通过<a href="http://vps.15099.net/2008/11/how-to-use-putty-remote-login-vps-hosting-109.html">ssh自行登录vps主机</a>，进行相关服务的配置，由于我们提供的linux系统版本较多，基本覆盖几大流行的linux发行版本，关于在vps主机可安装的系统，请访问此页面：<a href="http://vps.15099.net/2008/11/vps-support-those-os-13.html">vps支持那些操作系统?</a>,所以我们特选择<a href="http://wiki.15099.net">centos5</a>这款发行版本提供<a href="http://vps.15099.net/category/vps-application/vps-other-application">web安装配置服务</a>等相关支持，如果你其他的linux版本操作比较熟悉，请自行根据自己的经验进行配置</p>
<p>如果客户对linux配置不熟悉，需要我们提供web安装配置优化技术支持，我们帮你安装配置web服务器，请选择centos5这个发行版本，</p>
<p>关于web服务器，我们将按centos5默认的软件包提供安装,下面列出当前web环境的版本<span id="more-407"></span></p>
<p>假设vps主机ip地址为：xxx.xxx.xxx.xxx</p>
<p>apache: 2.2</p>
<p>php: 5.1</p>
<p>mysql-server: 5.0</p>
<p>gd图形库支持：</p>
<p>phpmyadmin版本：安装目录：/var/www/html/phpmyadmin</p>
<p>网页存放路径：/var/www/html/</p>
<p>数据库存放路径:/var/lib/mysql</p>
<p>当然我们对使用yum安装的web服务器性能和mysql数据库性能做适当的优化，经过我们的设置基本可以满足大部分的网页程序环境，如果有特殊要求，请在配置前告知我们，</p>
<p><strong>最后，我还是建议各位朋友自行安装配置，我们的网站提供很多相关的配置文章，按照网页的指引，完全可以配置好服务器。同时我们的每篇文章后面就可以留言，您在配置中有任何问题可以及时反馈给我们。</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/support-service-at-web-server-in-vps-hosting-407.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用科来软件pingVPS主机对比网络延迟</title>
		<link>http://vps.15099.net/2008/12/kelai-ping-vps-399.html</link>
		<comments>http://vps.15099.net/2008/12/kelai-ping-vps-399.html#comments</comments>
		<pubDate>Mon, 22 Dec 2008 02:14:00 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[网速]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=399</guid>
		<description><![CDATA[我们的vps主机使用的是美国的机房，下午对现在vps主机所在的的机房网络性能使用科来ping命令同时进行测试，发个截图如下:
ping性能比较 网络是通过广州ADSL测试，同时ping www.yahoo.com;www.youtube.com;www.15099.net三台主机，其中www.15099.net为vps主机，性能比yahoo主机还稳定！
]]></description>
			<content:encoded><![CDATA[<p>我们的vps主机使用的是美国的机房，下午对现在vps主机所在的的机房网络性能使用科来ping命令同时进行测试，发个截图如下:<span id="more-399"></span></p>
<div id="attachment_400" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/kelai-ping.jpg"><img class="size-medium wp-image-400" title="kelai-ping" src="http://vps.15099.net/wp-content/uploads/2008/12/kelai-ping-600x333.jpg" alt="使用科来ping测试vps主机网络延迟" width="600" height="333" /></a><p class="wp-caption-text">使用科来ping测试vps主机网络延迟</p></div>
<p>ping性能比较 网络是通过广州ADSL测试，同时ping www.yahoo.com;www.youtube.com;www.15099.net三台主机，其中www.15099.net为vps主机，性能比yahoo主机还稳定！</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/kelai-ping-vps-399.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>测试VPS网络稳定性几种方法</title>
		<link>http://vps.15099.net/2008/12/test-vps-network-method-952-394.html</link>
		<comments>http://vps.15099.net/2008/12/test-vps-network-method-952-394.html#comments</comments>
		<pubDate>Mon, 22 Dec 2008 02:05:36 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售前问题]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[网速]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=394</guid>
		<description><![CDATA[概述：购买我们的vps主机，比较关心的可能还是网络问题，下列我列出几种测试vps主机网络稳定的方法，这样你用的舒心，我买的放心！
环境：客户端：广州电信ADSL 512Kb/s 服务器端：美国vps主机
第一种ping：
C:\Documents and Settings\lihaixin&#62;ping 67.159.48.137

Pinging 67.159.48.137 with 32 bytes of data:

Reply from 67.159.48.137: bytes=32 time=297ms TTL=47
Reply from 67.159.48.137: bytes=32 time=300ms TTL=47
Reply from 67.159.48.137: bytes=32 time=302ms TTL=47
Reply from 67.159.48.137: bytes=32 time=299ms TTL=47

Ping statistics for 67.159.48.137:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>购买我们的vps主机，比较关心的可能还是网络问题，下列我列出几种测试vps主机网络稳定的方法，这样你用的舒心，我买的放心！</p>
<p><strong>环境：</strong>客户端：广州电信ADSL 512Kb/s 服务器端：美国vps主机</p>
<p><strong>第一种ping：</strong></p>
<pre>C:\Documents and Settings\lihaixin&gt;ping 67.159.48.137

Pinging 67.159.48.137 with 32 bytes of data:

Reply from 67.159.48.137: bytes=32 time=297ms TTL=47
Reply from 67.159.48.137: bytes=32 time=300ms TTL=47
Reply from 67.159.48.137: bytes=32 time=302ms TTL=47
Reply from 67.159.48.137: bytes=32 time=299ms TTL=47

Ping statistics for 67.159.48.137:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 297ms, Maximum = 302ms, Average = 299ms

C:\Documents and Settings\lihaixin&gt;</pre>
<p><strong>第二种tracert：</strong></p>
<pre>C:\Documents and Settings\lihaixin&gt;tracert 67.159.48.137

Tracing route to inet101network.info [67.159.48.137]
over a maximum of 30 hops:

  1    10 ms     9 ms    10 ms  121.32.162.1
  2     9 ms     9 ms    10 ms  121.32.162.1
  3    10 ms     9 ms     9 ms  61.140.98.133
  4     9 ms    10 ms    10 ms  61.144.0.189
  5     9 ms     9 ms     9 ms  61.144.3.26
  6     9 ms     9 ms    10 ms  202.97.26.53
  7    75 ms    75 ms    75 ms  202.97.40.137
  8    93 ms    92 ms    93 ms  202.97.34.17
  9   258 ms   257 ms   255 ms  202.97.51.86
 10   240 ms   241 ms   237 ms  ge-4-13-pr01.onewilshire.ca.ibone.comcast.net [68.86.89.29]
 11   287 ms   287 ms   288 ms  pos-0-13-0-0-cr01.dallas.tx.ibone.comcast.net [68.86.85.146]
 12   288 ms   289 ms   289 ms  pos-0-9-0-0-cr01.atlanta.ga.ibone.comcast.net [68.86.85.154]
 13   310 ms   308 ms   307 ms  pos-0-4-0-0-cr01.chicago.il.ibone.comcast.net [68.86.85.165]
 14   299 ms   305 ms   302 ms  66.90.127.205 [66.90.127.205]
 15   291 ms   292 ms   290 ms  atlas.echoservers.com [67.159.44.199]
 16   303 ms   300 ms   304 ms  inet101network.info [67.159.48.137]

Trace complete.

C:\Documents and Settings\lihaixin&gt;</pre>
<p><strong>第三种：在另外一台linux服务器下载vps软件，使用wget命令<span id="more-394"></span></strong></p>
<pre>[lihaixin@hugo lihaixin.com]$ time wget http://67.159.48.137/Dreamweaver8_onegreen.zip
--23:23:47--  http://67.159.48.137/Dreamweaver8_onegreen.zip
           =&gt; `Dreamweaver8_onegreen.zip'
Connecting to 67.159.48.137:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 69,920,971 (67M) [application/zip]

100%[=================================================================================================================&gt;] 69,920,971     2.05M/s    ETA 00:00

23:24:22 (1.92 MB/s) - `Dreamweaver8_onegreen.zip' saved [69920971/69920971]

real    0m34.810s
user    0m0.095s
sys     0m4.302s
[lihaixin@hugo lihaixin.com]$</pre>
<p><strong>第四种：在vps主机下载另外一个机房服务器的软件</strong></p>
<pre>[root@ihaixin html]# time wget http://www.lihaixin.com/Dreamweaver8_onegreen.zip
--05:29:20--  http://www.lihaixin.com/Dreamweaver8_onegreen.zip
Resolving www.lihaixin.com... 67.18.26.179
Connecting to www.lihaixin.com|67.18.26.179|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 69920971 (67M) [application/zip]
Saving to: `Dreamweaver8_onegreen.zip'

100%[====================================================================================================================&gt;] 69,920,971  2.78M/s   in 24s

05:29:52 (2.73 MB/s) - `Dreamweaver8_onegreen.zip' saved [69920971/69920971]

real    0m32.156s
user    0m0.111s
sys     0m1.136s
[root@ihaixin html]#</pre>
<p><strong>第五种：使用just-ping检查全球各地到主机的ping反映速度<br />
</strong>我这台vps测试图如下：</p>
<div id="attachment_395" class="wp-caption alignnone" style="width: 747px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/just-ping-com.jpg"><img class="size-full wp-image-395" title="just-ping-com" src="http://vps.15099.net/wp-content/uploads/2008/12/just-ping-com.jpg" alt="全球ping反映速度图" width="737" height="876" /></a><p class="wp-caption-text">全球ping反映速度图</p></div>
<p><strong>第六种：使用主机跟踪网站测试网页在全球网页访问速度如下图所示：</strong></p>
<div class="mceTemp">
<dl id="attachment_396" class="wp-caption alignnone" style="width: 357px;">
<dt class="wp-caption-dt"><a href="http://vps.15099.net/wp-content/uploads/2008/12/host-tracker-com.jpg"><img class="size-medium wp-image-396" title="host-tracker-com" src="http://vps.15099.net/wp-content/uploads/2008/12/host-tracker-com-347x600.jpg" alt="全球网页速度图" width="347" height="600" /></a></dt>
<dd class="wp-caption-dd">全球网页速度图</dd>
</dl>
<p>经过上述6步，应该可以对vps主机的网络稳定性有了比较多的了解吧，如有疑问可以给我留言！</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/test-vps-network-method-952-394.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vps主机是否需要布置杀毒软件</title>
		<link>http://vps.15099.net/2008/12/vps-hosting-arrangement-of-the-need-for-antivirus-software-385.html</link>
		<comments>http://vps.15099.net/2008/12/vps-hosting-arrangement-of-the-need-for-antivirus-software-385.html#comments</comments>
		<pubDate>Sun, 21 Dec 2008 02:51:38 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[防火墙]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=385</guid>
		<description><![CDATA[经常有朋友在qq上问我，贵司的vps主机要不要安装配置杀毒软件，在这里统一回答，完全没有必要安装杀毒软件，vps主机的资源本来就有限，为充分发挥vps主机的性能，经过我们实际测试，在物理节点上，已经部署杀毒软件，安装在物理节点上，这样VPS内就不用在单独加装别的杀毒软件了，通过物理节点的杀毒软件，即可对所有VPS进行保护
那么是否要安装ARP防火墙呢，我觉得也没有必要，我们的节点已经布置了arp防御软件，那么要安全配置vps主机，简单的方法，例如centos系统可以使用setup命令关闭不必要的服务，部署好iptables防火墙就可以了。
另外：国内的机房里arp病毒横行，如果是windows  VPS主机可以考虑360的ARP防火墙,linux vps，主机环境下，arp的的欺骗一般对linux是没有效果的，如果遇到的量是很大，就需要手动的建立一个mac的绑定关系的清单
]]></description>
			<content:encoded><![CDATA[<p>经常有朋友在qq上问我，贵司的<a href="http://vps.15099.net">vps主机</a>要不要安装配置杀毒软件，在这里统一回答，完全没有必要安装杀毒软件，vps主机的资源本来就有限，为充分发挥<a href="http://vps.15099.net">vps主机</a>的性能，经过我们实际测试，在物理节点上，已经部署杀毒软件，安装在物理节点上，这样VPS内就不用在单独加装别的杀毒软件了，通过物理节点的杀毒软件，即可对所有<a href="http://vps.15099.net">VPS</a>进行保护</p>
<p>那么是否要安装ARP防火墙呢，我觉得也没有必要，我们的节点已经布置了<a href="http://vps.15099.net/vps-hosting">arp防御软件</a>，那么要安全配置vps主机，简单的方法，例如centos系统可以使用setup命令关闭不必要的服务，部署好iptables防火墙就可以了。</p>
<p>另外：国内的机房里arp病毒横行，如果是windows  VPS主机可以考虑360的ARP防火墙,<a href="http://vps.15099.net">linux vps，</a>主机环境下，arp的的欺骗一般对linux是没有效果的，如果遇到的量是很大，就需要手动的建立一个mac的绑定关系的清单</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/vps-hosting-arrangement-of-the-need-for-antivirus-software-385.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPS主机下nginx环境安装wordpress重写（rewrite)</title>
		<link>http://vps.15099.net/2008/12/nginx-wordpess-rewrite-iin-vps-hosting-339.html</link>
		<comments>http://vps.15099.net/2008/12/nginx-wordpess-rewrite-iin-vps-hosting-339.html#comments</comments>
		<pubDate>Sat, 20 Dec 2008 08:13:51 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS nginx应用]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[重写]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=339</guid>
		<description><![CDATA[概述：wordpress可以很方便的重写(Rewrite)，但是在nginx需要在nginx站点配置文件里，下面是我针对wordpress写的配置文件

server
&#123;
  listen       80;
  server_name  vps.15099.net;
  index index.html index.htm index.php;
  root  /data0/htdocs/vps;
&#160;
  #limit_conn   crawler  20;
&#160;
 # 重写代码开始
  location / &#123;
        index index.html index.php;
        if &#40;-f [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>wordpress可以很方便的重写(Rewrite)，但是在nginx需要在nginx站点配置文件里，下面是我针对wordpress写的配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">server
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
  listen       <span style="color: #000000;">80</span>;
  server_name  vps.15099.net;
  index index.html index.htm index.php;
  root  <span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>vps;
&nbsp;
  <span style="color: #666666; font-style: italic;">#limit_conn   crawler  20;</span>
&nbsp;
 <span style="color: #666666; font-style: italic;"># 重写代码开始</span>
  location <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        index index.html index.php;
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>-f <span style="color: #007800;">$request_filename</span><span style="color: #000000; font-weight: bold;">/</span>index.html<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>
            rewrite <span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> $<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>index.html <span style="color: #7a0874; font-weight: bold;">break</span>;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>-f <span style="color: #007800;">$request_filename</span><span style="color: #000000; font-weight: bold;">/</span>index.php<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>
            rewrite <span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> $<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>index.php;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span>-f <span style="color: #007800;">$request_filename</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>
            rewrite <span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">/</span>index.php;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
    <span style="color: #7a0874; font-weight: bold;">&#125;</span>
  <span style="color: #666666; font-style: italic;">#重写代码结束</span>
&nbsp;
  location ~ .<span style="color: #000000; font-weight: bold;">*</span>\.<span style="color: #7a0874; font-weight: bold;">&#40;</span>php<span style="color: #000000; font-weight: bold;">|</span>php5<span style="color: #7a0874; font-weight: bold;">&#41;</span>?$
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    fastcgi_pass  unix:<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>php-cgi.sock;
    <span style="color: #666666; font-style: italic;">#fastcgi_pass  127.0.0.1:9000;</span>
    fastcgi_index index.php;
    include fcgi.conf;
  <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># Blog more pictures, less change, they will be in the local browser cache 15 days, you can improve the next time I open the blog page loading speed</span>
  location ~ .<span style="color: #000000; font-weight: bold;">*</span>\.<span style="color: #7a0874; font-weight: bold;">&#40;</span>gif<span style="color: #000000; font-weight: bold;">|</span>jpg<span style="color: #000000; font-weight: bold;">|</span>jpeg<span style="color: #000000; font-weight: bold;">|</span>png<span style="color: #000000; font-weight: bold;">|</span>bmp<span style="color: #000000; font-weight: bold;">|</span>swf<span style="color: #7a0874; font-weight: bold;">&#41;</span>$
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    expires      15d;
  <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">#Blog will be a lot of load javascript, CSS, they will be in the local browser cache 1 day, to improve the speed of page display</span>
  location ~ .<span style="color: #000000; font-weight: bold;">*</span>\.<span style="color: #7a0874; font-weight: bold;">&#40;</span>js<span style="color: #000000; font-weight: bold;">|</span>css<span style="color: #7a0874; font-weight: bold;">&#41;</span>?$
  <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    expires      1d;
  <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
 <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/nginx-wordpess-rewrite-iin-vps-hosting-339.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机配置nginx+php(fastcgi)+mysql环境</title>
		<link>http://vps.15099.net/2008/12/configure-nginx-php-fastcgi-myslq-in-vps-hosting-319.html</link>
		<comments>http://vps.15099.net/2008/12/configure-nginx-php-fastcgi-myslq-in-vps-hosting-319.html#comments</comments>
		<pubDate>Fri, 19 Dec 2008 13:28:44 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS nginx应用]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=319</guid>
		<description><![CDATA[概述：一般的vps主机配置都不是很好，如何使用linux+apache+mysql+php这种LAMP组合，一般同时在线人数不能太多，要不负载会比较高，特别apache使用prefork模式，（yum方式安装的apache就是使用此模式）每个连接都需要开一个apache进程,这样同时在线人数多的时候，需要开的进程也多，很耗内存，如果你的网站流量大的，可以考虑nginx这款软件搭建web服务器环境
具体环境：vps主机实用型 centos 系统 我司的特惠型也可以搭建，不过由于使用mysql源码安装，编译等操作占用的空间比较大，你可以使用yum安装mysql，这样也可以。
步骤：
关键搭建的详细步骤请访问：centos中文维客 此篇文章：http://wiki.15099.net/index.php/Nginx
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>一般的vps主机配置都不是很好，如何使用linux+apache+mysql+php这种LAMP组合，一般同时在线人数不能太多，要不负载会比较高，特别apache使用prefork模式，（yum方式安装的apache就是使用此模式）每个连接都需要开一个apache进程,这样同时在线人数多的时候，需要开的进程也多，很耗内存，如果你的网站流量大的，可以考虑nginx这款软件搭建web服务器环境</p>
<p><strong>具体环境</strong>：<a href="http://vps.15099.net/vps-hosting/utility-type-vps-hosting">vps主机实用型</a> <a href="http://wiki.15099.net">centos 系统</a> 我司的特惠型也可以搭建，不过由于使用mysql源码安装，编译等操作占用的空间比较大，你可以使用yum安装mysql，这样也可以。<span id="more-319"></span></p>
<p><strong>步骤：</strong></p>
<p>关键搭建的详细步骤请访问：centos中文维客 此篇文章：<a href="http://wiki.15099.net/index.php/Nginx">http://wiki.15099.net/index.php/Nginx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/configure-nginx-php-fastcgi-myslq-in-vps-hosting-319.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机下nginx防盗链配置</title>
		<link>http://vps.15099.net/2008/12/nginx-referer-configure-in-vps-hosting-346.html</link>
		<comments>http://vps.15099.net/2008/12/nginx-referer-configure-in-vps-hosting-346.html#comments</comments>
		<pubDate>Fri, 19 Dec 2008 13:10:10 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS nginx应用]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[防盗链]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=346</guid>
		<description><![CDATA[概述：可能我们的网站可以有提供一些图片，flash ,软件等文件在外面的网站，特别是一些图片，稍大一点的软件压缩文件，当这些文件，被别的系统引用后，很多人下载，有可能浪费我们的网络资源，加重我们系统负载，那有什么办法限制别的网站引用呢，下面这篇文章详细讲解在nginx环境下防盗链配置
目的：让我们的网站提供的文件不能在别的网站引用
环境：centos vps主机特惠型 nginx搭建的web服务器
方法一：使用NginxHttpRefererModule防止盗链
在nginx.conf站点server下添加如下信息

location ~* \.&#40;gif&#124;jpg&#124;png&#124;swf&#124;flv&#41;$ &#123;
valid_referers none blocked vps.15099.net *.15099.net;
if &#40;$invalid_referer&#41; &#123;
rewrite ^/ http://vps.15099.net/403.html;
#return 404;
&#125;
&#125;

第一行：gif&#124;jpg&#124;png&#124;swf&#124;flv表示对gif、jpg、png、swf、flv后缀的文件实行防盗链
第二行：vps.15099.net *.15099.net表示对vps.15099.net *.15099.net这2个来路进行判断,none 代表没有参考头，例如在ssh下使用wget就属于此类，blocked是代表可能有些企业上网使用内部上网，参考头被网关的防火墙masked了。
第三行：if{}里面内容的意思是，如果来路不是指定来路就跳转到错误页面，当然直接返回404也是可以的。
方法二：使用NginxHttpAccessKeyModule模块防盗链
NginxHttpAccessKeyModule实现防盗链
如果不怕麻烦，有条件实现的话，推荐使用NginxHttpAccessKeyModule这个东西。
他的运行方式是：如我的download 目录下有一个 file.zip 的文件。对应的URI 是http://vps.15099.net/download/file.zip使用ngx_http_accesskey_module 模块后http://vps.15099.net/download/file.zip?key=09093abeac094. 只有给定的key值正确了，才能够下载download目录下的file.zip。而且 key 值是根据用户的IP有关的，这样就可以避免被盗链了。据说NginxHttpAccessKeyModule现在连迅雷都可以防了，可以尝试一下。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>可能我们的网站可以有提供一些图片，flash ,软件等文件在外面的网站，特别是一些图片，稍大一点的软件压缩文件，当这些文件，被别的系统引用后，很多人下载，有可能浪费我们的网络资源，加重我们系统负载，那有什么办法限制别的网站引用呢，下面这篇文章详细讲解在nginx环境下防盗链配置<br />
<strong>目的：</strong>让我们的网站提供的文件不能在别的网站引用<br />
<strong>环境：</strong><a href="http://wiki.15099.net">centos</a> <a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">vps主机特惠型</a> <a href="http://vps.15099.net/2008/12/configure-nginx-php-fastcgi-myslq-in-vps-hosting-319.html">nginx搭建的web服务器</a></p>
<p><strong>方法一</strong>：使用<a href="http://wiki.codemongers.com/NginxHttpRefererModule">NginxHttpRefererModule</a>防止盗链</p>
<p>在nginx.conf站点server下添加如下信息</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">location ~<span style="color: #000000; font-weight: bold;">*</span> \.<span style="color: #7a0874; font-weight: bold;">&#40;</span>gif<span style="color: #000000; font-weight: bold;">|</span>jpg<span style="color: #000000; font-weight: bold;">|</span>png<span style="color: #000000; font-weight: bold;">|</span>swf<span style="color: #000000; font-weight: bold;">|</span>flv<span style="color: #7a0874; font-weight: bold;">&#41;</span>$ <span style="color: #7a0874; font-weight: bold;">&#123;</span>
valid_referers none blocked vps.15099.net <span style="color: #000000; font-weight: bold;">*</span>.15099.net;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$invalid_referer</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
rewrite ^<span style="color: #000000; font-weight: bold;">/</span> http:<span style="color: #000000; font-weight: bold;">//</span>vps.15099.net<span style="color: #000000; font-weight: bold;">/</span>403.html;
<span style="color: #666666; font-style: italic;">#return 404;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>第一行：gif|jpg|png|swf|flv表示对gif、jpg、png、swf、flv后缀的文件实行防盗链<br />
第二行：vps.15099.net *.15099.net表示对vps.15099.net *.15099.net这2个来路进行判断,none 代表没有参考头，例如在ssh下使用wget就属于此类，blocked是代表可能有些企业上网使用内部上网，参考头被网关的防火墙masked了。<br />
第三行：if{}里面内容的意思是，如果来路不是指定来路就跳转到错误页面，当然直接返回404也是可以的。</p>
<p><strong>方法二：</strong>使用<a href="http://wiki.codemongers.com/NginxHttpAccessKeyModule">NginxHttpAccessKeyModule</a>模块防盗链<span id="more-346"></span></p>
<p><strong>NginxHttpAccessKeyModule实现防盗链</strong><br />
如果不怕麻烦，有条件实现的话，推荐使用<a href="http://wiki.codemongers.com/NginxHttpAccessKeyModule">NginxHttpAccessKeyModule</a>这个东西。</p>
<p>他的运行方式是：如我的download 目录下有一个 file.zip 的文件。对应的URI 是http://vps.15099.net/download/file.zip使用ngx_http_accesskey_module 模块后http://vps.15099.net/download/file.zip?key=09093abeac094. 只有给定的key值正确了，才能够下载download目录下的file.zip。而且 key 值是根据用户的IP有关的，这样就可以避免被盗链了。据说NginxHttpAccessKeyModule现在连迅雷都可以防了，可以尝试一下。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/nginx-referer-configure-in-vps-hosting-346.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>我们的vps有何优势</title>
		<link>http://vps.15099.net/2008/12/what-are-the-advantages-of-our-vps-357.html</link>
		<comments>http://vps.15099.net/2008/12/what-are-the-advantages-of-our-vps-357.html#comments</comments>
		<pubDate>Fri, 19 Dec 2008 06:45:00 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售前问题]]></category>
		<category><![CDATA[linux VPS]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[windows VPS]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=357</guid>
		<description><![CDATA[欢迎光临我们的经济、实用VPS主机租用家园，我们为你提供三款实用的linux VPS主机和三款性价比高的windows VPS主机，具体配置可查看：VPS主机产品列表，我们的特惠型VPS价格低到每月60元，如何一次性年付，每月只要48元（且带独立IP地址，独立ip有何优势），这在国内VPS市场想都不敢想，可能有些朋友会说，这么会这么便宜呢，质量如何：下面我一一为大家解答：

网速如何？
我们使用的是美国主机，众所周知，美国的带宽是非常宽的，在国内1M独享可能需要1000元一个月，而我们可以保证每个VPS主机独享6～10Mb/s,那国内的访问速度如何呢？据我们所知，现在上海到美国有扩宽海底光缆，现在ping美国主机基本在250ms之内，速度还是比较快，大家可以使用ping 我们的vps主机试试,更多的测试网速方法，可查看此篇文章：测试VPS网络稳定性几种方法。
稳定性如何？
稳定性包括主机的稳定和网络的稳定性，我们的主机母系统是使用企业级的linux系统centos5架构，稳定可想而知，网络稳定可以使用连续ping命令，看是否返回时间有波动判断（当然要排除自身接入的不稳定性），网络稳定性测试可以使用科来同时ping几个网站，详细可查阅：使用科来软件pingVPS主机对比网络延迟
VPS系统：
系统在vps主机开通后，大家可以灵活重建，只需要几秒钟，就可以重建不同的linux系统，重建系统的类型可查看vps支持那些操作系统?，这样可以选择自己熟悉的linux环境。
硬件如何：
CPU我们使用的是Intel酷睿2四核Q6600，可以通过ssh登录查看,内存也可以使用free -m查看，
那么在硬件配置和网络环境了解后，我使用vps可以做那方面的应用呢
1、架构LAMP环境，放个人网站和企业网站，数量不限制，特别适合做外销的贸易网站（国外访问非常快）
2、利用ssh翻墙，自由访问互联网，具体可查看此文章：利用vps主机ssh帐号代理访问网络
3、学习linux，linux这两年的市场占有率步步高升，了解linux提高职场竞争力
最后我们的网站提供很多在vps主机的配置技术文章，可以满足购买vps主机后，提供足够的技术支持保障。大家有任何疑问，请直接在文章后面留言，谢谢大家！
]]></description>
			<content:encoded><![CDATA[<p>欢迎光临我们的经济、实用<a href="http://vps.15099.net">VPS主机</a>租用家园，我们为你提供三款实用的linux VPS主机和三款性价比高的windows VPS主机，具体配置可查看：<a href="http://vps.15099.net/vps-hosting">VPS主机产品列表</a>，<strong>我们的特惠型VPS价格低到每月60元，如何一次性年付，每月只要48元</strong>（且带独立IP地址，<a title="独立ip有何优势的永久链接" rel="bookmark" href="http://vps.15099.net/2008/12/dedicated-ip-advantage-293.html">独立ip有何优势</a>），这在国内VPS市场想都不敢想，可能有些朋友会说，这么会这么便宜呢，质量如何：下面我一一为大家解答：</p>
<p><span id="more-357"></span></p>
<p><strong>网速如何？</strong></p>
<p><strong></strong>我们使用的是美国主机，众所周知，美国的带宽是非常宽的，在国内1M独享可能需要1000元一个月，而我们可以保证每个VPS主机独享6～10Mb/s,那国内的访问速度如何呢？据我们所知，现在上海到美国有扩宽海底光缆，现在ping美国主机基本在250ms之内，速度还是比较快，大家可以使用ping 我们的vps主机试试,更多的测试网速方法，可查看此篇文章：<a title="测试VPS网络稳定性几种方法的永久链接" rel="bookmark" href="http://vps.15099.net/2008/12/test-vps-network-method-952-394.html">测试VPS网络稳定性几种方法</a>。</p>
<p><strong>稳定性如何？</strong></p>
<p>稳定性包括主机的稳定和网络的稳定性，我们的主机母系统是使用企业级的linux系统centos5架构，稳定可想而知，网络稳定可以使用连续ping命令，看是否返回时间有波动判断（当然要排除自身接入的不稳定性），网络稳定性测试可以使用科来同时ping几个网站，详细可查阅：<a title="使用科来软件pingVPS主机对比网络延迟的永久链接" rel="bookmark" href="http://vps.15099.net/2008/12/kelai-ping-vps-399.html">使用科来软件pingVPS主机对比网络延迟</a></p>
<p><strong>VPS系统：</strong></p>
<p>系统在vps主机开通后，大家可以灵活重建，只需要几秒钟，就可以重建不同的linux系统，重建系统的类型可查看<a title="vps支持那些操作系统?的永久链接" rel="bookmark" href="http://vps.15099.net/2008/11/vps-support-those-os-13.html">vps支持那些操作系统?</a>，这样可以选择自己熟悉的linux环境。</p>
<p><strong>硬件如何：</strong><br />
CPU我们使用的是<a href="http://vps.15099.net/2008/11/how-to-examine-vps-cpu-model-38.html" target="_blank"><span style="color: #0066cc;">Intel酷睿2四核Q6600</span></a>，可以通过ssh登录查看,内存也可以使用free -m查看，</p>
<p>那么在硬件配置和网络环境了解后，我使用vps可以做那方面的应用呢</p>
<p>1、架构LAMP环境，放个人网站和企业网站，数量不限制，特别适合做外销的贸易网站（国外访问非常快）</p>
<p>2、利用ssh翻墙，自由访问互联网，具体可查看此文章：<a title="利用vps主机ssh帐号代理访问网络的永久链接" rel="bookmark" href="http://vps.15099.net/2008/11/use-vps-hosting-ssh-account-proxy-visit-network-75.html">利用vps主机ssh帐号代理访问网络</a></p>
<p>3、学习linux，linux这两年的市场占有率步步高升，了解linux提高职场竞争力</p>
<p>最后我们的网站提供很多在vps主机的配置技术文章，可以满足购买vps主机后，提供足够的技术支持保障。大家有任何疑问，请直接在文章后面留言，谢谢大家！</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/what-are-the-advantages-of-our-vps-357.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>什么是VPS</title>
		<link>http://vps.15099.net/2008/12/what-is-vps-355.html</link>
		<comments>http://vps.15099.net/2008/12/what-is-vps-355.html#comments</comments>
		<pubDate>Fri, 19 Dec 2008 05:57:50 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[vps服务器]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=355</guid>
		<description><![CDATA[VPS(Virtual Private Server)是在一台物理服务器上创建多个相互隔离的虚拟专用服务器，也叫虚拟服务器。这些虚拟服务器以最大化的效率共享硬件、软件许可证以及管理资源。对其用户和应用程序来讲，每一个VPS平台的运行和管理都与一台独立主机完全相 同，因为每一个VPS均可独立进行重启并拥有自己的root访问权限、用户、IP地址、内存、过程、文件、应用程序、系统函数库以及配置文件。
关于vps和独立主机、虚拟主机的区别请查看VPS主机与独立主机和虚拟主机的区别。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://vps.15099.net">VPS</a>(Virtual Private Server)是在一台物理服务器上创建多个相互隔离的虚拟专用服务器，也叫虚拟服务器。这些虚拟服务器以最大化的效率共享硬件、软件许可证以及管理资源。对其用户和应用程序来讲，每一个VPS平台的运行和管理都与一台独立主机完全相 同，因为每一个VPS均可独立进行重启并拥有自己的root访问权限、用户、IP地址、内存、过程、文件、应用程序、系统函数库以及配置文件。</p>
<p>关于vps和独立主机、虚拟主机的区别请查看<a title="VPS主机与独立主机和虚拟主机的区别的永久链接" rel="bookmark" href="http://vps.15099.net/2008/12/difference-of-vps-hosting-dedicated-server-virtual-hosting-218.html">VPS主机与独立主机和虚拟主机的区别</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/what-is-vps-355.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机备份整个网站</title>
		<link>http://vps.15099.net/2008/12/backup-all-website-in-vps-hosting-348.html</link>
		<comments>http://vps.15099.net/2008/12/backup-all-website-in-vps-hosting-348.html#comments</comments>
		<pubDate>Fri, 19 Dec 2008 02:29:49 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=348</guid>
		<description><![CDATA[概述：成功在vps主机上配置好web环境，相关网站程序也配置好了，那么要想稳定地运行网站，整站备份这个环节是少不了的，那么如何才能备份呢，肯定很多朋友会说，直接用ftp登录主机把数据下载本机就可以了，众所周知，使用ftp下载是一个一个很小的文件，很耗传输时间的，那么有没有办法在vps主机那端就把数据压缩好，然后再用ftp下载下来呢，这篇文件就以一个网站为例讲述如何备份整个网站数据
目的：压缩整个网站，通过ftp下载压缩好的备份
环境：centos vps特惠型   备份网站域名：http://ecshop.15099.net    网站存放路径：/var/www/html/ecshop
步骤：
1、使用ssh登录软件登录linux vps主机，不知道如何登录请查看此篇文章：如何使用putty远程登录vps主机
2、进入相应的目录压缩备份文件，现在一般的网站程序使用数据库，记得在备份网站文件时，记得同时备份数据库，关于数据库备份请查看：如何备份vps主机上的mysql数据库

&#91;root@www ~&#93;# cd /var/www/html      &#60; --进入相应的目录
&#91;root@www html&#93;# tar zcvf ecshop.tar.gz ecshop   &#60;--使用tar打包且压缩ecshop文件夹，压缩后的文件名为：ecshop.tar.gz
&#91;root@www html&#93;# ll ecshop.tar.gz   &#60;--列出是否已经压缩（可省略这个步骤）
-rw-r--r-- 1 root root 16632203 Dec 19 10:17 ecshop.tar.gz
&#91;root@www html&#93;#

3、使用下载工具下载，如ftp客户端，关于在vps服务器构建ftp服务器可以查看：在vps主机安装vsFTPd文件服务器
经过上述步骤后，一个完整的网站就备份完毕了，养成备份的习惯是成功运行网站的关键步骤，建议客户在修改数据后及时备份。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>成功在vps主机上配置好web环境，相关<a href="http://vps.15099.net/category/vps-application/vps-web-application">网站程序</a>也配置好了，那么要想稳定地运行网站，整站备份这个环节是少不了的，那么如何才能备份呢，肯定很多朋友会说，直接用ftp登录主机把数据下载本机就可以了，众所周知，使用ftp下载是一个一个很小的文件，很耗传输时间的，那么有没有办法在vps主机那端就把数据压缩好，然后再用ftp下载下来呢，这篇文件就以一个网站为例讲述如何备份整个网站数据</p>
<p><strong>目的：</strong>压缩整个网站，通过ftp下载压缩好的备份</p>
<p><strong>环境：</strong><a href="http://wiki.15099.net">centos vps特惠型</a>   备份网站域名：<a href="http://ecshop.15099.net">http://ecshop.15099.net</a>    网站存放路径：/var/www/html/ecshop</p>
<p><strong>步骤：</strong></p>
<p>1、使用ssh登录软件登录linux vps主机，不知道如何登录请查看此篇文章：<a title="如何使用putty远程登录vps主机的永久链接" rel="bookmark" href="http://vps.15099.net/2008/11/how-to-use-putty-remote-login-vps-hosting-109.html">如何使用putty远程登录vps主机</a></p>
<p>2、进入相应的目录压缩备份文件，现在一般的网站程序使用数据库，记得在备份网站文件时，<strong>记得同时备份数据库，</strong>关于数据库备份请查看：<a title="如何备份vps主机上的mysql数据库的永久链接" rel="bookmark" href="http://vps.15099.net/2008/12/how-to-backup-mysql-database-in-vps-hosting-230.html">如何备份vps主机上的mysql数据库</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /var/www/html      &lt; --进入相应的目录</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www html<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zcvf ecshop.tar.gz ecshop   &lt;--使用tar打包且压缩ecshop文件夹，压缩后的文件名为：ecshop.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www html<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ll ecshop.tar.gz   &lt;--列出是否已经压缩（可省略这个步骤）</span>
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">16632203</span> Dec <span style="color: #000000;">19</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">17</span> ecshop.tar.gz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www html<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>3、使用下载工具下载，如ftp客户端，关于在vps服务器构建ftp服务器可以查看：<a title="在vps主机安装vsFTPd文件服务器的永久链接" rel="bookmark" href="http://vps.15099.net/2008/12/install-vsftpd-server-in-vps-hosting-202.html">在vps主机安装vsFTPd文件服务器</a></p>
<p>经过上述步骤后，一个完整的网站就备份完毕了，养成备份的习惯是成功运行网站的关键步骤，建议客户在修改数据后及时备份。</pre>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/backup-all-website-in-vps-hosting-348.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用 awstats 分析 Nginx 的访问日志</title>
		<link>http://vps.15099.net/2008/12/use-awstats-analyse-nginx-web-access-log-323.html</link>
		<comments>http://vps.15099.net/2008/12/use-awstats-analyse-nginx-web-access-log-323.html#comments</comments>
		<pubDate>Thu, 18 Dec 2008 14:03:00 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS nginx应用]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[日志分析]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=323</guid>
		<description><![CDATA[概述：众所周知，Awstats 是在 SourceForge 上发展很快的一个基于 Perl 的 WEB 日志分析工具，一个充分的日志分析让 Awstats 显示您下列资料:

 访问次数、独特访客人数,
 访问时间和上次访问,
 使用者认证、最近认证的访问,
 每周的高峰时间(页数,点击率,每小时和一周的千字节),
 域名/国家的主机访客(页数,点击率,字节,269域名/国家检测, geoip 检测),
 主机名单,最近访问和未解析的 IP 地址名单
 大多数看过的进出页面,
 档案类型,
 网站压缩统计表(mod_gzip 或者 mod_deflate),
 使用的操作系统 (每个操作系统的页数,点击率 ,字节, 35 OS detected),
 使用的浏览器,
 机器人访问(检测 319 个机器人),
 蠕虫攻击 (5 个蠕虫家族),
 搜索引擎，利用关键词检索找到你的地址,
 HTTP 协议错误(最近查阅没有找到的页面),
 其他基于 URL 的个性报导,链接参数, 涉及综合行销领域目的.
 贵网站被加入&#8221;最喜爱的书签&#8221;.次数.
 屏幕大小(需要在索引页补充一些 HTML 标签).
 浏览器的支持比例:  Java, Flash, RealG2 reader, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>众所周知，<a href="http://vps.15099.net/2008/12/configure-awstats-log-analyze-software-in-vps-hosting-183.html">Awstats </a>是在 SourceForge 上发展很快的一个基于<a href="http://vps.15099.net/2008/12/startup-cgi-in-vps-hosting-216.html"> Perl </a>的 WEB 日志分析工具，一个充分的日志分析让 Awstats 显示您下列资料:</p>
<ul>
<li> 访问次数、独特访客人数,</li>
<li> 访问时间和上次访问,</li>
<li> 使用者认证、最近认证的访问,</li>
<li> 每周的高峰时间(页数,点击率,每小时和一周的千字节),</li>
<li> 域名/国家的主机访客(页数,点击率,字节,269域名/国家检测, geoip 检测),</li>
<li> 主机名单,最近访问和未解析的 IP 地址名单</li>
<li> 大多数看过的进出页面,</li>
<li> 档案类型,</li>
<li> 网站压缩统计表(mod_gzip 或者 mod_deflate),</li>
<li> 使用的操作系统 (每个操作系统的页数,点击率 ,字节, 35 OS detected),</li>
<li> 使用的浏览器,</li>
<li> 机器人访问(检测 319 个机器人),</li>
<li> 蠕虫攻击 (5 个蠕虫家族),</li>
<li> 搜索引擎，利用关键词检索找到你的地址,</li>
<li> HTTP 协议错误(最近查阅没有找到的页面),</li>
<li> 其他基于 URL 的个性报导,链接参数, 涉及综合行销领域目的.</li>
<li> 贵网站被加入&#8221;最喜爱的书签&#8221;.次数.</li>
<li> 屏幕大小(需要在索引页补充一些 HTML 标签).</li>
<li> 浏览器的支持比例:  Java, Flash, RealG2 reader, Quicktime reader, WMA reader, PDF reader.</li>
<li> 负载平衡服务器比率集群报告.</li>
</ul>
<p>Awstats 的运行是需要 PERL 环境的支持，从 awstats 的文档来看，它对 Apache HTTP Server 的支持是非常完美的，而当我们把 Web 服务器换成 Nginx 后，要运行 awstats 变得很麻烦。首先 Nginx 本身对 Perl 的支持是比较弱的，甚至官方也不建议使用；另外在日志格式上有需要修改后才能运行。</p>
<p>本文主要介绍通过让 awstats 对日志统计的结果生成静态页面，然后通过 Nginx 输出以达到统计 Nginx 访问日志的效果，其中还包括如何让 Nginx 自动切割日志文件。</p>
<p>在上一篇文章：《<a href="http://vps.15099.net/2008/12/configure-nginx-php-fastcgi-myslq-in-vps-hosting-319.html">在vps主机配置nginx+php(fastcgi)+mysql环境</a>》介绍了 Nginx 这个 HTTP 服务器以及如何通过它来加速网站的访问速度。在实际的网站运营中，我们经常需要了解到网站的访问情况，例如每天有多少 IP 在访问、PV 数是多少、哪个 URL 访问量最大、用户使用最多的浏览器是哪个、都是通过什么方式知道这个网站的以及有多少用户访问出错等等，通过掌握这些信息来提高用户的体验，从而改善网站 的质量。一般我们可以通过一些免费的访问统计网站例如 <a href="http://www.google.com/analytics/">Google Analytics</a> 来或者这些信息。但不足之处是这类网站只能对页面进行分析，不包括静态文件；另外可能有很多的站长不愿意使用这类工具来暴露自己的数据，种种的这些因素使 站长希望自己来分析访问日志。而 awstats 就可以满足所有的这些需求。</p>
<p><strong>目的：</strong>本文就来详细讲一下如何在vps主机已经配合nginx的环境下，使用awstats来统计我们的访问日志</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">vps主机特惠型</a> <a href="http://wiki.15099.net">centos操作系统</a></p>
<p>nginx安装目录：/usr/local/webserver/nginx</p>
<p>网页存放目录：/data0/htdocs/vps</p>
<p>日志存放路径：/data1/logs</p>
<p>perl版本：5.8</p>
<p>统计网站名称：vps.15099.net</p>
<p>awstats版本：6.8 官方地址：<a href="http://awstats.sourceforge.net/">http://awstats.sourceforge.net/</a> tar.gz压缩包<a href="http://prdownloads.sourceforge.net/awstats/awstats-6.8.tar.gz">下载地址</a></p>
<p><strong>步骤：</strong></p>
<p>1、配置nginx自动分割日志</p>
<p><span id="more-323"></span></p>
<p>跟 Apache HTTP Server（以下称 Apache）不同的是，Apache 可以将日志输出通过管道的方式进行重新定向，依此来进行自动的日志切割。Nginx 在现今版本上还没能跟 Apache 一样，通过%YY等参数按日期分批创建日志，但是通过给 nginx 进程发送一个特定的信号，可以使 nginx 重新生成日志文件。我们可以定期执行一个 Shell 脚本来切换日志，重新命名或转移，具体的脚本如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#vi /usr/local/webserver/nginx/sbin/logcron.sh</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span>  <span style="color: #000000; font-weight: bold;">/</span>data1<span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>access.log <span style="color: #000000; font-weight: bold;">/</span>data1<span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>access_<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span>.log
<span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-USR1</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>webserver<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.pid<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #666666; font-style: italic;">#使用USR1参数通知Nginx进程切换日志文件</span></pre></div></div>

<p>修改logron.sh执行权限</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#chmod +x /usr/local/webserver/nginx/sbin/logcron.sh</span></pre></div></div>

<p>2、安装和配置awstats</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic conf<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/local/</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic <span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir awstats</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wget http://prdownloads.sourceforge.net/awstats/awstats-6.8.tar.gz</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zxvf awstats-6.8.tar.gz</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mv awstats-6.8/* ./</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># rm -rf awstats-6.8.tar.gz</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd tools/</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic tools<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./awstats_configure.pl </span>
&nbsp;
<span style="color: #660033;">-----</span> AWStats awstats_configure <span style="color: #000000;">1.0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">1.8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> Laurent Destailleur <span style="color: #660033;">-----</span>
This tool will <span style="color: #7a0874; font-weight: bold;">help</span> you to configure AWStats to analyze statistics <span style="color: #000000; font-weight: bold;">for</span>
one web server. You can try to use it to <span style="color: #7a0874; font-weight: bold;">let</span> it <span style="color: #000000; font-weight: bold;">do</span> all that is possible
<span style="color: #000000; font-weight: bold;">in</span> AWStats setup, however following the step by step manual setup
documentation <span style="color: #7a0874; font-weight: bold;">&#40;</span>docs<span style="color: #000000; font-weight: bold;">/</span>index.html<span style="color: #7a0874; font-weight: bold;">&#41;</span> is often a better idea. Above all <span style="color: #000000; font-weight: bold;">if</span>:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail or <span style="color: #c20cb9; font-weight: bold;">ftp</span> log files instead of web log files,
- You need to analyze load balanced servers log files,
- You want to <span style="color: #ff0000;">'understand'</span> all possible ways to use AWStats...
Read the AWStats documentation <span style="color: #7a0874; font-weight: bold;">&#40;</span>docs<span style="color: #000000; font-weight: bold;">/</span>index.html<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
&nbsp;
-----<span style="color: #000000; font-weight: bold;">&gt;</span> Running OS detected: Linux, BSD or Unix
&nbsp;
-----<span style="color: #000000; font-weight: bold;">&gt;</span> Check <span style="color: #000000; font-weight: bold;">for</span> web server <span style="color: #c20cb9; font-weight: bold;">install</span>
&nbsp;
Enter full config <span style="color: #c20cb9; font-weight: bold;">file</span> path of your Web server.
Example: <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Example: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Example: c:\Program files\apache group\apache\conf\httpd.conf
Config <span style="color: #c20cb9; font-weight: bold;">file</span> path <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'none'</span> to skip web server setup<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
<span style="color: #000000; font-weight: bold;">&gt;</span> none  <span style="color: #666666; font-style: italic;">#因为我们这里使用nginx，所以输入none，跳过此步</span></pre></div></div>

<p>按回车</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Your web server config <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> could not be found.
You will need to setup your web server manually to <span style="color: #7a0874; font-weight: bold;">declare</span> AWStats
script <span style="color: #c20cb9; font-weight: bold;">as</span> a CGI, <span style="color: #000000; font-weight: bold;">if</span> you want to build reports dynamically.
See AWStats setup documentation <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">file</span> docs<span style="color: #000000; font-weight: bold;">/</span>index.html<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
-----<span style="color: #000000; font-weight: bold;">&gt;</span> Update model config <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">'/usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf'</span>
  File awstats.model.conf updated.
&nbsp;
-----<span style="color: #000000; font-weight: bold;">&gt;</span> Need to create a new config <span style="color: #c20cb9; font-weight: bold;">file</span> ?
Do you want me to build a new AWStats config<span style="color: #000000; font-weight: bold;">/</span>profile
<span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>required <span style="color: #000000; font-weight: bold;">if</span> first <span style="color: #c20cb9; font-weight: bold;">install</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#93;</span> ? y  <span style="color: #666666; font-style: italic;">#创建一个新的统计配置</span></pre></div></div>

<p>按回车</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">-----<span style="color: #000000; font-weight: bold;">&gt;</span>; Define config <span style="color: #c20cb9; font-weight: bold;">file</span> name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
<span style="color: #000000; font-weight: bold;">&gt;</span>vps.15099.net   <span style="color: #666666; font-style: italic;">#统计网站域名，这里填写vps.15099.net为例</span></pre></div></div>

<p>按回车</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">-----<span style="color: #000000; font-weight: bold;">&gt;</span> Define config <span style="color: #c20cb9; font-weight: bold;">file</span> path
In <span style="color: #c20cb9; font-weight: bold;">which</span> directory <span style="color: #000000; font-weight: bold;">do</span> you plan to store your config <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> ?
Default: <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>awstats
Directory path to store config <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Enter <span style="color: #000000; font-weight: bold;">for</span> default<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
<span style="color: #000000; font-weight: bold;">&gt;</span>   <span style="color: #666666; font-style: italic;">#这里提示配置文件存放在那里，我们这里按默认值，存放到/etc/awstats</span></pre></div></div>

<p>按回车,接下来便会出现以下的提示</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">-----<span style="color: #000000; font-weight: bold;">&gt;</span> Create config <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">'/etc/awstats/awstats.vip.15099.net.conf'</span>
 Config <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>awstats.vip.15099.net.conf created.   <span style="color: #666666; font-style: italic;">#提示配置文件已经创建</span>
&nbsp;
-----<span style="color: #000000; font-weight: bold;">&gt;</span> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet. <span style="color: #666666; font-style: italic;">#提示未成功自动运行脚本到cron</span>
You can <span style="color: #000000; font-weight: bold;">do</span> it manually by adding the following <span style="color: #7a0874; font-weight: bold;">command</span> to your cron:  <span style="color: #666666; font-style: italic;">#你可以手动把下列脚本添加到cron</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>wwwroot<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>awstats.pl <span style="color: #660033;">-update</span> <span style="color: #660033;">-config</span>=vip.15099.net
Or <span style="color: #000000; font-weight: bold;">if</span> you have several config files and prefer having only one <span style="color: #7a0874; font-weight: bold;">command</span>:  <span style="color: #666666; font-style: italic;">#提示如果有其他的配置文件，</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>tools<span style="color: #000000; font-weight: bold;">/</span>awstats_updateall.pl now                                 <span style="color: #666666; font-style: italic;">#只需要运行下面命令</span>
Press ENTER to continue...</pre></div></div>

<p>按回车</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">A SIMPLE config <span style="color: #c20cb9; font-weight: bold;">file</span> has been created: <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>awstats.vip.15099.net.conf <span style="color: #666666; font-style: italic;">#新配置文件所在的路径</span>
You should have a look inside to check and change manually main parameters.
You can <span style="color: #000000; font-weight: bold;">then</span> manually update your statistics <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #ff0000;">'vip.15099.net'</span> with <span style="color: #7a0874; font-weight: bold;">command</span>:
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> awstats.pl <span style="color: #660033;">-update</span> <span style="color: #660033;">-config</span>=vip.15099.net
You can also build static report pages <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #ff0000;">'vip.15099.net'</span> with <span style="color: #7a0874; font-weight: bold;">command</span>:
<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #c20cb9; font-weight: bold;">perl</span> awstats.pl <span style="color: #660033;">-output</span>=pagetype <span style="color: #660033;">-config</span>=vip.15099.net
&nbsp;
Press ENTER to finish...</pre></div></div>

<p>按回车，完成向导，接下来修改 vps.15099.net 的统计配置<br />
[root@basic tools]#vi /etc/awstats/awstats.vip.15099.net.conf<br />
找到统计的日志文件的路径</p>
<p>LogFile=&#8221;/var/log/httpd/mylog.log&#8221;</p>
<p>改为<br />
LogFile=&#8221;/data1/logs/access_%YYYY-0%MM-0%DD-0.log&#8221;<br />
对应上边 Nginx 日志切割程序的所生成的目录存放结构，要注意 Awstats 的年月日格式的跟 Nginx 的写法有所不同。我们现在执行统计的顺序是：</p>
<p>Nginx 产生日志 –&gt; 日志切割 –&gt; Nginx 继续产生日志 –&gt; 另存切割日志 –&gt; 交由Awstats统计 –&gt; 生成结果</p>
<p>在本文中 Awstats 所统计的日志，是已切下来的那部分。也能调转顺序，先统计完了再切。不过这比较容易造成统计的遗漏。配置修改完成后，保存退出。然后我们可以开始试一下手动执行。</p>
<ol>
<li>先执行日志切割脚本 logcron.sh 把 Nginx 的日志切下来。</li>
<li>然后执行 Awstats 日志更新程序开始统计分析。</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>webserver<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>logcron.sh
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>wwwroot<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>awstats.pl <span style="color: #660033;">-update</span> <span style="color: #660033;">-config</span>=vps.15099.net
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>basic awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=vps.15099.net</span>
Create<span style="color: #000000; font-weight: bold;">/</span>Update database <span style="color: #000000; font-weight: bold;">for</span> config <span style="color: #ff0000;">&quot;/etc/awstats/awstats.conf&quot;</span> by AWStats version <span style="color: #000000;">6.8</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">1.910</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
From data <span style="color: #000000; font-weight: bold;">in</span> log <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">&quot;/data1/logs/access_20081218.log&quot;</span>...
Phase <span style="color: #000000;">1</span> : First bypass old records, searching new record...
Searching new records from beginning of log file...
Jumped lines <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">file</span>: <span style="color: #000000;">0</span>
Parsed lines <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">file</span>: <span style="color: #000000;">0</span>
 Found <span style="color: #000000;">0</span> dropped records,
 Found <span style="color: #000000;">0</span> corrupted records,
 Found <span style="color: #000000;">0</span> old records,
 Found <span style="color: #000000;">0</span> new qualified records.</pre></div></div>

<p>看到以上显示，证明日志切割和 Awstats 都已经运行无误了。统计分析完成后，结果还在 Awstats 的数据库中。在 Apache 上，可以直接打开 Perl 程序的网页查看统计。但本文开始时已经提到，Nginx 对 Perl 支持并不好，所以我们要换个方法，利用 awstats 的工具将统计的结果生成静态文件，具体的步骤如下：<br />
*  首先在 webroot 目录下创建一个文件夹。例：/data0/vps/awstats<br />
* 然后让 Awstats 把静态页面生成到该目录中</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># mkdir /data0/htdocs/vps/awstats</span>
<span style="color: #666666; font-style: italic;"># perl /usr/local/awstats/tools/awstats_buildstaticpages.pl -update  \</span>
<span style="color: #660033;">-config</span>=vps.15099.net <span style="color: #660033;">-lang</span>=cn <span style="color: #660033;">-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>vps<span style="color: #000000; font-weight: bold;">/</span>awstats  \
<span style="color: #660033;">-awstatsprog</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>wwwroot<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>awstats.pl</pre></div></div>

<p>上述命令的具体意思如下：</p>
<p>* /usr/local/awstats/tools/awstats_buildstaticpages.pl Awstats 静态页面生成工具<br />
* -update -config=vps.15099.net 更新配置项<br />
* -lang=cn 语言为中文<br />
* -dir=/data0/vps/awstats 统计结果输出目录<br />
* -awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl Awstats 日志更新程序路径。</p>
<p>接下来，只需在nginx.conf 中，把该目录配置上去即可。例子如下:(加粗部分):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">location ~ ^<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>	    <span style="color: #666666; font-style: italic;"># html 静态页面目录</span>
        root   <span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>vps<span style="color: #000000; font-weight: bold;">/</span>awstats;
        index  index.html;
        access_log off;
        error_log off;
        charset gb2312; <span style="color: #666666; font-style: italic;">#最好把默认编码改成 gb2312避免浏览器因自动编码出现乱码的情况</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
location ~ ^<span style="color: #000000; font-weight: bold;">/</span>icon<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>             <span style="color: #666666; font-style: italic;"># 图标目录</span>
        root   <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>wwwroot;
        index  index.html;
        access_log off;
        error_log off;
        charset gb2312;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>用浏览器查看到统计的详细结果 http://vps.15099.net/awstats/awstats.vps.15099.net.html</p>
<p>至此，使用 awstats 已能完全支持 Nginx 的日志统计。</p>
<p>3、配置 Awstats 自动运行<br />
为了让整个日志的统计过程自动完成，我们需要设置 crontab 计划任务，让 Nginx 日志切割以及 Awstats 自动运行，定时生成结果页面。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#crontab -e</span>
&nbsp;
<span style="color: #000000;">11</span> <span style="color: #000000;">59</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>webserver<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>logcron.sh			<span style="color: #666666; font-style: italic;">#半夜11:59  进行日志切割</span>
&nbsp;
00 <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>tools<span style="color: #000000; font-weight: bold;">/</span>awstats_buildstaticpages.pl  \
<span style="color: #660033;">-update</span> <span style="color: #660033;">-config</span>=vps.15099.net <span style="color: #660033;">-lang</span>=cn <span style="color: #660033;">-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>vps<span style="color: #000000; font-weight: bold;">/</span>awstats \
<span style="color: #660033;">-awstatsprog</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>wwwroot<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>awstats.pl  
&nbsp;
<span style="color: #666666; font-style: italic;">#凌晨00:01  Awstats进行日志分析</span>
&nbsp;
:wq保存退出
<span style="color: #666666; font-style: italic;">#crontab /etc/crontab	指定cron所执行的配置档路径</span></pre></div></div>

<p>4、保护日志统计结果页面<br />
一般站长都不愿随便让人知道自己站的真实流量，所以要把 Awstats 统计结果页面进行密码保护。Nginx 使用的是跟 Apache 一样的密码加密格式，这里需要用到 apache 自带的工具 htpasswd。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#/usr/local/apache2/bin/htpasswd -c admin.pass admin #用户名为admin</span>
&nbsp;
New password:			输入密码
Re-type new password:		重复输入
Adding password <span style="color: #000000; font-weight: bold;">for</span> user admin	创建成功
&nbsp;
然后把 admin.pass 这个密码包找个的地方藏起来.
修改 nginx.conf 在 location 中加入<span style="color: #7a0874; font-weight: bold;">&#40;</span>加粗部分<span style="color: #7a0874; font-weight: bold;">&#41;</span>：
&nbsp;
location ~ ^<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>	    <span style="color: #666666; font-style: italic;"># html 静态页面目录</span>
        root   <span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>admin_web;
        index  index.html;
        access_log off;
        error_log off;
        charset gb2312;
       <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span> auth_basic     <span style="color: #ff0000;">&quot;admin&quot;</span>; <span style="color: #666666; font-style: italic;">#用户名</span>
     <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ngx<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>admin.pass; <span style="color: #666666; font-style: italic;">#密码包路径&lt;/strong&gt;</span>
&nbsp;
修改 Nginx 配置完毕后，执行命令<span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-HUP</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>webserver<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.pid<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

<p>5、总结</p>
<p>尽管跟 Apache HTTP Server 相比较而言，Nginx 的功能是比较弱的，但是我们依然可以利用一些技巧来规避这些弱点，Nginx 的设计者肯定也是充分考虑到这个问题。现在也越来越多的第三方开发的模块在逐渐的扩展 Nginx 的功能。但是从应用本身的角度而言，Nginx 更倾向于卓越的性能，而非大而全的功能，因而在一些附加方面的功能，我们也不能对之要求过高。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/use-awstats-analyse-nginx-web-access-log-323.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机配置awstats日志数据分析软件</title>
		<link>http://vps.15099.net/2008/12/configure-awstats-log-analyze-software-in-vps-hosting-183.html</link>
		<comments>http://vps.15099.net/2008/12/configure-awstats-log-analyze-software-in-vps-hosting-183.html#comments</comments>
		<pubDate>Thu, 18 Dec 2008 07:35:26 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[日志分析]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=183</guid>
		<description><![CDATA[概述：除了使用webalizer分析web日志外，还可以通过awstats的perl程序来进行数据分析，由于这个软件是以perl来执行，所以请确定mod_perl（rpm -q mod_perl命令来查看）已经安装切CGI的执行权限已经启动（使用yum -y install mod_perl安装)。可以查看在vps主机启动某个目录的CGI执行权限。
官方网站：http://awstats.sourceforge.net/ 授权模式：GPL
环境：centos vps 特惠型
目的：把http://vps.15099.net主机的web访问日志使用awstats统计出来，可以使用http://vps.15099.net/awstats/index.html访问
步骤：
1）使用yum命令安装

&#91;root@www ~&#93;#rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

[root@www ~]# yum -y install awstats

2)编辑awstats.conf配置文件

&#91;root@www ~&#93;# vim /etc/httpd/conf.d/awstats.conf
Alias /awstats/icon/ /var/www/awstats/icon/
&#160;
ScriptAlias /awstats/ /var/www/awstats/
把上面ScriptAlias 改为Alias
&#160;
        DirectoryIndex awstats.pl
        Options ExecCGI
        order deny,allow
    [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>除了使用<a href="http://vps.15099.net/2008/11/install-webalizer-in-vps-hosting-116.html" target="_blank">webalizer分析web日志外</a>，还可以通过awstats的perl程序来进行数据分析，由于这个软件是以perl来执行，所以请确定mod_perl（rpm -q mod_perl命令来查看）已经安装切CGI的执行权限已经启动（使用yum -y install mod_perl安装)。可以查看<a href="#">在vps主机启动某个目录的CGI执行权限</a>。<br />
官方网站：<a href="http://awstats.sourceforge.net/">http://awstats.sourceforge.net/</a> 授权模式：GPL</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting" target="_blank">centos vps 特惠型</a></p>
<p><strong>目的：</strong>把<a href="http://vps.15099.net" target="_blank">http://vps.15099.net</a>主机的web访问日志使用awstats统计出来，可以使用http://vps.15099.net/awstats/index.html访问</p>
<p><strong>步骤：</strong></p>
<p>1）使用yum命令安装</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</span></pre></div></div>

<p>[root@www ~]# yum -y install awstats</p>
<p><span id="more-183"></span></p>
<p>2)编辑awstats.conf配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vim /etc/httpd/conf.d/awstats.conf</span>
Alias <span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>icon<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>icon<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
ScriptAlias <span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>awstats<span style="color: #000000; font-weight: bold;">/</span>
把上面ScriptAlias 改为Alias
&nbsp;
        DirectoryIndex awstats.pl
        Options ExecCGI
        order deny,allow
        deny from all
        allow from 127.0.0.1
        allow from 67.159.48.199   <span style="color: #666666; font-style: italic;">#增加此行，运行可以通过本机ip访问</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Alias /css/ /var/www/awstats/css/</span>
<span style="color: #666666; font-style: italic;">#Alias /js/ /var/www/awstats/js/</span></pre></div></div>

<p>3)重启httpd服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># apachectl restart</span></pre></div></div>

<p>4）配置www日志文件</p>
<pre lang="bash'">[root@www ~]# cd /etc/awstats/
[root@www awstats]# cp awstats.model.conf awstats.vps.conf
[root@www awstats]# vi awstats.vps.conf
#确保下面这几行，并且修改一下内容如下，其他值为按默认值
LogFile="/var/log/httpd/vps.15099.net-access_log"
LogType=W
SiteDomain="vps.15099.net"
DirCgi="/awstats"</pre>
<p>5）开始测试一下，看是否可以产生正确的分析资料</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /var/www/awstats/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># perl awstats.pl -config=vps -update -output &amp;gt;index.html</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ll index.html</span>
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">67213</span> Nov <span style="color: #000000;">30</span> <span style="color: #000000;">17</span>:<span style="color: #000000;">45</span> index.html
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www awstats<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>6）打开游览器地址栏输入：http://vps.15099.net/awstats/index.html可以访问，将看到如下画面</p>
<div id="attachment_316" class="wp-caption alignnone" style="width: 590px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-awstats-001.jpg"><img class="size-medium wp-image-316" title="vps-awstats-001" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-awstats-001-580x600.jpg" alt="在vps主机安装awstats统计图表" width="580" height="600" /></a><p class="wp-caption-text">在vps主机安装awstats统计图表</p></div>
<p>7）一般的访问日志都不希望未经过授权的人访问，我们可以把此目录通过“.htaccess&#8221;保护此目录，关于如何建立保护目录，请查看<a href="http://vps.15099.net/2008/11/create-protect-directory-in-vps-hosting-164.html">在vps主机建立受保护的网页目录</a>这里我就不详细讲解了。</p>
<p>经过上面7步，我们就在我们的<a href="http://vps.15099.net">vps主机</a>上配置我<a href="http://awstats.sourceforge.net/">awstats</a>日志统计软件</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/configure-awstats-log-analyze-software-in-vps-hosting-183.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何恢复vps主机mysql数据库</title>
		<link>http://vps.15099.net/2008/12/how-to-resume-mysql-database-in-vps-hosting-309.html</link>
		<comments>http://vps.15099.net/2008/12/how-to-resume-mysql-database-in-vps-hosting-309.html#comments</comments>
		<pubDate>Thu, 18 Dec 2008 04:26:21 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=309</guid>
		<description><![CDATA[概述:一个成功的网站，数据备份是不可少的，那在vps主机由于其他原因不能正常启动（例如：不正当的修改设置文件，系统帐号别人知道登录修改）所以我们需要了解如何在系统损害时，如何恢复已经按上一篇如何备份vps主机上的mysql数据库备份的数据呢，下面我接着此篇文章讲解如何恢复数据库
环境：centos vps主机特惠型 其他与如何备份vps主机上的mysql数据库的环境相同
步骤：
方法一：使用phpmyadmin图形界面恢复

1、首先下载已经备份好的数据库压缩包到本地电脑，下载方式就不讲了，可以使用filezilla，WinSCP 等客户端登录下载
2、使用游览器输入phpmyadmin登录地址，登录phpmyadmin管理数据库，登录后选择对应的数据库，这里假设为：ecshop，打开如下截面:
点击【Import】选项，打开导入画面，如下图

在文本文件的位置，单击游览，找到刚才下载到本地的数据库备份文件，然后单击右下角的【执行】按钮，这样你的mysql数据库就恢复了。
方法二：使用命令行mysql恢复

gunzip &#60; /data0/htdocs/ecshop/db-backup/ecshop-$&#40;date '+%Y%m%d'&#41;.sql.gz &#124; /usr/local/webserver/mysql/bin/mysql -uecshop -pecshop ecshop

上述命令就把在如何备份vps主机上的mysql数据库备份且压缩的数据库恢复到系统了。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述:</strong>一个成功的网站，数据备份是不可少的，那在vps主机由于其他原因不能正常启动（例如：不正当的修改设置文件，系统帐号别人知道登录修改）所以我们需要了解如何在系统损害时，如何恢复已经按上一篇<a href="http://vps.15099.net/2008/12/how-to-backup-mysql-database-in-vps-hosting-230.html">如何备份vps主机上的mysql数据库</a>备份的数据呢，下面我接着此篇文章讲解如何恢复数据库</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">centos vps主机特惠型</a> 其他与<a href="http://vps.15099.net/2008/12/how-to-backup-mysql-database-in-vps-hosting-230.html">如何备份vps主机上的mysql数据库</a>的环境相同</p>
<p><strong>步骤：</strong></p>
<p><strong>方法一：使用phpmyadmin图形界面恢复<br />
</strong></p>
<p>1、首先下载已经备份好的数据库压缩包到本地电脑，下载方式就不讲了，可以使用filezilla，WinSCP 等客户端登录下载</p>
<p>2、使用游览器输入<a href="http://vps.15099.net/2008/11/use-phpmyadmin-manage-mysql-131.html">phpmyadmin</a>登录地址，登录<a href="http://vps.15099.net/2008/11/use-phpmyadmin-manage-mysql-131.html">phpmyadmin</a>管理数据库，登录后选择对应的数据库，这里假设为：ecshop，打开如下截面:</p>
<div id="attachment_310" class="wp-caption alignnone" style="width: 493px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-resume-phpmyadmin-001.jpg"><img class="size-full wp-image-310" title="vps-resume-phpmyadmin-001" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-resume-phpmyadmin-001.jpg" alt="vps-resume-phpmyadmin-001" width="483" height="98" /></a><p class="wp-caption-text">恢复vps主机mysql数据库图1</p></div>
<p>点击【Import】选项，打开导入画面，如下图</p>
<p><span id="more-309"></span></p>
<div id="attachment_311" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-resume-phpmyadmin-002.jpg"><img class="size-medium wp-image-311" title="vps-resume-phpmyadmin-002" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-resume-phpmyadmin-002-600x270.jpg" alt="恢复vps主机mysql数据库图2" width="600" height="270" /></a><p class="wp-caption-text">恢复vps主机mysql数据库图2</p></div>
<p>在文本文件的位置，单击游览，找到刚才下载到本地的数据库备份文件，然后单击右下角的【执行】按钮，这样你的mysql数据库就恢复了。</p>
<p><strong>方法二：使用命令行mysql恢复</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">gunzip</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>ecshop<span style="color: #000000; font-weight: bold;">/</span>db-backup<span style="color: #000000; font-weight: bold;">/</span>ecshop-$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #ff0000;">'+%Y%m%d'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.sql.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>webserver<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql <span style="color: #660033;">-uecshop</span> <span style="color: #660033;">-pecshop</span> ecshop</pre></div></div>

<p>上述命令就把在<a href="http://vps.15099.net/2008/12/how-to-backup-mysql-database-in-vps-hosting-230.html">如何备份vps主机上的mysql数据库</a>备份且压缩的数据库恢复到系统了。</pre>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/how-to-resume-mysql-database-in-vps-hosting-309.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>独立ip有何优势</title>
		<link>http://vps.15099.net/2008/12/dedicated-ip-advantage-293.html</link>
		<comments>http://vps.15099.net/2008/12/dedicated-ip-advantage-293.html#comments</comments>
		<pubDate>Wed, 17 Dec 2008 01:48:51 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售前问题]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[美国vps]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=293</guid>
		<description><![CDATA[使用独立IP除了能直接利用IP地址访问网站外，比较突出的有以下两点：
1、能规避在共享IP条件下的连带风险，也就是如果同一服务器上的其他虚拟主机用户因遭受攻击（比如DDOS）、违规（比如黄赌毒）或政策性处置，被屏蔽，不会受到牵连，而共享IP是如果一个用户出现问题，整台服务器上的所有用户几乎都会受到影响，这样的问题也只有独立IP才能解决。
2、独立IP能极大的提升用户网站被搜索引擎收录级别和机会，也就是一个IP只对应一个网站的话，搜索引擎会认为网站质量很高，提高收录级别，而共享IP条件下，一个IP下对应多个网站，搜索引擎会认为网站质量不高，而降低收录级别。
为什么我们可以给客户分配独立IP
我们的VPS主机是放在美国机房，提供的是美国vps主机，美国有足够的IP地址，原因是IPv4是美国研发的，他们给自己国家分配了很多IP地址，而给其他国内的IP地址则很少。在IPv6还没有发展起来之前，VPS在国内的IP地址还是有点紧张的。所以国内价格在每月200元之内的vps主机都是使用共享IP地址。
]]></description>
			<content:encoded><![CDATA[<p>使用独立IP除了能<span class="style2"><span style="color: #ff0000;">直接利用IP地址访问网站</span></span>外，比较突出的有以下两点：</p>
<p>1、<span class="style3"><span class="style4"><span style="color: #0066ff;">能规避在共享IP条件下的连带风险</span></span></span>，也就是如果同一服务器上的其他虚拟主机用户因遭受攻击（比如DDOS）、违规（比如黄赌毒）或政策性处置，被屏蔽，不会受到牵连，而共享IP是如果一个用户出现问题，整台服务器上的所有用户几乎都会受到影响，这样的问题也只有独立IP才能解决。</p>
<p>2、<span class="style4"><span style="color: #0066ff;">独立IP能极大的提升用户网站被搜索引擎收录级别和机会</span></span>，也就是一个IP只对应一个网站的话，搜索引擎会认为网站质量很高，提高收录级别，而共享IP条件下，一个IP下对应多个网站，搜索引擎会认为网站质量不高，而降低收录级别。</p>
<p><strong>为什么我们可以给客户分配独立IP</strong></p>
<p>我们的<a href="http://vps.15099.net">VPS主机</a>是放在美国机房，提供的是<a href="http://vps.15099.net">美国vps主机</a>，美国有足够的IP地址，原因是IPv4是美国研发的，他们给自己国家分配了很多IP地址，而给其他国内的IP地址则很少。在IPv6还没有发展起来之前，VPS在国内的IP地址还是有点紧张的。所以国内价格在每月200元之内的vps主机都是使用共享IP地址。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/dedicated-ip-advantage-293.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机安装ecshop商城程序</title>
		<link>http://vps.15099.net/2008/12/install-ecshop-vps-hosting-286.html</link>
		<comments>http://vps.15099.net/2008/12/install-ecshop-vps-hosting-286.html#comments</comments>
		<pubDate>Tue, 16 Dec 2008 05:07:05 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPSweb应用]]></category>
		<category><![CDATA[ecshop]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[商城]]></category>
		<category><![CDATA[商店]]></category>
		<category><![CDATA[网上商城]]></category>
		<category><![CDATA[网上商店]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=286</guid>
		<description><![CDATA[概述：ecshop是国内一款用户率占用非常高的商城程序，功能强大，使用和设置都非常方便，特别是他把源码开放，这样大家比较方便使用其进行二次开发，本来详细讲解一下如下在vps主机下安装ecshop
环境：centos vps特惠型 网站数据存放：/data0/htdocs/ecshop目录下，数据库相关信息：
数据库名：ecshop
数据库用户:ecshop
数据库密码：ecshop
步骤：
1、下载安装程序及解压
[root@www ~]# cd /data0/software/
[root@www software]# unzip ECShop_V2.6.1_UTF8_build1208.zip
[root@www software]# wget http://download.ecshop.com/2.6.1/ECShop_V2.6.1_UTF8_build1208.zip
[root@www software]# mv upload/* /data0/htdocs/ecshop/
2、打开游览器，在地址栏输入http://ecshop.15099.net/进入安装页面,如下图所示：

勾选‘我已仔细阅读，并同意上述条款中的所有内容’然后按【下一步：配置安装环境按钮】。出现如下图

如果上面截图出现有些文件不可写，请使用chmod命令修改文件权限
然后单击【下一步：配置系统】按钮

输入正确给ecshop商城分配的数据库信息已经管理员帐号信息，同时选择语言包，是否安装测试数据等信息
然后按【立即安装】按钮，进行商城数据库的安装，稍等几秒钟，出现下面画面

看到上述画面代表程序已经安装完毕，在登录系统把install删除
通过上述步骤，就把ecshop商城程序安装到vps主机了,你可以通过http://ecshop.15099.net 访问网站了。



]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong><a href="http://www.ecshop.com">ecshop</a>是国内一款用户率占用非常高的商城程序，功能强大，使用和设置都非常方便，特别是他把源码开放，这样大家比较方便使用其进行二次开发，本来详细讲解一下如下在<a href="http://vps.15099.net">vps主机</a>下安装<a href="http://ecshop.15099.net">ecshop</a></p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">centos vps特惠型</a> 网站数据存放：/data0/htdocs/ecshop目录下，数据库相关信息：</p>
<p>数据库名：ecshop</p>
<p>数据库用户:ecshop</p>
<p>数据库密码：ecshop</p>
<p><strong>步骤：</strong></p>
<p>1、下载安装程序及解压</p>
<pre>[root@www ~]# cd /data0/software/
[root@www software]# unzip ECShop_V2.6.1_UTF8_build1208.zip
[root@www software]# wget http://download.ecshop.com/2.6.1/ECShop_V2.6.1_UTF8_build1208.zip
[root@www software]# mv upload/* /data0/htdocs/ecshop/</pre>
<p>2、打开游览器，在地址栏输入<a href="http://ecshop.15099.net/">http://ecshop.15099.net/</a>进入安装页面,如下图所示：</p>
<p><span id="more-286"></span></p>
<div id="attachment_297" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-001.jpg"><img class="size-medium wp-image-297 " title="vps-ecshop-install-001" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-001-600x294.jpg" alt="在vps主机安装ecshop商城图1" width="600" height="294" /></a><p class="wp-caption-text">在vps主机安装ecshop商城图1</p></div>
<div class="mceTemp">勾选‘我已仔细阅读，并同意上述条款中的所有内容’然后按【下一步：配置安装环境按钮】。出现如下图</div>
<div class="mceTemp">
<div id="attachment_298" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-002.jpg"><img class="size-medium wp-image-298" title="vps-ecshop-install-002" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-002-600x384.jpg" alt="在vps主机安装ecshop商城图2" width="600" height="384" /></a><p class="wp-caption-text">在vps主机安装ecshop商城图2</p></div>
<div class="mceTemp">如果上面截图出现有些文件不可写，请使用chmod命令修改文件权限</div>
<div class="mceTemp">然后单击【下一步：配置系统】按钮</div>
<div class="mceTemp">
<div id="attachment_299" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-003.jpg"><img class="size-medium wp-image-299" title="vps-ecshop-install-003" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-003-600x342.jpg" alt="在vps主机安装ecshop商城图3" width="600" height="342" /></a><p class="wp-caption-text">在vps主机安装ecshop商城图3</p></div>
<div class="mceTemp">输入正确给ecshop商城分配的数据库信息已经管理员帐号信息，同时选择语言包，是否安装测试数据等信息</div>
<div class="mceTemp">然后按【立即安装】按钮，进行商城数据库的安装，稍等几秒钟，出现下面画面</div>
<div class="mceTemp">
<div id="attachment_300" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-004.jpg"><img class="size-medium wp-image-300" title="vps-ecshop-install-004" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-ecshop-install-004-600x129.jpg" alt="在vps主机安装ecshop商城图4" width="600" height="129" /></a><p class="wp-caption-text">在vps主机安装ecshop商城图4</p></div>
<div class="mceTemp">看到上述画面代表程序已经安装完毕，在登录系统把install删除</div>
<div class="mceTemp">通过上述步骤，就把<a href="http://www.ecshop.com">ecshop</a>商城程序安装到<a href="http://vps.15099.net">vps主机</a>了,你可以通过<a href="http://ecshop.15099.net">http://ecshop.15099.net</a> 访问网站了。</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/install-ecshop-vps-hosting-286.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机安装discuz7.0.0ful论坛程序</title>
		<link>http://vps.15099.net/2008/12/install-discuz-in-vps-hosting-229.html</link>
		<comments>http://vps.15099.net/2008/12/install-discuz-in-vps-hosting-229.html#comments</comments>
		<pubDate>Mon, 15 Dec 2008 08:43:13 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPSweb应用]]></category>
		<category><![CDATA[bbs]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[论坛]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=229</guid>
		<description><![CDATA[概述：discuz是国内论坛使用人数最多的一款程序，最新的版本为：7.0.0，为方便各位站长在vps主机顺利安装程序，现特写下操作步骤，请供参考
discuz官方网站：http://comsenz.com
环境：vps centos 5 特惠型
假设数据安装在/data0/htdocs/discuz目录下，可以通过http://discuz.15099.net访问,安装论坛数据库相关信息如下：
数据库:discuz
数据库用户名:discuz
数据库密码：discuz
步骤：
1、下载程序及解压
假设下载文件存放在/data0/htdocs/software下，按如下操作

&#91;root@www ~&#93;# cd /data0/software/
&#91;root@www software&#93;#wget http://download.comsenz.com/Discuz/7.0.0/Discuz_7.0.0_FULL_SC_UTF8.zip
&#91;root@www software&#93;# unzip Discuz_7.0.0_FULL_SC_UTF8.zip
&#91;root@www software&#93;# mv upload/* /data0/htdocs/discuz/

2、通过游览器在线安装
在游览器地址栏输入：http://discuz.15099.net/install，将弹出安装画面，开始进行discuz论坛的安装向导，画面如下图：

单击我同意按钮，同意授权协议，进入下一步检测运行环境，如果页面权限未设置好，请根据提示修改
然后单击检测通过，跳转到下一步
按数据库相关资料正确填写及管理员信息，然后按【填写完毕，进行下一步】
看到上面截面，就基本安装完成了，点击【您现在可以点击这里进入论坛】就直接访问你论坛首页，这里是直接访问到http://discuz.15099.net,使用刚才你设置管理员帐号和密码登录，在右上角有个系统设置，点击就可以进行论坛相关设置。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>discuz是国内论坛使用人数最多的一款程序，最新的版本为：7.0.0，为方便各位站长在vps主机顺利安装程序，现特写下操作步骤，请供参考</p>
<p>discuz官方网站：<a href="http://comsenz.com">http://comsenz.com</a></p>
<p><strong>环境：</strong><a href="http://vps.15099.net">vps</a> <a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">centos 5 特惠型</a></p>
<p>假设数据安装在/data0/htdocs/discuz目录下，可以通过<a href="http://discuz.15099.net">http://discuz.15099.net</a>访问,安装论坛数据库相关信息如下：</p>
<p>数据库:discuz</p>
<p>数据库用户名:discuz</p>
<p>数据库密码：discuz</p>
<p><strong>步骤：</strong></p>
<p>1、下载程序及解压</p>
<p>假设下载文件存放在/data0/htdocs/software下，按如下操作</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /data0/software/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www software<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#wget http://download.comsenz.com/Discuz/7.0.0/Discuz_7.0.0_FULL_SC_UTF8.zip</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www software<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># unzip Discuz_7.0.0_FULL_SC_UTF8.zip</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www software<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mv upload/* /data0/htdocs/discuz/</span></pre></div></div>

<p>2、通过游览器在线安装</p>
<p>在游览器地址栏输入：http://discuz.15099.net/install，将弹出安装画面，开始进行discuz论坛的安装向导，画面如下图：</p>
<p><span id="more-229"></span></p>
<div id="attachment_270" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-001.jpg"><img class="size-medium wp-image-270" title="vps-discuz-install-001" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-001-600x422.jpg" alt="在vps主机安装discuz图1" width="600" height="422" /></a><p class="wp-caption-text">在vps主机安装discuz图1</p></div>
<p>单击我同意按钮，同意授权协议，进入下一步检测运行环境，如果页面权限未设置好，请根据提示修改</p>
<div id="attachment_271" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-002.jpg"><img class="size-medium wp-image-271" title="vps-discuz-install-002" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-002-600x303.jpg" alt="在vps主机安装discuz图2" width="600" height="303" /></a><p class="wp-caption-text">在vps主机安装discuz图2</p></div>
<p>然后单击检测通过，跳转到下一步</p>
<div id="attachment_272" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-003.jpg"><img class="size-medium wp-image-272" title="vps-discuz-install-003" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-003-600x562.jpg" alt="在vps主机安装discuz图3" width="600" height="562" /></a><p class="wp-caption-text">在vps主机安装discuz图3</p></div>
<p>按数据库相关资料正确填写及管理员信息，然后按【填写完毕，进行下一步】</p>
<div id="attachment_277" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-004.jpg"><img class="size-medium wp-image-277" title="vps-discuz-install-004" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-discuz-install-004-600x439.jpg" alt="在vps主机安装discuz图4" width="600" height="439" /></a><p class="wp-caption-text">在vps主机安装discuz图4</p></div>
<p>看到上面截面，就基本安装完成了，点击【您现在可以点击这里进入论坛】就直接访问你论坛首页，这里是直接访问到<a href="http://discuz.15099.net">http://discuz.15099.net</a>,使用刚才你设置管理员帐号和密码登录，在右上角有个系统设置，点击就可以进行论坛相关设置。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/install-discuz-in-vps-hosting-229.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机安装shopex商城程序</title>
		<link>http://vps.15099.net/2008/12/install-shopex-in-vps-hosting-257.html</link>
		<comments>http://vps.15099.net/2008/12/install-shopex-in-vps-hosting-257.html#comments</comments>
		<pubDate>Mon, 15 Dec 2008 06:26:59 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPSweb应用]]></category>
		<category><![CDATA[shopex]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[商城]]></category>
		<category><![CDATA[商店]]></category>
		<category><![CDATA[网上商城]]></category>
		<category><![CDATA[网上商店]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=257</guid>
		<description><![CDATA[概述：shopex商城程序是国内最早的网店程序之一，市场占用率非常高，国内很多网店是使用此程序架设或进行二次开发的，而且模板众多，唯一一点不足就是为开发源代码，所以需要安装Zend Optimizer软件。官方网站：http://www.shopex.com.cn/
环境： centos 实用型vps主机 （考虑商城产品多的话，可以占用的空间超过1G，所以我未选择特惠型VPS主机
商城web程序跟目录：/data0/htdocs/shopex
数据库：shopex
数据库用户:shopex
数据库密码：shopex
关于数据库帐号可通过phpmyadmin图形界面新建，这里就不详细讲了。
目的：安装shopex测试数据，可以通过http://shopex.15099.net访问
步骤：
1、下载压缩包且解压：
[root@www ~]# cd /data0/software/
[root@www software]# wget http://dltel.shopex.cn/single/shopex_singlev472.zip
[root@www software]# unzip shopex_singlev472.zip -d shopex
[root@www software]# mv shopex/* /data0/htdocs/shopex/
2、用游览器打开http://shopex.15099.net/install进入安装程序如下图所示：

点击【接受】按钮，需接受协议，进入下一步安装说明，如下图:
点击下一步，进入系统检测页面：
点击下一步，进入准备安装页面：
输入准备好的数据库资料，这里数据库主机按默认localhost,数据库名：shopex,数据库用户名：shopex,密码：shopex,安装数据库前缀：sdb_，后台语言：简体中文 Simplified Chinese, 然后按下一步正式安装:
接着按下一步，看到如下画面：
在这里输入管理员帐号和密码等信息，单击下一步按钮
看到上面画面，单击完成，整个系统就安装成功了。
这样你就可以通过http://shopex.15099.net/ 访问商城了，通过http://shopex.15099.net/shopadmin访问后台管理界面。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>shopex商城程序是国内最早的网店程序之一，市场占用率非常高，国内很多网店是使用此程序架设或进行二次开发的，而且模板众多，唯一一点不足就是为开发源代码，所以需要安装<a href="http://vps.15099.net/2008/11/configure-zendoptimizer-in-vps-hosting-185.html">Zend Optimizer</a>软件。官方网站：<a href="http://www.shopex.com.cn/">http://www.shopex.com.cn/</a></p>
<p><strong>环境：</strong> <a href="http://vps.15099.net/vps-hosting/utility-type-vps-hosting">centos 实用型vps主机</a> （考虑商城产品多的话，可以占用的空间超过1G，所以我未选择<a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">特惠型VPS主机</a></p>
<p>商城web程序跟目录：/data0/htdocs/shopex</p>
<p>数据库：shopex</p>
<p>数据库用户:shopex</p>
<p>数据库密码：shopex</p>
<p>关于数据库帐号可通过<a href="http://vps.15099.net/2008/11/use-phpmyadmin-manage-mysql-131.html">phpmyadmin</a>图形界面新建，这里就不详细讲了。</p>
<p><strong>目的：</strong>安装shopex测试数据，可以通过<a href="http://shopex.15099.net">http://shopex.15099.net</a>访问</p>
<p><strong>步骤：</strong></p>
<p>1、下载压缩包且解压：</p>
<pre>[root@www ~]# cd /data0/software/
[root@www software]# wget http://dltel.shopex.cn/single/shopex_singlev472.zip
[root@www software]# unzip shopex_singlev472.zip -d shopex
[root@www software]# mv shopex/* /data0/htdocs/shopex/</pre>
<p>2、用游览器打开http://shopex.15099.net/install进入安装程序如下图所示：</p>
<p><span id="more-257"></span></p>
<div id="attachment_258" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-258" title="vps-shopex-install-001" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-shopex-install-001-600x303.jpg" alt="vps安装shopex图1" width="600" height="303" /><p class="wp-caption-text">vps安装shopex图1</p></div>
<p>点击【接受】按钮，需接受协议，进入下一步安装说明，如下图:</p>
<div id="attachment_259" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-259" title="vps-shopex-install-002" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-shopex-install-002-600x303.jpg" alt="vps安装shopex图2" width="600" height="303" /><p class="wp-caption-text">vps安装shopex图2</p></div>
<p>点击下一步，进入系统检测页面：</p>
<div id="attachment_260" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-260" title="vps-shopex-install-003" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-shopex-install-003-600x311.jpg" alt="vps安装shopex图3" width="600" height="311" /><p class="wp-caption-text">vps安装shopex图3</p></div>
<p>点击下一步，进入准备安装页面：</p>
<div id="attachment_261" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-261" title="vps-shopex-install-004" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-shopex-install-004-600x303.jpg" alt="vps安装shopex图4" width="600" height="303" /><p class="wp-caption-text">vps安装shopex图4</p></div>
<p>输入准备好的数据库资料，这里数据库主机按默认localhost,数据库名：shopex,数据库用户名：shopex,密码：shopex,安装数据库前缀：sdb_，后台语言：简体中文 Simplified Chinese, 然后按下一步正式安装:</p>
<div id="attachment_262" class="wp-caption alignnone" style="width: 325px"><img class="size-medium wp-image-262" title="vps-shopex-install-005" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-shopex-install-005-315x600.jpg" alt="vps安装shopex图5" width="315" height="600" /><p class="wp-caption-text">vps安装shopex图5</p></div>
<p>接着按下一步，看到如下画面：</p>
<div id="attachment_263" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-263" title="vps-shopex-install-006" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-shopex-install-006-600x311.jpg" alt="vps安装shopex图6" width="600" height="311" /><p class="wp-caption-text">vps安装shopex图6</p></div>
<p>在这里输入管理员帐号和密码等信息，单击下一步按钮</p>
<div id="attachment_264" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-264" title="vps-shopex-install-007" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-shopex-install-007-600x303.jpg" alt="vps安装shopex图7" width="600" height="303" /><p class="wp-caption-text">vps安装shopex图7</p></div>
<p>看到上面画面，单击完成，整个系统就安装成功了。</p>
<p>这样你就可以通过<a href="http://shopex.15099.net/">http://shopex.15099.net/</a> 访问商城了，通过<a href="http://shopex.15099.net/shopadmin/">http://shopex.15099.net/shopadmin</a>访问后台管理界面。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/install-shopex-in-vps-hosting-257.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何备份vps主机上的mysql数据库</title>
		<link>http://vps.15099.net/2008/12/how-to-backup-mysql-database-in-vps-hosting-230.html</link>
		<comments>http://vps.15099.net/2008/12/how-to-backup-mysql-database-in-vps-hosting-230.html#comments</comments>
		<pubDate>Sun, 14 Dec 2008 05:15:06 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=230</guid>
		<description><![CDATA[概述：一个成功的网站，数据备份是不可少的，那么如何备份已经运行的数据库呢，下面是用phpmyadmin和mysql服务器自带的mysqldump进行讲解。
环境：centos特惠型 （同时适合我司所有vps主机）假设要备份的数据库是http://ecshop.15099.net网站的数据，相关信息如下：
数据库：ecshop
用户名：ecshop
密码：ecshop
网站存放目录：/data0/htdocs/ecshop目录下
目的：1、使用phpmyadmin手动备份ecshop数据库，2、使用mysqldump定时自动备份数据库
步骤：
一、使用phpmyadmin备份数据库，关于phpmyadmin安装配置请查看：使用phpmyadmin管理mysql数据库
1、登录：使用上面帐号信息登录：
2、点击执行进入phpmyadmin控制界面如下:
3）点击左边的数据库列表中的ecshop，打开如下页面
4）单击上图最上面的【导出】选项，打开导出页面，如下图
5、用鼠标拉动右边的下拉条，看到如下截图：
在文件名模板输入你预备份的文件名，我这里填写ecshop081214(养成按日期备份文件的习惯)，压缩选择gzip压缩，然后点击右边的执行按钮，稍等几秒钟，（时间根据数据库的大小不同而不同），然后就会弹出如下对话框
然后按【确定】，就把数据库保存到本地了
6、经过上面几个步骤，就把ecshop这个mysql数据库给备份下来了，不过有一个小小的缺点，就是必须使用手动来操作，下面我们使用mysql自带的备份工具来定时备份数据
二、使用mysqldump定时自动备份数据库
1、使用ssh客户端登录vps主机，如果不会请查看这篇文章：如何使用putty远程登录vps主机
2、编辑备份脚本backup-db.sh

&#91;root@www htdocs&#93;# vi backup-db.sh
#!/bin/sh
/bin/nice -n 19 /usr/bin/mysqldump -u ecshop --password=ecshop ecshop -c &#124; /bin/nice -n 19 /bin/gzip -9 &#38;gt; /data0/htdocs/ecshop/db-backup/ecshop-$&#40;date '+%Y%m%d'&#41;.sql.gz
rm -rf /data0/htdocs/ecshop/db-backup/ecshop-$&#40;date +%Y%m%d -d &#34;7 days ago&#34;&#41;.sql.gz
#上面语句删除7天前的备份

上述脚本中-u后接数据库用户名， &#8211;password后接数据库密码，紧接着是数据库名。
3）配置定时备份

&#91;root@www ~&#93;# crontab -e
59 23 * * * /data0/htdocs/db-backup/backup-db.sh

每天的23：59分自动备份数据库，且生成的数据库压缩按日期命名
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>一个成功的网站，数据备份是不可少的，那么如何备份已经运行的数据库呢，下面是用phpmyadmin和mysql服务器自带的mysqldump进行讲解。</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">centos特惠型</a> （同时适合我司所有<a href="http://vps.15099.net/vps-hosting">vps主机</a>）假设要备份的数据库是<a href="http://ecshop.15099.net">http://ecshop.15099.net</a>网站的数据，相关信息如下：</p>
<p>数据库：ecshop</p>
<p>用户名：ecshop</p>
<p>密码：ecshop</p>
<p>网站存放目录：/data0/htdocs/ecshop目录下</p>
<p><strong>目的</strong>：1、使用phpmyadmin手动备份ecshop数据库，2、使用mysqldump定时自动备份数据库</p>
<p><strong>步骤：</strong></p>
<p>一、<strong>使用phpmyadmin备份数据库</strong>，关于phpmyadmin安装配置请查看：<a href="http://vps.15099.net/2008/11/use-phpmyadmin-manage-mysql-131.html">使用phpmyadmin管理mysql数据库</a></p>
<p>1、登录：使用上面帐号信息登录：</p>
<div id="attachment_231" class="wp-caption alignnone" style="width: 406px"><img class="size-full wp-image-231" title="vps-mysql-backup-001" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-mysql-backup-001.jpg" alt="phpmyadmin登录窗口" width="396" height="201" /><p class="wp-caption-text">phpmyadmin登录窗口</p></div>
<p>2、点击执行进入phpmyadmin控制界面如下:<span id="more-230"></span></p>
<div id="attachment_232" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-232" title="vps-mysql-backup-002" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-mysql-backup-002-600x230.jpg" alt="phpmyadmin控制界面图，双击图片可放大" width="600" height="230" /><p class="wp-caption-text">phpmyadmin控制界面图，双击图片可放大</p></div>
<p>3）点击左边的数据库列表中的ecshop，打开如下页面</p>
<div id="attachment_233" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-233" title="vps-mysql-backup-003" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-mysql-backup-003-600x328.jpg" alt="phpmyadmin-ecshop数据库截图" width="600" height="328" /><p class="wp-caption-text">phpmyadmin-ecshop数据库截图</p></div>
<p>4）单击上图最上面的【导出】选项，打开导出页面，如下图</p>
<div id="attachment_234" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-234" title="vps-mysql-backup-004" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-mysql-backup-004-600x296.jpg" alt="phpmyadmin导出截面" width="600" height="296" /><p class="wp-caption-text">phpmyadmin导出截面</p></div>
<p>5、用鼠标拉动右边的下拉条，看到如下截图：</p>
<div id="attachment_235" class="wp-caption alignnone" style="width: 610px"><img class="size-medium wp-image-235" title="vps-mysql-backup-005" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-mysql-backup-005-600x68.jpg" alt="phpmyadmin备份功能截图" width="600" height="68" /><p class="wp-caption-text">phpmyadmin备份功能截图</p></div>
<p>在文件名模板输入你预备份的文件名，我这里填写ecshop081214(养成按日期备份文件的习惯)，压缩选择gzip压缩，然后点击右边的执行按钮，稍等几秒钟，（时间根据数据库的大小不同而不同），然后就会弹出如下对话框</p>
<div id="attachment_236" class="wp-caption alignnone" style="width: 419px"><img class="size-full wp-image-236" title="vps-mysql-backup-006" src="http://vps.15099.net/wp-content/uploads/2008/12/vps-mysql-backup-006.jpg" alt="phpmyadmin备份数据库" width="409" height="269" /><p class="wp-caption-text">phpmyadmin备份数据库</p></div>
<p>然后按【确定】，就把数据库保存到本地了</p>
<p>6、经过上面几个步骤，就把ecshop这个mysql数据库给备份下来了，不过有一个小小的缺点，就是必须使用手动来操作，下面我们使用mysql自带的备份工具来定时备份数据</p>
<p>二、<strong>使用mysqldump定时自动备份数据库</strong><br />
1、使用ssh客户端登录vps主机，如果不会请查看这篇文章：<a href="http://vps.15099.net/2008/11/how-to-use-putty-remote-login-vps-hosting-109.html">如何使用putty远程登录vps主机</a></p>
<p>2、编辑备份脚本backup-db.sh</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www htdocs<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi backup-db.sh</span>
<span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">nice</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">19</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqldump <span style="color: #660033;">-u</span> ecshop <span style="color: #660033;">--password</span>=ecshop ecshop <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">nice</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">19</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-9</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>ecshop<span style="color: #000000; font-weight: bold;">/</span>db-backup<span style="color: #000000; font-weight: bold;">/</span>ecshop-$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #ff0000;">'+%Y%m%d'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.sql.gz
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>ecshop<span style="color: #000000; font-weight: bold;">/</span>db-backup<span style="color: #000000; font-weight: bold;">/</span>ecshop-$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;7 days ago&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.sql.gz
<span style="color: #666666; font-style: italic;">#上面语句删除7天前的备份</span></pre></div></div>

<p>上述脚本中-u后接数据库用户名， &#8211;password后接数据库密码，紧接着是数据库名。<br />
3）配置定时备份</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># crontab -e</span>
<span style="color: #000000;">59</span> <span style="color: #000000;">23</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>data0<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>db-backup<span style="color: #000000; font-weight: bold;">/</span>backup-db.sh</pre></div></div>

<p>每天的23：59分自动备份数据库，且生成的数据库压缩按日期命名</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/how-to-backup-mysql-database-in-vps-hosting-230.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在vps主机使用yum配置jsp环境（tomcat5)</title>
		<link>http://vps.15099.net/2008/12/install-tomcat-via-yum-in-vps-hosting-225.html</link>
		<comments>http://vps.15099.net/2008/12/install-tomcat-via-yum-in-vps-hosting-225.html#comments</comments>
		<pubDate>Sun, 07 Dec 2008 06:32:40 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=225</guid>
		<description><![CDATA[概述: 所谓 Java Servlet ，是指用 Java 语言，实现动态网页的创建的功能，一般把简单的把它称为“Servlet”（无中文译文）的情况比较常见。和它处于同等类别的技术还有我们知道的Perl、PHP、ASP等等。Servlet算是J2EE中的一部分，所以在企业应用方面，Servlet技术被广泛的应用着。而所谓的JSP是Servlet技术的延伸，Servlet程序就是通过JSP来自动生成的。通常Servlet和JSP被混为一谈的情况比较多见，但严格上说，Servlet和JSP是两种不同的技术…但也正因为它们通常作为“搭档”，JSP也被认作是Servlet的一种功能。
环境：centos vps主机 实用型（特惠型需要在刚安装系统就直接通过yum安装，要不可能会空间不足）
目的：在vps主机上使用yum快速配置jsp环境
步骤：
1)安装相应的组件:
[root@www ~]# yum -y install tomcat5 tomcat5-webapps tomcat5-admin-webapps
2)整合apache
例如tomcat安装在 /etc/tomcat5
tomcat与apache整合使用 mod_proxy_ajp
设定档参考 /etc/httpd/conf.d/proxy_ajp.conf
vi /etc/httpd/conf.d/proxy_ajp.conf
ProxyPass /tomcat/ ajp://domainname.com:8009/
ProxyPass /examples/ ajp://domainname.com:8009/jsp-examples/
将前面的#拿掉..并将 locahost 改成对外的Domain&#8230;这样就可以了&#8230;
接著测试看看 http://domainname.com/tomcat
如果要设定成虚拟主机的方式&#8230;则将 ProxyPass 那一行的设定移过去虚拟主机的设定档上就可以&#8230;真的相当方便&#8230;
]]></description>
			<content:encoded><![CDATA[<p><strong>概述:</strong> 所谓 Java Servlet ，是指用 Java 语言，实现动态网页的创建的功能，一般把简单的把它称为“Servlet”（无中文译文）的情况比较常见。和它处于同等类别的技术还有我们知道的Perl、PHP、ASP等等。Servlet算是J2EE中的一部分，所以在企业应用方面，Servlet技术被广泛的应用着。而所谓的JSP是Servlet技术的延伸，Servlet程序就是通过JSP来自动生成的。通常Servlet和JSP被混为一谈的情况比较多见，但严格上说，Servlet和JSP是两种不同的技术…但也正因为它们通常作为“搭档”，JSP也被认作是Servlet的一种功能。</p>
<p>环境：centos vps主机 实用型（特惠型需要在刚安装系统就直接通过yum安装，要不可能会空间不足）</p>
<p>目的：在vps主机上使用yum快速配置jsp环境</p>
<p>步骤：</p>
<p>1)安装相应的组件:</p>
<p>[root@www ~]# yum -y install tomcat5 tomcat5-webapps tomcat5-admin-webapps</p>
<p>2)整合apache</p>
<p>例如tomcat安装在 /etc/tomcat5<br />
tomcat与apache整合使用 mod_proxy_ajp<br />
设定档参考 /etc/httpd/conf.d/proxy_ajp.conf<br />
vi /etc/httpd/conf.d/proxy_ajp.conf</p>
<p>ProxyPass /tomcat/ ajp://domainname.com:8009/<br />
ProxyPass /examples/ ajp://domainname.com:8009/jsp-examples/</p>
<p>将前面的#拿掉..并将 locahost 改成对外的Domain&#8230;这样就可以了&#8230;<br />
接著测试看看 http://domainname.com/tomcat</p>
<p>如果要设定成虚拟主机的方式&#8230;则将 ProxyPass 那一行的设定移过去虚拟主机的设定档上就可以&#8230;真的相当方便&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/install-tomcat-via-yum-in-vps-hosting-225.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPS主机与独立主机和虚拟主机的区别</title>
		<link>http://vps.15099.net/2008/12/difference-of-vps-hosting-dedicated-server-virtual-hosting-218.html</link>
		<comments>http://vps.15099.net/2008/12/difference-of-vps-hosting-dedicated-server-virtual-hosting-218.html#comments</comments>
		<pubDate>Thu, 04 Dec 2008 03:17:18 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[vps主机]]></category>
		<category><![CDATA[vps服务器]]></category>
		<category><![CDATA[独立主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=218</guid>
		<description><![CDATA[虚拟主机的优点和缺点 
 虚拟主机服务是在同一台服务器上，通过一系列的软件组合为用户提供空间服务，利用账户密码权限对用户进行隔离和实施资源限制（如磁盘配额）。
虚拟主机可满足客户最基本的托管需求，可以托管简单的静态/动态网站。虚拟主机为互联网的广泛普及做出了巨大贡献，可以说如果没有虚拟主机的出现，就没有互联网今天的繁荣。
虚拟主机普及度非常高，几乎为绝大多数网民所熟悉，概念容易理解，因为虚拟主机价格相对便宜，对用户技术要求不高，只要懂得简单的网络技术就可以轻松上手。这成为虚拟主机为用户所广泛接受的主要原因。
但由于虚拟主机采用的隔离、资源保障机制比较简单，一旦某个用户过多地使用了系统资源，其他用户势必会受到严重影响；当某个用户网站受到攻击，则会感染同服务器所有网站。而且由于主机服务商要确保环境统一管理，不允许虚拟主机用户安装很多个性化应用，因而对用户的限制比较多。
独立主机及其优缺点
独立主机是作为虚拟主机的高端产品出现的，它是一台独立的包含操作系统环境、拥有独立IP并联网的服务器。它为互联网高端用户提供了更为宽松的使用环境，满足企业级用户各种不同的需求。
与虚拟主机相比，独立主机限制较少，用户可以自己完成各种所需的环境配置和个性化应用的安装。因为都是独享，所以不存在资源受影响的情况，安全、可靠。
但是，用户成本与其所享受的高端服务是成正比的，独立主机的价格（托管费用）相比虚拟主机要高得多。除此以外，独立主机对用户的技术要求也很高，企业需要配备专门的技术人员来维护和管理独立主机，因此，独立主机的普及程度要远远落后于虚拟主机，多数中小企业难以接受其较高的价格以及维护和管理所带来的高成本。
VPS主机的优势
通过前面的对比可以看出，虚拟主机对用户限制太多，且安全性差，独立主机价格非常昂贵，那么，有没有一种虚拟主机和独立主机的综合体，它可以继承虚拟主机和独立主机的所有优点，但却没有虚拟主机和独立主机的缺点？答案是肯定的，它就是VPS（Virtual Private Server 虚拟专用服务器）。
VPS主机继承了虚拟主机和独立主机所有优点，价格却与虚拟主机相当，用户使用VPS，不仅可以享受到与独立主机相同的高品质服务，还可尽享虚拟化技术带来的先进管理体验。
VPS主机的主要优势有：
低成本 高品质

VPS主机的出现有效填补了虚拟主机和独立主机的空缺，高密度的模式允许VPS以接近虚拟主机的价格为用户提供与独立主机相当的高品质服务，受到了主机用户的高度青睐。
操作简便 易用性强
VPS提供了直观的管理控制面板，用户只需具备计算机基础操作技能，通过简单的培训即可以完成服务器管理和日常维护工作，操作非常简便，易用性强。
用户资源有保障
每个VPS主机都拥有自己独立的资源配置，如CPU、内存、硬盘、独立的IP地址等，给用户最基本的资源保障，确保每一个用户都能公平地获得自己所需要的资源。
VPS允许配置资源使用下限和上限，资源下限给用户以最基本的资源保障，资源上限在一定程度上限制了用户对系统资源过多占用，为用户创建更加公平合理的资源使用环境。
独立的公网IP

每个VPS拥有一个独立的公网IP，这意味着VPS作为独立的互联网节点，可以从世界各地进行连接。不管您出差在外、度假、旅游，只要您能上网，就可以通过VPS提供的基于浏览器的控制面板轻松完成日常服务器的管理工作，而无需像使用独立主机一样，因为需要服务器重启，要打长途电话到机房找值班技术人员，请他们手工完成重启工作。VPS基于浏览器的控制面板既为您节省了时间，也节约了不必要的通话成本。
VPS独立的公网IP还能为用户带来更好的隔离效果。如果您曾经使用虚拟主机，您就可能有过因其它虚拟主机网站放置不合适的内容（如**功、黄色内容等）而服务器IP被封的经历。VPS有了独立的公网IP，即使同台服务器内的VPS用户可能出现这样的问题，封IP也只是单个VPS的IP，不会对您的VPS产生任何影响。
安全隔离 确保私密空间
如前所述，每个VPS都是一个独立的环境，用户之间完全隔离，是真正安全的隔离，能够确保用户资源的私密性。
在物理服务器上，每个VPS数据都是以加密文件包的方式进行存储的，物理服务器管理员根本看不到VPS数据内容，绝对不会出现网站重要信息泄漏等情况，真正为您创建了一个安全隔离的互联网空间。
自主控制资源 满足个性化需求
VPS允许用户享有和物理服务器管理员一样的管理权限，用户可以自由的安装定制化应用。这一点对用户非常重要，因为用户经常会有特殊的应用需求。
这种需求在虚拟主机里很常见，经常有用户要求安装特殊的ASP/PHP插件，因为其网站必须要使用这种插件才能正常工作。但是出于安全性等多种因素的考虑，虚拟主机服务商一般不允许用户进行这样的操作，所以就会限制或放弃这样的用户，以保障其安全稳定的服务环境。
而使用VPS，用户可以自主安装这样的插件，且绝对不会影响同一台服务器的其他VPS用户，因为每个VPS都拥有自己的独立的进程、注册表及其它硬件和软件资源，各VPS用户完全隔离，完全不会出现相互影响的情况，充分满足用户的个性化需求。
可以提供现成的应用环境
VPS采用先进的模板技术，瞬间就可以为用户部署VPS主机。VPS的模板分为操作系统模板和应用程序模板，操作系统模板方便管理员批量部署VPS操作系统环境，应用程序模板则方便管理员为VPS批量部署应用服务。
如果将操作系统模板和应用程序模板结合起来，就可以瞬间为用户直接部署现成的应用环境。例如，如果我们同时拥有了Windows OS 模板和SQL Server模板，就可以直接用来部署安装了SQL Server应用的VPS，用户在VPS开通后就可以直接使用SQL Server数据库服务。
相对于独立主机对服务器环境配置技术要求很高的工作，VPS可以通过一次性配置并制作完成模板，利用这个模板，以后服务商提供的每个VPS环境，都是已经现成的应用环境，这样就极大节约了用户配置管理和维护成本，让用户轻松使用互联网空间服务。
总之，VPS主机(VPS服务器）是虚拟主机和独立主机的有益补充，是虚拟主机更高级的阶段，它同时继承了虚拟主机和独立主机的所有优势，更符合目前市场的需求。
]]></description>
			<content:encoded><![CDATA[<p><strong>虚拟主机的优点和缺点 </strong></p>
<p><strong> </strong>虚拟主机服务是在同一台服务器上，通过一系列的软件组合为用户提供空间服务，利用账户密码权限对用户进行隔离和实施资源限制（如磁盘配额）。</p>
<p>虚拟主机可满足客户最基本的托管需求，可以托管简单的静态/动态网站。虚拟主机为互联网的广泛普及做出了巨大贡献，可以说如果没有虚拟主机的出现，就没有互联网今天的繁荣。</p>
<p>虚拟主机普及度非常高，几乎为绝大多数网民所熟悉，概念容易理解，因为虚拟主机价格相对便宜，对用户技术要求不高，只要懂得简单的网络技术就可以轻松上手。这成为虚拟主机为用户所广泛接受的主要原因。</p>
<p>但由于虚拟主机采用的隔离、资源保障机制比较简单，一旦某个用户过多地使用了系统资源，其他用户势必会受到严重影响；当某个用户网站受到攻击，则会感染同服务器所有网站。而且由于主机服务商要确保环境统一管理，不允许虚拟主机用户安装很多个性化应用，因而对用户的限制比较多。</p>
<p><strong>独立主机及其优缺点</strong></p>
<p>独立主机是作为虚拟主机的高端产品出现的，它是一台独立的包含操作系统环境、拥有独立IP并联网的服务器。它为互联网高端用户提供了更为宽松的使用环境，满足企业级用户各种不同的需求。</p>
<p>与虚拟主机相比，独立主机限制较少，用户可以自己完成各种所需的环境配置和个性化应用的安装。因为都是独享，所以不存在资源受影响的情况，安全、可靠。</p>
<p>但是，用户成本与其所享受的高端服务是成正比的，独立主机的价格（托管费用）相比虚拟主机要高得多。除此以外，独立主机对用户的技术要求也很高，企业需要配备专门的技术人员来维护和管理独立主机，因此，独立主机的普及程度要远远落后于虚拟主机，多数中小企业难以接受其较高的价格以及维护和管理所带来的高成本。</p>
<p><strong>VPS主机的优势</strong></p>
<p>通过前面的对比可以看出，虚拟主机对用户限制太多，且安全性差，独立主机价格非常昂贵，那么，有没有一种虚拟主机和独立主机的综合体，它可以继承虚拟主机和独立主机的所有优点，但却没有虚拟主机和独立主机的缺点？答案是肯定的，它就是VPS（Virtual Private Server 虚拟专用服务器）。</p>
<p>VPS主机继承了虚拟主机和独立主机所有优点，价格却与虚拟主机相当，用户使用VPS，不仅可以享受到与独立主机相同的高品质服务，还可尽享虚拟化技术带来的先进管理体验。</p>
<p><strong>VPS主机的主要优势有</strong>：</p>
<p><strong>低成本 高品质<br />
</strong><br />
VPS主机的出现有效填补了虚拟主机和独立主机的空缺，高密度的模式允许VPS以接近虚拟主机的价格为用户提供与独立主机相当的高品质服务，受到了主机用户的高度青睐。</p>
<p><strong>操作简便 易用性强</strong></p>
<p>VPS提供了直观的管理控制面板，用户只需具备计算机基础操作技能，通过简单的培训即可以完成服务器管理和日常维护工作，操作非常简便，易用性强。</p>
<p><strong>用户资源有保障</strong></p>
<p>每个VPS主机都拥有自己独立的资源配置，如CPU、内存、硬盘、独立的IP地址等，给用户最基本的资源保障，确保每一个用户都能公平地获得自己所需要的资源。</p>
<p>VPS允许配置资源使用下限和上限，资源下限给用户以最基本的资源保障，资源上限在一定程度上限制了用户对系统资源过多占用，为用户创建更加公平合理的资源使用环境。</p>
<p><strong>独立的公网IP<br />
</strong><br />
每个VPS拥有一个独立的公网IP，这意味着VPS作为独立的互联网节点，可以从世界各地进行连接。不管您出差在外、度假、旅游，只要您能上网，就可以通过VPS提供的基于浏览器的控制面板轻松完成日常服务器的管理工作，而无需像使用独立主机一样，因为需要服务器重启，要打长途电话到机房找值班技术人员，请他们手工完成重启工作。VPS基于浏览器的控制面板既为您节省了时间，也节约了不必要的通话成本。</p>
<p>VPS独立的公网IP还能为用户带来更好的隔离效果。如果您曾经使用虚拟主机，您就可能有过因其它虚拟主机网站放置不合适的内容（如**功、黄色内容等）而服务器IP被封的经历。VPS有了独立的公网IP，即使同台服务器内的VPS用户可能出现这样的问题，封IP也只是单个VPS的IP，不会对您的VPS产生任何影响。</p>
<p><strong>安全隔离 确保私密空间</strong></p>
<p>如前所述，每个VPS都是一个独立的环境，用户之间完全隔离，是真正安全的隔离，能够确保用户资源的私密性。</p>
<p>在物理服务器上，每个VPS数据都是以加密文件包的方式进行存储的，物理服务器管理员根本看不到VPS数据内容，绝对不会出现网站重要信息泄漏等情况，真正为您创建了一个安全隔离的互联网空间。</p>
<p><strong>自主控制资源 满足个性化需求</strong></p>
<p>VPS允许用户享有和物理服务器管理员一样的管理权限，用户可以自由的安装定制化应用。这一点对用户非常重要，因为用户经常会有特殊的应用需求。</p>
<p>这种需求在虚拟主机里很常见，经常有用户要求安装特殊的ASP/PHP插件，因为其网站必须要使用这种插件才能正常工作。但是出于安全性等多种因素的考虑，虚拟主机服务商一般不允许用户进行这样的操作，所以就会限制或放弃这样的用户，以保障其安全稳定的服务环境。</p>
<p>而使用VPS，用户可以自主安装这样的插件，且绝对不会影响同一台服务器的其他VPS用户，因为每个VPS都拥有自己的独立的进程、注册表及其它硬件和软件资源，各VPS用户完全隔离，完全不会出现相互影响的情况，充分满足用户的个性化需求。</p>
<p><strong>可以提供现成的应用环境</strong></p>
<p>VPS采用先进的模板技术，瞬间就可以为用户部署VPS主机。VPS的模板分为操作系统模板和应用程序模板，操作系统模板方便管理员批量部署VPS操作系统环境，应用程序模板则方便管理员为VPS批量部署应用服务。</p>
<p>如果将操作系统模板和应用程序模板结合起来，就可以瞬间为用户直接部署现成的应用环境。例如，如果我们同时拥有了Windows OS 模板和SQL Server模板，就可以直接用来部署安装了SQL Server应用的VPS，用户在VPS开通后就可以直接使用SQL Server数据库服务。</p>
<p>相对于独立主机对服务器环境配置技术要求很高的工作，VPS可以通过一次性配置并制作完成模板，利用这个模板，以后服务商提供的每个VPS环境，都是已经现成的应用环境，这样就极大节约了用户配置管理和维护成本，让用户轻松使用互联网空间服务。</p>
<p>总之，<strong><a href="http://vps.15099.net" target="_blank">VPS主机</a></strong>(VPS服务器）是虚拟主机和独立主机的有益补充，是虚拟主机更高级的阶段，它同时继承了虚拟主机和独立主机的所有优势，更符合目前市场的需求。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/difference-of-vps-hosting-dedicated-server-virtual-hosting-218.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机启动某个目录的CGI程序执行权限</title>
		<link>http://vps.15099.net/2008/12/startup-cgi-in-vps-hosting-216.html</link>
		<comments>http://vps.15099.net/2008/12/startup-cgi-in-vps-hosting-216.html#comments</comments>
		<pubDate>Wed, 03 Dec 2008 14:05:29 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[CGI]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=216</guid>
		<description><![CDATA[概述：如果想让apache执行perl之类的网页程序，就需要安装一些额外的模块。建议最好安装一下mod_perl与mod_python这两个软件。默认如果想执行CGI程序，就必须把程序放在/var/www/cgi-bin/目录下，如果想要在其他目录下也能执行CGI，就需要另外设置了。
环境：centos5 vps特惠型
目的：
1、使/var/www/html/cgi目录可以执行CGI程序
2、使虚拟主机目录也支持 cgi程序运行
步骤：
第一种目的第一种方法：（使用Options参数设置）
1）配置http.conf配置文件

&#91;root@www ~&#93;# vi /etc/httpd/conf/httpd.conf
#找到下面这一行，
#AddHandler cgi-script .cgi
#将它改为如下模样，让扩展名为.pl 的文件也能执行
AddHandler cgi-script .cgi .pl
#把如下这一行，添加index.cgi首页,改为如下模样
DirectoryIndex index.html index.cgi index.html.var
#然后加入如下这几行来决定开放某个目录的CGI执行权限
&#38;lt;Directory &#34;/var/www/html/cgi/&#34;&#38;gt;
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
&#38;lt;/Directory&#38;gt;
#重启apache
&#91;root@www ~&#93;# apachectl restart

2)新建测试页面

&#91;root@www ~&#93;#vi /var/www/html/cgi/index.cgi
#!/usr/bin/perl
print &#34;Content-Type: text/html\n\n&#34;;
print &#34;&#38;lt;html&#38;gt;&#38;lt;body&#38;gt;&#34;;
print &#34;Hello,World!CGI is working!&#38;lt;br&#38;gt;&#34;;
print &#34;&#38;lt;/body&#38;gt;&#38;lt;/html&#38;gt;&#34;;

接下来只要让CGI程序具有x权限，那么就可以执行了，把刚才新建的测试页面添加执行权限

&#91;root@www ~&#93;# chmod a+x /var/www/html/cgi/index.cgi

打开游览器，输入http://您的主机名称/cgi/就可以访问了
第一种目的第二种方法（使用ScriptAlias功能）
可以直接利用文件名的别名来处理

&#91;root@www ~&#93;# vi /etc/httpd/conf/httpd.conf
#同样找到下面这一行，
#AddHandler cgi-script .cgi
#将它改为如下模样，让扩展名为.pl 的文件也能执行
AddHandler cgi-script .cgi .pl
#把如下这一行，添加index.cgi首页,改为如下模样
DirectoryIndex index.html index.cgi index.html.var
#在文件末尾增加此行
ScriptAlias /cgi/ &#34;/var/www/html/cgi/&#34;
然后重启apache
&#91;root@www ~&#93;# apachectl restart

这种方法非常简洁，因为该目录不需要在apache首页目录下也成功。
上述两种方法可以随意选取一个进行处理，不需要两个都进行
让虚拟主机也支持CGI

&#91;root@www ~&#93;# [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>如果想让apache执行perl之类的网页程序，就需要安装一些额外的模块。建议最好安装一下mod_perl与mod_python这两个软件。默认如果想执行CGI程序，就必须把程序放在/var/www/cgi-bin/目录下，如果想要在其他目录下也能执行CGI，就需要另外设置了。</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting" target="_blank">centos5 vps特惠型</a></p>
<p><strong>目的：</strong></p>
<p>1、使/var/www/html/cgi目录可以执行CGI程序</p>
<p>2、使虚拟主机目录也支持 cgi程序运行</p>
<p><strong>步骤：</strong></p>
<p><strong>第一种目的第一种方法：</strong>（使用Options参数设置）</p>
<p>1）配置http.conf配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/httpd/conf/httpd.conf</span>
<span style="color: #666666; font-style: italic;">#找到下面这一行，</span>
<span style="color: #666666; font-style: italic;">#AddHandler cgi-script .cgi</span>
<span style="color: #666666; font-style: italic;">#将它改为如下模样，让扩展名为.pl 的文件也能执行</span>
AddHandler cgi-script .cgi .pl
<span style="color: #666666; font-style: italic;">#把如下这一行，添加index.cgi首页,改为如下模样</span>
DirectoryIndex index.html index.cgi index.html.var
<span style="color: #666666; font-style: italic;">#然后加入如下这几行来决定开放某个目录的CGI执行权限</span>
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;Directory <span style="color: #ff0000;">&quot;/var/www/html/cgi/&quot;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>Directory<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #666666; font-style: italic;">#重启apache</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># apachectl restart</span></pre></div></div>

<p>2)新建测试页面</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#vi /var/www/html/cgi/index.cgi</span>
<span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
print <span style="color: #ff0000;">&quot;Content-Type: text/html<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
print <span style="color: #ff0000;">&quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&quot;</span>;
print <span style="color: #ff0000;">&quot;Hello,World!CGI is working!&amp;lt;br&amp;gt;&quot;</span>;
print <span style="color: #ff0000;">&quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;</span>;</pre></div></div>

<p>接下来只要让CGI程序具有x权限，那么就可以执行了，把刚才新建的测试页面添加执行权限</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chmod a+x /var/www/html/cgi/index.cgi</span></pre></div></div>

<p>打开游览器，输入http://您的主机名称/cgi/就可以访问了</p>
<p><strong>第一种目的第二种方法</strong>（使用ScriptAlias功能）<br />
可以直接利用文件名的别名来处理</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/httpd/conf/httpd.conf</span>
<span style="color: #666666; font-style: italic;">#同样找到下面这一行，</span>
<span style="color: #666666; font-style: italic;">#AddHandler cgi-script .cgi</span>
<span style="color: #666666; font-style: italic;">#将它改为如下模样，让扩展名为.pl 的文件也能执行</span>
AddHandler cgi-script .cgi .pl
<span style="color: #666666; font-style: italic;">#把如下这一行，添加index.cgi首页,改为如下模样</span>
DirectoryIndex index.html index.cgi index.html.var
<span style="color: #666666; font-style: italic;">#在文件末尾增加此行</span>
ScriptAlias <span style="color: #000000; font-weight: bold;">/</span>cgi<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #ff0000;">&quot;/var/www/html/cgi/&quot;</span>
然后重启apache
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># apachectl restart</span></pre></div></div>

<p>这种方法非常简洁，因为该目录不需要在apache首页目录下也成功。<br />
上述两种方法可以随意选取一个进行处理，不需要两个都进行<br />
<strong>让虚拟主机也支持CGI</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/httpd/conf/httpd.conf</span>
<span style="color: #666666; font-style: italic;">#在此文件末增加下面语句</span>
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;Directory <span style="color: #ff0000;">&quot;/home/*/public_html/cgi/&quot;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>Directory<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/httpd/conf.d/VirtualHost.conf</span>
<span style="color: #666666; font-style: italic;">#在此文件增加如下几行，如没有此文件，请新建</span>
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;
ServerAdmin vsftptest<span style="color: #000000; font-weight: bold;">@</span>15099.net
DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vsftptest<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>
ServerName vsftptest.15099.net
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
&nbsp;
然后重启apache
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># apachectl restart</span></pre></div></div>

<p>关于如何构建虚拟主机，请访问<a href="#">在vps主机虚拟主机设置</a></p>
<p>请参考第一种目的第一种方法的第2步，/home/vsftptest/public_html/cgi建立测试页面。</p>
<p>这样就你可以使用游览器访问http://vsftptest.15099.net/cgi/里的cgi文件了</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/startup-cgi-in-vps-hosting-216.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机启动用户的个人网站</title>
		<link>http://vps.15099.net/2008/12/statup-personal-homepage-in-vps-hosting-210.html</link>
		<comments>http://vps.15099.net/2008/12/statup-personal-homepage-in-vps-hosting-210.html#comments</comments>
		<pubDate>Wed, 03 Dec 2008 07:31:31 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[vps主机]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=210</guid>
		<description><![CDATA[概述：每台vps主机都有一个首页，但是如果我们想给其他的用户也拥有可以完全控管的首页时，那该如何设计呢，Apache早 就帮我们想好了，不过在配置文件内默认将这个功能取消，本来将详细介绍如何启动用户个人网站
环境：centos 5vps特惠型主机
目的：构建一用户名为vsftptest,可以通过http://你的主机名称/~vsftptest/访问，使用ftp工具更新内容，同时限制用户不能通过ssh登录主机，已经可用磁盘空间为50M。
步骤：
1）新建用户名vsftptest

&#91;root@www ~&#93;# mkdir /etc/skel/public_html
&#91;root@www ~&#93;# useradd vsftptest
&#91;root@www ~&#93;# pwsswd vsftptest

2)编辑httpd配置文件

&#91;root@www ~&#93;#vi /etc/httpd/conf/httpd.conf
#找到如下的设置项目，大约在340行左右
&#160;
UserDir disable
#UserDir public_html
&#160;
#将它改成如下的情况
&#160;
#UserDir disable
UserDir public_html

重启httpd服务

&#91;root@www ~&#93;# apachectl restart

上面的UserDir public_html的含义是指定个人首页默认在默认目录的public_html目录中，假如用户为vsftptest，那么vsftptest默认目录为 /home/vsftptest，那么它的个人首页目录为：/home/vsftptest/public_html。当然也可以修改这个目录的名称，只要修改上述代码中的UserDir内容即可。
3）设置用户家目录权限
使用vsftptest登录系统

&#91;root@www ~&#93;# su - vsftptest
&#91;vsftptest@www ~&#93;$ chmod 755 ~
&#91;vsftptest@www ~&#93;$ chmod 755 public_html
&#91;vsftptest@www ~&#93;$ echo &#34;test you home&#34;&#62;public_html/index.html

由于CentOS默认用户的默认目录权限是“drwx&#8212;&#8212;”，这个权限无法让apache的程序浏览。所以至少要让你的默认目录与public_html目录权限成为“drwxr-xr-x”才行，这个很重要。
4）测试，在游览器地址栏输入：“http://您的主机名称/~vsftptest/”就可以看到你的主页了
如果您想是否可以使用“http://您的主机名称/vsftptest/”访问我的个人网站呢，最简单的方法如下：
第一种方法：

&#91;root@www ~&#93;# cd /var/www/html/
&#91;root@www html&#93;# ln -s /home/vsftptest/public_html vsftptest

使用此方法，记得首页的Options内有 FollowSymLinks参数，要不不可以直接使用连接文件
第二种方法：

&#91;root@www ~&#93;# vi /etc/httpd/conf/httpd.conf
&#160;
#找个不与别的设置值有干扰的地方加入这个设置项目,一般可以在文件末尾添加如下内容
&#160;
Alias /vsftptest/ &#34;/home/vsftptest/public_html/&#34;
&#160;
Options FollowSymLinks
AllowOverride [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>每台vps主机都有一个首页，但是如果我们想给其他的用户也拥有可以完全控管的首页时，那该如何设计呢，Apache早 就帮我们想好了，不过在配置文件内默认将这个功能取消，本来将详细介绍如何启动用户个人网站</p>
<p><strong>环境：</strong><a href="http://vps.15099.net/vps-hosting/preference-vps-hosting">centos 5vps特惠型主机</a></p>
<p><strong>目的：</strong>构建一用户名为vsftptest,可以通过http://你的主机名称/~vsftptest/访问，使用ftp工具更新内容，同时限制用户不能通过ssh登录主机，已经可用磁盘空间为50M。</p>
<p><strong>步骤：</strong></p>
<p>1）新建用户名vsftptest</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mkdir /etc/skel/public_html</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># useradd vsftptest</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># pwsswd vsftptest</span></pre></div></div>

<p>2)编辑httpd配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#vi /etc/httpd/conf/httpd.conf</span>
<span style="color: #666666; font-style: italic;">#找到如下的设置项目，大约在340行左右</span>
&nbsp;
UserDir disable
<span style="color: #666666; font-style: italic;">#UserDir public_html</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#将它改成如下的情况</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#UserDir disable</span>
UserDir public_html</pre></div></div>

<p>重启httpd服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># apachectl restart</span></pre></div></div>

<p>上面的UserDir public_html的含义是指定个人首页默认在默认目录的public_html目录中，假如用户为vsftptest，那么vsftptest默认目录为 /home/vsftptest，那么它的个人首页目录为：/home/vsftptest/public_html。当然也可以修改这个目录的名称，只要修改上述代码中的UserDir内容即可。</p>
<p>3）设置用户家目录权限</p>
<p>使用vsftptest登录系统</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># su - vsftptest</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>vsftptest<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> ~
<span style="color: #7a0874; font-weight: bold;">&#91;</span>vsftptest<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> public_html
<span style="color: #7a0874; font-weight: bold;">&#91;</span>vsftptest<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;test you home&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>public_html<span style="color: #000000; font-weight: bold;">/</span>index.html</pre></div></div>

<p>由于CentOS默认用户的默认目录权限是“drwx&#8212;&#8212;”，这个权限无法让apache的程序浏览。所以至少要让你的默认目录与public_html目录权限成为“drwxr-xr-x”才行，这个很重要。</p>
<p>4）测试，在游览器地址栏输入：“http://您的主机名称/~vsftptest/”就可以看到你的主页了</p>
<p>如果您想是否可以使用“http://您的主机名称/vsftptest/”访问我的个人网站呢，最简单的方法如下：</p>
<p>第一种方法：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /var/www/html/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www html<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ln -s /home/vsftptest/public_html vsftptest</span></pre></div></div>

<p>使用此方法，记得首页的Options内有 FollowSymLinks参数，要不不可以直接使用连接文件</p>
<p>第二种方法：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/httpd/conf/httpd.conf</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#找个不与别的设置值有干扰的地方加入这个设置项目,一般可以在文件末尾添加如下内容</span>
&nbsp;
Alias <span style="color: #000000; font-weight: bold;">/</span>vsftptest<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #ff0000;">&quot;/home/vsftptest/public_html/&quot;</span>
&nbsp;
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all</pre></div></div>

<p>保存设置后，重新启动apache服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#apachectl restart</span></pre></div></div>

<p>上面两种方法任选择一种，不要两种方法都配置<br />
5）配置帐号使用ftp登录更新网页<br />
具体配置请查看：<a title="Permanent Link to 在vps主机安装vsFTPd文件服务器" rel="bookmark" href="../2008/12/install-vsftpd-server-in-vps-hosting-202.html">在vps主机安装vsFTPd文件服务器</a><br />
6）限制帐号空间大小<br />
关于如何限制ftp空间的大小，具体配置请查看：<a title="Permanent Link to 在vps主机上使用磁盘配额限制vsFTPd用户的空间大小" rel="bookmark" href="../2008/12/use-quota-limit-vsftpd-user-disk-size-in-vps-hosting-205.html">在vps主机上使用磁盘配额限制vsFTPd用户的空间大小</a><br />
7）禁止vsftptest帐号使用ssh登录系统</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/ssh/sshd_config</span>
<span style="color: #666666; font-style: italic;">#在此文件末尾添加</span>
AllowUsers root
<span style="color: #666666; font-style: italic;">#若要设定多人可以通过ssh登录，就用空格隔开：AllowUsers root testroot</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/statup-personal-homepage-in-vps-hosting-210.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机上使用磁盘配额限制vsFTPd用户的空间大小</title>
		<link>http://vps.15099.net/2008/12/use-quota-limit-vsftpd-user-disk-size-in-vps-hosting-205.html</link>
		<comments>http://vps.15099.net/2008/12/use-quota-limit-vsftpd-user-disk-size-in-vps-hosting-205.html#comments</comments>
		<pubDate>Wed, 03 Dec 2008 04:43:12 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS FTP应用]]></category>
		<category><![CDATA[FTP应用]]></category>
		<category><![CDATA[FTP服务器]]></category>
		<category><![CDATA[quota]]></category>
		<category><![CDATA[vsftpd]]></category>
		<category><![CDATA[磁盘配额]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=205</guid>
		<description><![CDATA[概述：在上一篇在vps主机安装vsFTPd文件服务器 构建ftp帐号后，但是vsFTPd不支持磁盘配额，这样就很不方便给朋友分配网页空间，那么可以使用linux系统自动的磁盘配额功能，给特定的帐号分配磁盘使用大小。
环境：centos5 特惠型vps
目的：给帐号vsftptest进行磁盘配额设置，此用户共有50M磁盘空间（不考虑inode),并且最低限制为45MB，宽限时间设置为1天
步骤：
1）使用eduota编辑用户可用的空间

&#91;root@www ~&#93;# edquota -u vsftptest
Disk quotas for user vsftptest &#40;uid 500&#41;:
  Filesystem                   blocks       soft       hard     inodes   [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>在上一篇<a rel="bookmark" href="http://vps.15099.net/2008/12/install-vsftpd-server-in-vps-hosting-202.html">在vps主机安装vsFTPd文件服务器</a> 构建ftp帐号后，但是vsFTPd不支持磁盘配额，这样就很不方便给朋友分配网页空间，那么可以使用linux系统自动的磁盘配额功能，给特定的帐号分配磁盘使用大小。</p>
<p><strong>环境：</strong>centos5 特惠型vps</p>
<p><strong>目的：</strong>给帐号vsftptest进行磁盘配额设置，此用户共有50M磁盘空间（不考虑inode),并且最低限制为45MB，宽限时间设置为1天</p>
<p><strong>步骤：</strong></p>
<p>1）使用eduota编辑用户可用的空间</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># edquota -u vsftptest</span>
Disk quotas <span style="color: #000000; font-weight: bold;">for</span> user vsftptest <span style="color: #7a0874; font-weight: bold;">&#40;</span>uid <span style="color: #000000;">500</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>simfs                       <span style="color: #000000;">20</span>       <span style="color: #000000;">45000</span>      <span style="color: #000000;">50000</span>          <span style="color: #000000;">5</span>        <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span></pre></div></div>

<p>2)设置宽限时间</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># edquota -t</span>
Grace period before enforcing soft limits <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">users</span>:
Time units may be: days, hours, minutes, or seconds
  Filesystem             Block grace period     Inode grace period
  <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>simfs                 1days               0seconds</pre></div></div>

<p>3）输出quota报告</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># repquota -avug</span>
<span style="color: #000000; font-weight: bold;">***</span> Report <span style="color: #000000; font-weight: bold;">for</span> user quotas on device <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>simfs
Block grace <span style="color: #000000; font-weight: bold;">time</span>: <span style="color: #000000;">24</span>:00; Inode grace <span style="color: #000000; font-weight: bold;">time</span>: 00:00
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
<span style="color: #660033;">----------------------------------------------------------------------</span>
root      <span style="color: #660033;">--</span>  <span style="color: #000000;">469864</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>          <span style="color: #000000;">23474</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
smmsp     <span style="color: #660033;">--</span>       <span style="color: #000000;">8</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">2</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
apache    <span style="color: #660033;">--</span>      <span style="color: #000000;">40</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">4</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
rpm       <span style="color: #660033;">--</span>   <span style="color: #000000;">10592</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>             <span style="color: #000000;">75</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
named     <span style="color: #660033;">--</span>      <span style="color: #000000;">24</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">6</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
mysql     <span style="color: #660033;">--</span>   <span style="color: #000000;">22396</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>             <span style="color: #000000;">93</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
vsftptest <span style="color: #660033;">--</span>      <span style="color: #000000;">20</span>   <span style="color: #000000;">45000</span>   <span style="color: #000000;">50000</span>              <span style="color: #000000;">5</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
&nbsp;
Statistics:
Total blocks: <span style="color: #000000;">131592</span>
Data blocks: <span style="color: #000000;">5</span>
Entries: <span style="color: #000000;">7</span>
Used average: <span style="color: #000000;">1.400000</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">***</span> Report <span style="color: #000000; font-weight: bold;">for</span> group quotas on device <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>simfs
Block grace <span style="color: #000000; font-weight: bold;">time</span>: 00:00; Inode grace <span style="color: #000000; font-weight: bold;">time</span>: 00:00
                        Block limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
<span style="color: #660033;">----------------------------------------------------------------------</span>
root      <span style="color: #660033;">--</span>  <span style="color: #000000;">468012</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>          <span style="color: #000000;">22881</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
tty       <span style="color: #660033;">--</span>      <span style="color: #000000;">20</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>            <span style="color: #000000;">514</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
disk      <span style="color: #660033;">--</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">1</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
kmem      <span style="color: #660033;">--</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">3</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
mail      <span style="color: #660033;">--</span>     <span style="color: #000000;">196</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">5</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
<span style="color: #c20cb9; font-weight: bold;">man</span>       <span style="color: #660033;">--</span>     <span style="color: #000000;">128</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>             <span style="color: #000000;">32</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
lock      <span style="color: #660033;">--</span>       <span style="color: #000000;">4</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">1</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
nobody    <span style="color: #660033;">--</span>      <span style="color: #000000;">84</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">1</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
utmp      <span style="color: #660033;">--</span>     <span style="color: #000000;">144</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">4</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
smmsp     <span style="color: #660033;">--</span>     <span style="color: #000000;">816</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">5</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
apache    <span style="color: #660033;">--</span>      <span style="color: #000000;">56</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">6</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
<span style="color: #c20cb9; font-weight: bold;">screen</span>    <span style="color: #660033;">--</span>     <span style="color: #000000;">344</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">2</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
slocate   <span style="color: #660033;">--</span>      <span style="color: #000000;">28</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">2</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
utempter  <span style="color: #660033;">--</span>       <span style="color: #000000;">4</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">1</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
rpm       <span style="color: #660033;">--</span>   <span style="color: #000000;">10592</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>             <span style="color: #000000;">75</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
named     <span style="color: #660033;">--</span>     <span style="color: #000000;">100</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>             <span style="color: #000000;">28</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
mysql     <span style="color: #660033;">--</span>   <span style="color: #000000;">22396</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>             <span style="color: #000000;">93</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
vsftptest <span style="color: #660033;">--</span>      <span style="color: #000000;">20</span>       <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>              <span style="color: #000000;">5</span>     <span style="color: #000000;">0</span>     <span style="color: #000000;">0</span>
&nbsp;
Statistics:
Total blocks: <span style="color: #000000;">131592</span>
Data blocks: <span style="color: #000000;">7</span>
Entries: <span style="color: #000000;">18</span>
Used average: <span style="color: #000000;">2.571429</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/use-quota-limit-vsftpd-user-disk-size-in-vps-hosting-205.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机安装vsFTPd文件服务器</title>
		<link>http://vps.15099.net/2008/12/install-vsftpd-server-in-vps-hosting-202.html</link>
		<comments>http://vps.15099.net/2008/12/install-vsftpd-server-in-vps-hosting-202.html#comments</comments>
		<pubDate>Wed, 03 Dec 2008 02:35:15 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS FTP应用]]></category>
		<category><![CDATA[FTP应用]]></category>
		<category><![CDATA[FTP服务器]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=202</guid>
		<description><![CDATA[概述：在互联网的传输协议中，FTP(File Transfer Protocol)可以说是最古老的协议之一了，一般来说数据以FTP协议来传输时相当快的，不过值得注意的是，使用FTP传输时具有一定程序的“危险性”因为数据在因特网上完全没有受到保护的“明码”传输，所以我们建议客户最好不开放ftp服务，但可能有些客户需要给朋友分配虚拟主机（例如给朋友一个blog空间），本文详细描述如何在vps主机安装配置vsFTPd文件（FTP）服务器
环境：centos vps
目的：在vps主机安装配置vsFTPd FTP服务器，同时建立一个帐号vsftptest用户，是用户可以通过此帐号更新自己的网页
步骤：
1）安装vsFTPd服务器软件

&#91;root@www ~&#93;# yum -y install vsftpd

2)增加ftp帐号

&#91;root@www vsftpd&#93;# adduser vsftptest
&#91;root@www vsftpd&#93;# passwd vsftptest

3)处理vsftp.conf配置文件

&#91;root@www ~&#93;# vi /etc/vsftpd/vsftpd.conf
# anonymous_enable=YES    &#38;lt;--注销匿名用户登录
#增加是否针对某些用户来chroot的相关设置
chroot_local_user=YES     &#38;lt; --设置用户默认chroot
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
&#160;
新建chroot_list
&#91;root@www ~&#93;#touch /etc/vsftpd/chroot_list

4）启动vsftp服务

&#91;root@www ~&#93;# /etc/init.d/vsftpd start
&#91;root@www ~&#93;# chkconfig --level 345 vsftpd on

5)测试，使用客户ftp连接服务器
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>在互联网的传输协议中，FTP(File Transfer Protocol)可以说是最古老的协议之一了，一般来说数据以FTP协议来传输时相当快的，不过值得注意的是，使用FTP传输时具有一定程序的“危险性”因为数据在因特网上完全没有受到保护的“明码”传输，所以我们建议客户最好不开放ftp服务，但可能有些客户需要给朋友分配虚拟主机（例如给朋友一个blog空间），本文详细描述如何在vps主机安装配置vsFTPd文件（FTP）服务器</p>
<p><strong>环境：</strong>centos vps</p>
<p><strong>目的：</strong>在vps主机安装配置vsFTPd FTP服务器，同时建立一个帐号vsftptest用户，是用户可以通过此帐号更新自己的网页</p>
<p><strong>步骤：</strong></p>
<p>1）安装vsFTPd服务器软件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># yum -y install vsftpd</span></pre></div></div>

<p>2)增加ftp帐号</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www vsftpd<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># adduser vsftptest</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www vsftpd<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># passwd vsftptest</span></pre></div></div>

<p>3)处理vsftp.conf配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/vsftpd/vsftpd.conf</span>
<span style="color: #666666; font-style: italic;"># anonymous_enable=YES    &amp;lt;--注销匿名用户登录</span>
<span style="color: #666666; font-style: italic;">#增加是否针对某些用户来chroot的相关设置</span>
<span style="color: #007800;">chroot_local_user</span>=YES     <span style="color: #000000; font-weight: bold;">&amp;</span>lt; --设置用户默认<span style="color: #c20cb9; font-weight: bold;">chroot</span>
<span style="color: #007800;">chroot_list_enable</span>=YES
<span style="color: #007800;">chroot_list_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vsftpd<span style="color: #000000; font-weight: bold;">/</span>chroot_list
&nbsp;
新建chroot_list
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#touch /etc/vsftpd/chroot_list</span></pre></div></div>

<p>4）启动vsftp服务</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># /etc/init.d/vsftpd start</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># chkconfig --level 345 vsftpd on</span></pre></div></div>

<p>5)测试，使用客户ftp连接服务器</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/12/install-vsftpd-server-in-vps-hosting-202.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机apache服务配置ZendOptimizer</title>
		<link>http://vps.15099.net/2008/11/configure-zendoptimizer-in-vps-hosting-185.html</link>
		<comments>http://vps.15099.net/2008/11/configure-zendoptimizer-in-vps-hosting-185.html#comments</comments>
		<pubDate>Sun, 30 Nov 2008 15:36:03 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=185</guid>
		<description><![CDATA[下载：

&#91;root@www ~&#93;# wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz  ← 下载Zend的源代码
--22:15:41--  http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
Resolving downloads.zend.com... 66.114.49.160
Connecting to downloads.zend.com&#124;66.114.49.160&#124;:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10208541 &#40;9.7M&#41; &#91;application/x-gzip&#93;
Saving to: `ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz'
&#160;
100%[====================================================================================================================&#38;gt;] 10,208,541  5.80M/s   in 1.7s
&#160;
22:15:43 (5.80 MB/s) - `ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz' saved &#91;10208541/10208541&#93;
&#160;
&#91;root@www ~&#93;#
&#91;root@www ~&#93;# tar zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz ← 展开被压缩的源代码
&#91;root@www ~&#93;# cd ZendOptimizer-3.3.3-linux-glibc23-i386  ← 进入Zend的源代码目录
&#91;root@www ZendOptimizer-3.3.3-linux-glibc23-i386&#93;# ./install.sh   [...]]]></description>
			<content:encoded><![CDATA[<p>下载：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz  ← 下载Zend的源代码</span>
--<span style="color: #000000;">22</span>:<span style="color: #000000;">15</span>:<span style="color: #000000;">41</span>--  http:<span style="color: #000000; font-weight: bold;">//</span>downloads.zend.com<span style="color: #000000; font-weight: bold;">/</span>optimizer<span style="color: #000000; font-weight: bold;">/</span>3.3.3<span style="color: #000000; font-weight: bold;">/</span>ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
Resolving downloads.zend.com... 66.114.49.160
Connecting to downloads.zend.com<span style="color: #000000; font-weight: bold;">|</span>66.114.49.160<span style="color: #000000; font-weight: bold;">|</span>:80... connected.
HTTP request sent, awaiting response... <span style="color: #000000;">200</span> OK
Length: <span style="color: #000000;">10208541</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>9.7M<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>application<span style="color: #000000; font-weight: bold;">/</span>x-gzip<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Saving to: <span style="color: #000000; font-weight: bold;">`</span>ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz<span style="color: #ff0000;">'
&nbsp;
100%[====================================================================================================================&amp;gt;] 10,208,541  5.80M/s   in 1.7s
&nbsp;
22:15:43 (5.80 MB/s) - `ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz'</span> saved <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">10208541</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10208541</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz ← 展开被压缩的源代码</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd ZendOptimizer-3.3.3-linux-glibc23-i386  ← 进入Zend的源代码目录</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ZendOptimizer-3.3.3-linux-glibc23-i386<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./install.sh   ←运行安装脚本</span></pre></div></div>

<p>然后会出现对话方式的安装向导，图样如下：</p>
<p>[1] 选择OK，进入安装向导。</p>
<div id="attachment_186" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-001.jpg"><img class="size-medium wp-image-186" title="vps-apache-zend-optimizer-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-001-600x377.jpg" alt="在vps安装zend-optimizer图1" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图1</p></div>
<p>[2] 阅读协议后，选择EXIT。</p>
<div id="attachment_187" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-002.jpg"><img class="size-medium wp-image-187" title="vps-apache-zend-optimizer-002" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-002-600x377.jpg" alt="在vps安装zend-optimizer图2" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图2</p></div>
<p>[3]然后选择Yes同意使用协议。</p>
<div id="attachment_188" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-003.jpg"><img class="size-medium wp-image-188" title="vps-apache-zend-optimizer-003" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-003-600x377.jpg" alt="在vps安装zend-optimizer图3" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图3</p></div>
<p>[4] 设置安装目录，这里以默认的/usr/local/Zend为例，然后选择OK进入下一步。</p>
<div id="attachment_189" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-004.jpg"><img class="size-medium wp-image-189" title="vps-apache-zend-optimizer-004" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-004-600x377.jpg" alt="在vps安装zend-optimizer图4" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图4</p></div>
<p>[5]确认本地的php.ini文件位置，一般是在/etc目录下,如果PHP的配置文件在别处的话，请根据实际情况设置。</p>
<div id="attachment_190" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-005.jpg"><img class="size-medium wp-image-190" title="vps-apache-zend-optimizer-005" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-005-600x377.jpg" alt="在vps安装zend-optimizer图5" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图5</p></div>
<p>[6]检查php版本</p>
<div id="attachment_191" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-006.jpg"><img class="size-medium wp-image-191" title="vps-apache-zend-optimizer-006" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-006-600x377.jpg" alt="在vps安装zend-optimizer图6" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图6</p></div>
<p>[7]提示修改一些配置信息，原/etc/php.ini重命名为/etc/php.ini-zend_optimizer.bak，新的/etc/php.ini指向/etc/local/Zend/etc/php.ini</p>
<div id="attachment_192" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-007.jpg"><img class="size-medium wp-image-192" title="vps-apache-zend-optimizer-007" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-007-600x377.jpg" alt="在vps安装zend-optimizer图7" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图7</p></div>
<p>[8]被询问是否使用Apache服务器，这里选择Yes。</p>
<div id="attachment_193" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-008.jpg"><img class="size-medium wp-image-193" title="vps-apache-zend-optimizer-008" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-008-600x377.jpg" alt="在vps安装zend-optimizer图8" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图8</p></div>
<p>[9] 设置Apache的路径，这里保持默认，选择OK进入下一步。</p>
<div id="attachment_194" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-009.jpg"><img class="size-medium wp-image-194" title="vps-apache-zend-optimizer-009" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-009-600x377.jpg" alt="在vps安装zend-optimizer图9" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图9</p></div>
<p>[10]然后开始安装…稍等片刻，安装完成后，提示安装成功，选择OK进入下一步。</p>
<div id="attachment_195" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-010.jpg"><img class="size-medium wp-image-195" title="vps-apache-zend-optimizer-010" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-010-600x377.jpg" alt="在vps安装zend-optimizer图10" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图10</p></div>
<p>[11]选择Yes，重新启动HTTP服务</p>
<div id="attachment_196" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-011.jpg"><img class="size-medium wp-image-196" title="vps-apache-zend-optimizer-011" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-011-600x377.jpg" alt="在vps安装zend-optimizer图11" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图11</p></div>
<p>[12]服务器正在重启</p>
<div id="attachment_197" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-012.jpg"><img class="size-medium wp-image-197" title="vps-apache-zend-optimizer-012" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-012-600x377.jpg" alt="在vps安装zend-optimizer图12" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图12</p></div>
<p>[13]apache服务重启成功，zend optimizer安装成功。</p>
<div id="attachment_198" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-013.jpg"><img class="size-medium wp-image-198" title="vps-apache-zend-optimizer-013" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-zend-optimizer-013-600x377.jpg" alt="在vps安装zend-optimizer图13" width="600" height="377" /></a><p class="wp-caption-text">在vps安装zend-optimizer图13</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/configure-zendoptimizer-in-vps-hosting-185.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机安装webalizer日志分析软件</title>
		<link>http://vps.15099.net/2008/11/install-webalizer-in-vps-hosting-116.html</link>
		<comments>http://vps.15099.net/2008/11/install-webalizer-in-vps-hosting-116.html#comments</comments>
		<pubDate>Sun, 30 Nov 2008 03:43:20 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[webalizer]]></category>
		<category><![CDATA[日志分析]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=116</guid>
		<description><![CDATA[概述：
webalizer是一个高效的、免费的web服务器日志分析程序。其分析结果是HTML文件格式，从而可以很方便的通过web服务器进行浏览。
环境：centos5 vps
目的：在vps主机把http://vps.15099.net虚拟主机的日志统计到protect保护目录的webalizer子目录下
安装：
1）安装webalizer软件

# yum -y install webalizer

2）处理配置文件

# vi /etc/webalizer.conf
#确保下面这几行是正确的。其他的则保留默认值
LogFile        /var/log/httpd/vps.15099.net-access_log
OutputDir      /var/www/html/protect/webalizer
Incremental     yes

3）建立受保护目录的数据

&#91;root@www ~&#93;# cp -a /var/www/usage/ /var/www/html/protect/webalizer
&#91;root@www ~&#93;#rm -rf /etc/httpd/conf.d/webalizer.conf
&#91;root@www ~&#93;#apachectl restart

4)测试执行webalizer的分析工作

&#91;root@www ~&#93;#webalizer

5)测试
在游览器地址栏输入：http://www.15009.net/protect/webalizer,正确输入相应的保护密码后，将出现如下画面：
单击 Nov 2008超链接，将显示当月的各项分析结果。
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong></p>
<p><span class="t18"><a href="http://www.webalizer.com/" target="_blank">webalizer</a>是一个高效的、免费的web服务器日志分析程序。其分析结果是HTML文件格式，从而可以很方便的通过web服务器进行浏览。</span></p>
<p><strong>环境：</strong>centos5 vps</p>
<p><strong>目的：</strong>在vps主机把<a href="http://vps.15099.net">http://vps.15099.net</a>虚拟主机的日志统计到<a href="http://vps.15099.net/2008/11/create-protect-directory-in-vps-hosting-164.html">protect保护目录</a>的webalizer子目录下</p>
<p><strong>安装：</strong></p>
<p>1）安装webalizer软件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum -y install webalizer</span></pre></div></div>

<p>2）处理配置文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vi /etc/webalizer.conf</span>
<span style="color: #666666; font-style: italic;">#确保下面这几行是正确的。其他的则保留默认值</span>
LogFile        <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>vps.15099.net-access_log
OutputDir      <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>protect<span style="color: #000000; font-weight: bold;">/</span>webalizer
Incremental     <span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>

<p>3）建立受保护目录的数据</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -a /var/www/usage/ /var/www/html/protect/webalizer</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#rm -rf /etc/httpd/conf.d/webalizer.conf</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#apachectl restart</span></pre></div></div>

<p>4)测试执行webalizer的分析工作</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>www ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#webalizer</span></pre></div></div>

<p>5)测试</p>
<p>在游览器地址栏输入：http://www.15009.net/protect/webalizer,正确输入相应的保护密码后，将出现如下画面：</p>
<div id="attachment_176" class="wp-caption alignnone" style="width: 590px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-webalizer-001.jpg"><img class="size-medium wp-image-176" title="vps-apache-webalizer-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-webalizer-001-580x600.jpg" alt="webalizer分析工具所得的分析画面" width="580" height="600" /></a><p class="wp-caption-text">webalizer分析工具所得的分析画面</p></div>
<p>单击 Nov 2008超链接，将显示当月的各项分析结果。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/install-webalizer-in-vps-hosting-116.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机构建SSL(HTTPs)网站</title>
		<link>http://vps.15099.net/2008/11/configure-ssl-https-web-in-vps-hosting-170.html</link>
		<comments>http://vps.15099.net/2008/11/configure-ssl-https-web-in-vps-hosting-170.html#comments</comments>
		<pubDate>Sat, 29 Nov 2008 15:08:33 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=170</guid>
		<description><![CDATA[概述：在我们通常用“http://”这样的方式来访问网站的时候，传输内容是可能被别人截获的，因为其内容是通过明文传输，所以在传递一些隐私、以及密码相关的信息时，就显得非常的不安全。在一些比较正式的网站、以及一些银行相关的网站中，一些需要提交隐私或者重要级别比较高的密码时，都采用 “https://”的方式，来将传输内容加密，从而保证用户安全和避免隐私的泄漏。
环境：centos5 vps
目的：在vps主机架构一台使用https://ssl.15099.net的主机
步骤：
1）软件环境要求：
在已经架构的LAMP环境上，要使用https加密访问网站，https是利用SSL来加密传输的，利用mod_ssl帮我们制作好key以及凭证，所以需要先确保系统是否已经安装openssl和mod_ssl软件，如没有安装，使用下面命令安装：
# yum -y install openssl mod_ssl
2)建立自认证证书
2-1、生成私有证书：
# openssl genrsa -out ca.key 1024
2-2、建立用于申请的认证文件
[root@www ~]# openssl req -new -key ca.key -out ca.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>在我们通常用“http://”这样的方式来访问网站的时候，传输内容是可能被别人截获的，因为其内容是通过明文传输，所以在传递一些隐私、以及密码相关的信息时，就显得非常的不安全。在一些比较正式的网站、以及一些银行相关的网站中，一些需要提交隐私或者重要级别比较高的密码时，都采用 “https://”的方式，来将传输内容加密，从而保证用户安全和避免隐私的泄漏。</p>
<p><strong>环境：</strong>centos5 vps</p>
<p><strong>目的：</strong>在vps主机架构一台使用<a href="https://ssl.15099.net">https://ssl.15099.net</a>的主机</p>
<p><strong>步骤：</strong></p>
<p>1）软件环境要求：</p>
<p>在已经架构的LAMP环境上，要使用https加密访问网站，https是利用SSL来加密传输的，利用mod_ssl帮我们制作好key以及凭证，所以需要先确保系统是否已经安装openssl和mod_ssl软件，如没有安装，使用下面命令安装：</p>
<p># yum -y install openssl mod_ssl</p>
<p>2)建立自认证证书</p>
<p>2-1、生成私有证书：</p>
<p># open<strong class="highlight">ssl</strong> genrsa -out ca.key 1024</p>
<p>2-2、建立用于申请的认证文件</p>
<pre>[root@www ~]# openssl req -new -key ca.key -out ca.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:CN
State or Province Name (full name) [Berkshire]:Guangdong
Locality Name (eg, city) [Newbury]:Guangzhou
Organization Name (eg, company) [My Company Ltd]:vps-hosting
Organizational Unit Name (eg, section) []:vps-hosting
Common Name (eg, your name or your server's hostname) []:ssl.15099.net
Email Address []:vps@15099.net

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
[root@www ~]#</pre>
<p>2-3、生成自认证key<br />
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt<br />
2-4、把生成的文件放置到正确的位置：<br />
# mv ca.crt /etc/pki/tls/certs<br />
# mv ca.key /etc/pki/tls/private/ca.key<br />
# mv ca.csr /etc/pki/tls/private/ca.csr<br />
2-5、 编辑apache SSL配置文件<br />
# vi /etc/httpd/conf.d/ssl.conf<br />
把<br />
SSLCertificateFile /etc/pki/tls/certs/localhost.crt<br />
修改为:<br />
SSLCertificateFile /etc/pki/tls/certs/ca.crt<br />
把<br />
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key<br />
修改为：<br />
SSLCertificateKeyFile /etc/pki/tls/private/ca.key<br />
3、设置虚拟主机<br />
# vim /etc/httpd/conf.d/VirtualHost.conf</p>
<p>增加如下内容：</p>
<pre>NameVirtualHost *:443

&lt;VirtualHost *:443&gt;
        SSLEngine on
        SSLCertificateFile /etc/pki/tls/certs/ca.crt
        SSLCertificateKeyFile /etc/pki/tls/private/ca.key
        &lt;Directory /var/www/html/ssl.15099.net&gt;
        AllowOverride All
        &lt;/Directory&gt;
        DocumentRoot /var/www/html/ssl.15099.net
        ServerName ssl.15099.net
&lt;/VirtualHost&gt;</pre>
<p>重启apache服务<br />
# apachectl restart<br />
4）建立测试文件<br />
# mkdir /var/www/html/ssl.15099.net<br />
# echo https-test &gt; /var/www/html/ssl.15099.netindex.html<br />
5)测试<br />
在游览器地址栏输入：<a href="https://ssl.15099.net">https://ssl.15099.net</a>就可以访问刚才建立的index.html文件了</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/configure-ssl-https-web-in-vps-hosting-170.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机建立受保护的网页目录</title>
		<link>http://vps.15099.net/2008/11/create-protect-directory-in-vps-hosting-164.html</link>
		<comments>http://vps.15099.net/2008/11/create-protect-directory-in-vps-hosting-164.html#comments</comments>
		<pubDate>Fri, 28 Nov 2008 13:56:41 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=164</guid>
		<description><![CDATA[概述：虽然保护apache数据方面，已经可以使用Order以及Limit针对IP网段或者主机名称来管理，但如果客户端是使用拨号连接取得的方式（国内的ADSL基本都是分配动态IP），那么IP会一直变动，如此一来那个受保护的目录用户就不能在任何地方进入了，此时如果能够使用密码保护的方式，用户输入帐号/密码即可取得浏览的权限，其实apache自带就提供这种认证功能，让我们可以轻松愉快地设置好保护的网页。
环境：centos5
目的：在已经安装好的LAMP环境下，网页根目录/vat/www/html下的子目录protect建立收保护的目录，访问此文件夹内容需要输入帐号/密码认证通过才可以访问。
步骤：
1)新建受保护目录protect
#mkdir /var/www/html/protect
# touch /var/www/html/protect/index.html
# echo &#8220;test the protect&#8221; &#62; /var/www/html/protect/index.html
2)以root的身份处理httpd.conf的设置数据
编辑httpd.conf文件，让受保护的目录可以使用&#8221;.htaccess&#8221;。
# vi /etc/httpd/conf/httpd.conf
确定下面这几行是存在的
AccessFileName .htaccess
&#60;Files ~ "^\.ht"&#62;
    Order allow,deny
    Deny from all
&#60;/Files&#62;
新建/etc/httpd/conf.d/protect.conf文件
输入如下内容:
&#60;Directory "/var/www/html/protect"&#62;
  AllowOverride AuthConfig
  Order allow,deny
  Allow from all
&#60;/Directory&#62;
然后重启httpd服务
#apachectl restart
3)建立保护目录的“.htaccess&#8221;文件
特别提醒的是，此文件是在保护目录的下面，不要放错地方，操作如下：
# cd /var/www/htm/protect
# vi .htaccess
在文件里添加如下内容
AuthName  "Protetct test by .htaccess"
Authtype   Basic
AuthUserFile /var/www/apache.passwd
require user protect
4)建立密码文件htpasswd
[root@www ~]# htpasswd [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>虽然保护apache数据方面，已经可以使用Order以及Limit针对IP网段或者主机名称来管理，但如果客户端是使用拨号连接取得的方式（国内的ADSL基本都是分配动态IP），那么IP会一直变动，如此一来那个受保护的目录用户就不能在任何地方进入了，此时如果能够使用密码保护的方式，用户输入帐号/密码即可取得浏览的权限，其实apache自带就提供这种认证功能，让我们可以轻松愉快地设置好保护的网页。</p>
<p><strong>环境：</strong>centos5</p>
<p><strong>目的：</strong>在已经安装好的LAMP环境下，网页根目录/vat/www/html下的子目录protect建立收保护的目录，访问此文件夹内容需要输入帐号/密码认证通过才可以访问。</p>
<p><strong>步骤：</strong></p>
<p>1)新建受保护目录protect</p>
<p>#mkdir /var/www/html/protect</p>
<p># touch /var/www/html/protect/index.html</p>
<p># echo &#8220;test the protect&#8221; &gt; /var/www/html/protect/index.html</p>
<p>2)以root的身份处理httpd.conf的设置数据</p>
<p>编辑httpd.conf文件，让受保护的目录可以使用&#8221;.htaccess&#8221;。</p>
<p># vi /etc/httpd/conf/httpd.conf</p>
<p>确定下面这几行是存在的</p>
<pre>AccessFileName .htaccess
&lt;Files ~ "^\.ht"&gt;
    Order allow,deny
    Deny from all
&lt;/Files&gt;</pre>
<p>新建/etc/httpd/conf.d/protect.conf文件<br />
输入如下内容:</p>
<pre>&lt;Directory "/var/www/html/protect"&gt;
  AllowOverride AuthConfig
  Order allow,deny
  Allow from all
&lt;/Directory&gt;</pre>
<p>然后重启httpd服务<br />
#apachectl restart</p>
<p>3)建立保护目录的“.htaccess&#8221;文件</p>
<p>特别提醒的是，此文件是在保护目录的下面，不要放错地方，操作如下：</p>
<p># cd /var/www/htm/protect</p>
<p># vi .htaccess</p>
<p>在文件里添加如下内容</p>
<pre>AuthName  "Protetct test by .htaccess"
Authtype   Basic
AuthUserFile /var/www/apache.passwd
require user protect</pre>
<p>4)建立密码文件htpasswd</p>
<pre>[root@www ~]# htpasswd -c /var/www/apache.passwd protect
New password:   &lt;--这里输入一次密码，注意，屏幕不会有任何信息
Re-type new password:  &lt;--这里再输入一次
Adding password for user protect
[root@www ~]#
查看是否已经建好protect帐号
[root@www ~]# cat /var/www/apache.passwd
protect:Vrf/iGfgn.fiM   &lt;--已经建立一个新用户
[root@www ~]#</pre>
<p>5）测试：</p>
<p>在游览器地址栏输入：http://youipaddress/protect/将会弹出如下信息：</p>
<div id="attachment_167" class="wp-caption alignnone" style="width: 572px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-protect-001.jpg"><img class="size-medium wp-image-167" title="vps-apache-protect-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-apache-protect-001.jpg" alt="受保护模式的授权画面" width="562" height="170" /></a><p class="wp-caption-text">受保护模式的授权画面</p></div>
<p>看到上面画面，输入你刚才第4步建立的帐号和密码，进入授权网页，您可以把一些数据不想让所有人取得，或者某些重要的apache主机分析数据，例如：<a title="Permanent Link to 在vps主机安装phpsysinfo" rel="bookmark" href="../2008/11/install-phpsysinfo-in-vps-hosting-144.html">在vps主机安装phpsysinfo</a>、<a title="Permanent Link to 在vps主机安装php探针iProber" rel="bookmark" href="../2008/11/install-php-iprober-in-vps-hosting-137.html">在vps主机安装php探针iProber</a>、<a title="Permanent Link to 使用phpmyadmin管理mysql数据库" rel="bookmark" href="../2008/11/use-phpmyadmin-manage-mysql-131.html">使用phpmyadmin管理mysql数据库</a>、等数据都可以放置到保护文件夹下。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/create-protect-directory-in-vps-hosting-164.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在vps主机配置apache服务mod_info模块</title>
		<link>http://vps.15099.net/2008/11/configure-apache-mod_info-in-vps-hosting-155.html</link>
		<comments>http://vps.15099.net/2008/11/configure-apache-mod_info-in-vps-hosting-155.html#comments</comments>
		<pubDate>Fri, 28 Nov 2008 03:26:57 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=155</guid>
		<description><![CDATA[概述：在centos5使用yum安装httpd，有加载过mod_info模块，此模块允许通过http://youipaddress/server-info/远程访问服务器配置文件报告，这模块提供广泛的服务配置，包含所有的安装模块和指令。
环境：centos5
步骤：
1）编辑主配置文件
# vi /etc/httpd/conf/httpd.conf
大概在914行
把
#&#60;Location /server-info&#62;
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#&#60;/Location&#62;
修改为：
&#60;Location /server-info&#62;
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 127.0.0.1
&#60;/Location&#62;
重启apache
# [...]]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong>在centos5使用yum安装httpd，有加载过mod_info模块，此模块允许通过http://youipaddress/server-info/远程访问服务器配置文件报告，这模块提供广泛的服务配置，包含所有的安装模块和指令。</p>
<p><strong>环境：</strong>centos5</p>
<p><strong>步骤：</strong></p>
<p>1）编辑主配置文件</p>
<p># vi /etc/httpd/conf/httpd.conf</p>
<p>大概在914行</p>
<p>把</p>
<pre>#&lt;Location /server-info&gt;
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#&lt;/Location&gt;</pre>
<p>修改为：</p>
<pre>&lt;Location /server-info&gt;
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 127.0.0.1
&lt;/Location&gt;</pre>
<p>重启apache</p>
<p># apachectl restart</p>
<p>2）测试：</p>
<p>在游览器地址栏输入：http://youipaddress/server-info/ 将弹出如下画面：</p>
<div id="attachment_156" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-server-info-001.jpg"><img class="size-medium wp-image-156" title="vps-server-info-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-server-info-001-600x362.jpg" alt="server-info图1（双击图片可放大查看)" width="600" height="362" /></a><p class="wp-caption-text">server-info图1（双击图片可放大查看)</p></div>
<p>通过此页面，可以图形化详细配置文件。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/configure-apache-mod_info-in-vps-hosting-155.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机配置apache主机状态说明页面</title>
		<link>http://vps.15099.net/2008/11/configure-apache-server-status-150.html</link>
		<comments>http://vps.15099.net/2008/11/configure-apache-server-status-150.html#comments</comments>
		<pubDate>Thu, 27 Nov 2008 16:08:36 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=150</guid>
		<description><![CDATA[在vps主机安装www服务后，除了提供服务外，重要的工作就是维护了。是否一定要额外安装其他的软件才能了解目前主机的状态呢？当然不是。可以通过apache提供的特殊功能来查询主机目前的状态，即mod_status模块。这个模块默认是关闭的，需要修改配置文件来启动它。
#vi /etc/httpd/conf/httpd.conf
先确定下面这行已经存在
LoadMofudule status_module modules/mod_status.so
把
#ExtendedStatus On
修改为：
ExtendedStatus On
把
#&#60;Location /server-status&#62;
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#&#60;/Location&#62;
修改为：
&#60;Location /server-status&#62;
    SetHandler server-status
    Order allow,deny
    Allow from all
&#60;/Location&#62;
接下来在游览器地址栏输入：http://youipaddress/server-status/，即可弹出如下画面：
输出的结果包括目前的时间、Apache重新启动的时间以及目前已经启动的程序等，在网页的下方还会显示每个程序的客户端与服务器端的连接状态。虽然显示的信息很简单，不过足以让您粗略了解主机的状态。需要注意的是，可将查阅者（allow from的参数）的权限限制严格一些。
]]></description>
			<content:encoded><![CDATA[<p>在vps主机安装www服务后，除了提供服务外，重要的工作就是维护了。是否一定要额外安装其他的软件才能了解目前主机的状态呢？当然不是。可以通过apache提供的特殊功能来查询主机目前的状态，即mod_status模块。这个模块默认是关闭的，需要修改配置文件来启动它。</p>
<p>#vi /etc/httpd/conf/httpd.conf</p>
<p>先确定下面这行已经存在</p>
<p>LoadMofudule status_module modules/mod_status.so</p>
<p>把<br />
#ExtendedStatus On</p>
<p>修改为：</p>
<p>ExtendedStatus On</p>
<p>把</p>
<pre>#&lt;Location /server-status&gt;
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#&lt;/Location&gt;</pre>
<p>修改为：</p>
<pre>&lt;Location /server-status&gt;
    SetHandler server-status
    Order allow,deny
    Allow from all
&lt;/Location&gt;</pre>
<p>接下来在游览器地址栏输入：http://youipaddress/server-status/，即可弹出如下画面：</p>
<div id="attachment_152" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-server-status-001.jpg"><img class="size-medium wp-image-152" title="vps-server-status-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-server-status-001-600x450.jpg" alt="主机的目前状态回复网页" width="600" height="450" /></a><p class="wp-caption-text">主机的目前状态回复网页</p></div>
<p>输出的结果包括目前的时间、Apache重新启动的时间以及目前已经启动的程序等，在网页的下方还会显示每个程序的客户端与服务器端的连接状态。虽然显示的信息很简单，不过足以让您粗略了解主机的状态。需要注意的是，可将查阅者（allow from的参数）的权限限制严格一些。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/configure-apache-server-status-150.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机安装phpsysinfo</title>
		<link>http://vps.15099.net/2008/11/install-phpsysinfo-in-vps-hosting-144.html</link>
		<comments>http://vps.15099.net/2008/11/install-phpsysinfo-in-vps-hosting-144.html#comments</comments>
		<pubDate>Thu, 27 Nov 2008 14:42:02 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=144</guid>
		<description><![CDATA[概述：
phpSysInfo是一个能够显示主机系统信息的PHP脚本。包括：主机名，所用操作系统及内核版本，计算机运行时间，CPU，内存，SCSI设备，IDE设备，PCI设备和网络适配器，硬盘使用情况等信息。
环境：centos5
目的：在已经构建好的LAMP环境安装phpsysinfo，官方地址：http://phpsysinfo.sourceforge.net/
步骤：
1）下载与解压
进入受保护的目录
# cd /var/www/html/protect
下载压缩包  本地下载：phpsysinfo-254tar
# wget http://downloads.sourceforge.net/phpsysinfo/phpsysinfo-2.5.4.tar.gz
解压缩文件
# tar zxvf phpsysinfo-2.5.4.tar.gz
进入解压后的目录
#cd phpsysinfo
使用配置模板生成配置文件
# cp config.php.new config.php
修改复制的config.php文件，使其默认语言为中文
# vi config.php
把$default_lng=&#8217;en&#8217;;语句修改为：$default_lng=&#8217;cn&#8217;; 然后保存
2）测试
在游览器地址栏输入：http://youipaddress/protect/phpsysinfo,将出现如下画面：
]]></description>
			<content:encoded><![CDATA[<p><strong>概述：</strong></p>
<p>phpSysInfo是一个能够显示主机系统信息的PHP脚本。包括：主机名，所用操作系统及内核版本，计算机运行时间，CPU，内存，SCSI设备，IDE设备，PCI设备和网络适配器，硬盘使用情况等信息。</p>
<p><strong>环境：</strong>centos5</p>
<p><strong>目的：</strong>在已经构建好的LAMP环境安装phpsysinfo，官方地址：<a href="http://phpsysinfo.sourceforge.net/">http://phpsysinfo.sourceforge.net/</a></p>
<p><strong>步骤：</strong></p>
<p>1）下载与解压</p>
<p>进入受保护的目录</p>
<p># cd /var/www/html/protect</p>
<p>下载压缩包  本地下载：<a href="http://vps.15099.net/wp-content/uploads/2008/11/phpsysinfo-254tar.gz">phpsysinfo-254tar</a></p>
<p># wget http://downloads.sourceforge.net/phpsysinfo/phpsysinfo-2.5.4.tar.gz</p>
<p>解压缩文件</p>
<p># tar zxvf phpsysinfo-2.5.4.tar.gz</p>
<p>进入解压后的目录</p>
<p>#cd phpsysinfo</p>
<p>使用配置模板生成配置文件</p>
<p># cp config.php.new config.php</p>
<p>修改复制的config.php文件，使其默认语言为中文</p>
<p># vi config.php</p>
<p>把$default_lng=&#8217;en&#8217;;语句修改为：$default_lng=&#8217;cn&#8217;; 然后保存</p>
<p>2）测试</p>
<p>在游览器地址栏输入：http://youipaddress/protect/phpsysinfo,将出现如下画面：</p>
<div id="attachment_147" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-phpsysinfo-001.jpg"><img class="size-medium wp-image-147" title="vps-phpsysinfo-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-phpsysinfo-001-600x276.jpg" alt="vps-phpsysinfo图1" width="600" height="276" /></a><p class="wp-caption-text">vps-phpsysinfo图1</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/install-phpsysinfo-in-vps-hosting-144.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机安装php探针iProber</title>
		<link>http://vps.15099.net/2008/11/install-php-iprober-in-vps-hosting-137.html</link>
		<comments>http://vps.15099.net/2008/11/install-php-iprober-in-vps-hosting-137.html#comments</comments>
		<pubDate>Thu, 27 Nov 2008 03:52:20 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=137</guid>
		<description><![CDATA[iProber探针介绍：
主要功能：
1、服务器环境探测：CPU、在线时间、内存使用状况、系统平均负载探测（支持LINUX、FreeBSD系统，需系统支持），操作系统、服务器域名、IP地址、解释引擎等
2、PHP基本特征探测：版本、运行方式、安全模式、Zend编译运行及常规参数
3、PHP组件支持探测：MYSQL、GD、XML、SESSION、SOCKET等组件支持情况
4、服务器性能检测：整数运算能力、浮点数运算能力、数据IO能力
5、自定义探测：MYSQL连接测试、MAIL发信测试、函数支持情况及PHP配置参数
环境：centos5 vps
目的：在protect保护目录下安装iProber探针 官方地址：http://www.depoch.net/download.htm
安装：
1）下载与安装：
在受保护目录新建一个iProber文件夹
# mkdir /var/www/html/protect/iProber
下载zip压缩包 本地下载：iProber压缩包
# wget http://depoch.net/download/11742329208989.zip
解压压缩包：
# unzip  11742329208989.zip
删除已解压的压缩包，释放空间
# rm -rf 11742329208989.zip
2）测试访问
在游览器地址栏输入：http://youipaddress/protect/iProber/iProber.php,将看到如下画面：
3）使用iProber自带的自定义检测项目测试php与mysql数据库连接，如下图所示：
在上图中：MYSQL服务器填写：localhost ；MYSQL用户名填写：root；MYSQL用户密码填写：（初始密码为空，不要填写）；MYSQL数据库名称填写：test；然后按&#8221;CONNECT&#8221;按钮，如提示成功，就证明php连接数据库函数成功。
]]></description>
			<content:encoded><![CDATA[<p><strong>iProber探针介绍</strong>：</p>
<p>主要功能：<br />
1、服务器环境探测：CPU、在线时间、内存使用状况、系统平均负载探测（支持LINUX、FreeBSD系统，需系统支持），操作系统、服务器域名、IP地址、解释引擎等<br />
2、PHP基本特征探测：版本、运行方式、安全模式、Zend编译运行及常规参数<br />
3、PHP组件支持探测：MYSQL、GD、XML、SESSION、SOCKET等组件支持情况<br />
4、服务器性能检测：整数运算能力、浮点数运算能力、数据IO能力<br />
5、自定义探测：MYSQL连接测试、MAIL发信测试、函数支持情况及PHP配置参数</p>
<p>环境：centos5 vps</p>
<p>目的：在protect保护目录下安装iProber探针 官方地址：<a href="http://www.depoch.net/download.htm" target="_blank">http://www.depoch.net/download.htm</a></p>
<p>安装：</p>
<p>1）下载与安装：</p>
<p>在受保护目录新建一个iProber文件夹</p>
<p># mkdir /var/www/html/protect/iProber</p>
<p>下载zip压缩包 本地下载：<a href="http://vps.15099.net/wp-content/uploads/2008/11/11742329208989.zip">iProber压缩包</a></p>
<p># wget http://depoch.net/download/11742329208989.zip</p>
<p>解压压缩包：</p>
<p># unzip  11742329208989.zip</p>
<p>删除已解压的压缩包，释放空间</p>
<p># rm -rf 11742329208989.zip</p>
<p>2）测试访问</p>
<p>在游览器地址栏输入：http://youipaddress/protect/iProber/iProber.php,将看到如下画面：</p>
<div id="attachment_140" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-iprober-001.jpg"><img class="size-medium wp-image-140" title="vps-iprober-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-iprober-001-600x424.jpg" alt="vps-iprober图1" width="600" height="424" /></a><p class="wp-caption-text">vps-iprober图1</p></div>
<p>3）使用iProber自带的自定义检测项目测试php与mysql数据库连接，如下图所示：</p>
<div id="attachment_141" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-iprober-002.jpg"><img class="size-medium wp-image-141" title="vps-iprober-002" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-iprober-002-600x233.jpg" alt="vps-iprober图2" width="600" height="233" /></a><p class="wp-caption-text">vps-iprober图2</p></div>
<p>在上图中：MYSQL服务器填写：localhost ；MYSQL用户名填写：root；MYSQL用户密码填写：（初始密码为空，不要填写）；MYSQL数据库名称填写：test；然后按&#8221;CONNECT&#8221;按钮，如提示成功，就证明php连接数据库函数成功。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/install-php-iprober-in-vps-hosting-137.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用phpmyadmin管理mysql数据库</title>
		<link>http://vps.15099.net/2008/11/use-phpmyadmin-manage-mysql-131.html</link>
		<comments>http://vps.15099.net/2008/11/use-phpmyadmin-manage-mysql-131.html#comments</comments>
		<pubDate>Thu, 27 Nov 2008 03:16:33 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=131</guid>
		<description><![CDATA[概述：phpMyAdmin是一个用PHP编写的，可以通过互联网控制和操作MySQL。通过phpMyAdmin可以完全对数据库进行操作，例如建立、复制/删除数据等等。
环境：centos5
目的：在上一篇在vps主机配置LAMP环境中，已经成功在vps主机构建了LAMP环境，这篇文章详细描述如何配置phpmyadmin2.11.93管理vps主机上的mysql数据库系统
步骤：
1)下载与解压
新建一个受保护的文件夹
# mkdir /var/www/html/protect
进入相应的目录
# cd /var/www/html/protect
到官方下载phpmyadmin tar.gz格式文件 本地下载：phpmyadmin-21193-all-languages-utf-8-onlytar
# wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.9.3-all-languages-utf-8-only.tar.gz
解压刚才下载的文件
# tar zxvf phpMyAdmin-2.11.9.3-all-languages-utf-8-only.tar.gz
删除已经解压的压缩包释放空间
# rm -rf  phpMyAdmin-2.11.9.3-all-languages-utf-8-only.tar.gz
重命名解压后的文件名：
# mv phpMyAdmin-2.11.9.3-all-languages-utf-8-only phpmyadmin
2）配置phpmyadmin
进入刚重命名的文件夹
# cd phpmyadmin
新建配置文件（使用默认的样本复制）
# cp config.sample.inc.php config.inc.php
编辑新建的配置文件
#vi config.inc.php
修改大概在17行的 $cfg['blowfish_secret'] = &#8221;; 改为： $cfg['blowfish_secret'] = &#8216;test99&#8242;; 其中修改后的test99处您可以任何内容，这里只是用test99举例，然后保存
3）测试
在游览器地址啦输入：http://youipaddress/protect/phpmyadmin，就能看到如下信息了：
现在你就可以使用phpmyadmin这款强大的图形界面工具管理数据库了，默认数据库管理员帐号为：root 密码为空，记得登录进去修改root密码
]]></description>
			<content:encoded><![CDATA[<p><strong>概述</strong>：phpMyAdmin是一个用PHP编写的，可以通过互联网控制和操作MySQL。通过phpMyAdmin可以完全对数据库进行操作，例如建立、复制/删除数据等等。</p>
<p><strong>环境</strong>：centos5</p>
<p><strong>目的</strong>：在上一篇<a title="Permanent Link to 在vps主机配置LAMP环境" rel="bookmark" href="../2008/11/configure-lamp-in-vps-hosting-128.html">在vps主机配置LAMP环境</a>中，已经成功在vps主机构建了LAMP环境，这篇文章详细描述如何配置phpmyadmin2.11.93管理vps主机上的mysql数据库系统</p>
<p><strong>步骤</strong>：</p>
<p>1)下载与解压</p>
<p>新建一个受保护的文件夹</p>
<p># mkdir /var/www/html/protect</p>
<p>进入相应的目录</p>
<p># cd /var/www/html/protect</p>
<p>到官方下载phpmyadmin tar.gz格式文件 本地下载：<a href="http://vps.15099.net/wp-content/uploads/2008/11/phpmyadmin-21193-all-languages-utf-8-onlytar.gz">phpmyadmin-21193-all-languages-utf-8-onlytar</a></p>
<p># wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.9.3-all-languages-utf-8-only.tar.gz</p>
<p>解压刚才下载的文件</p>
<p># tar zxvf phpMyAdmin-2.11.9.3-all-languages-utf-8-only.tar.gz</p>
<p>删除已经解压的压缩包释放空间</p>
<p># rm -rf  phpMyAdmin-2.11.9.3-all-languages-utf-8-only.tar.gz</p>
<p>重命名解压后的文件名：</p>
<p># mv phpMyAdmin-2.11.9.3-all-languages-utf-8-only phpmyadmin</p>
<p>2）配置phpmyadmin</p>
<p>进入刚重命名的文件夹</p>
<p># cd phpmyadmin</p>
<p>新建配置文件（使用默认的样本复制）</p>
<p># cp config.sample.inc.php config.inc.php</p>
<p>编辑新建的配置文件</p>
<p>#vi config.inc.php</p>
<p>修改大概在17行的 $cfg['blowfish_secret'] = &#8221;; 改为： $cfg['blowfish_secret'] = &#8216;test99&#8242;; 其中修改后的test99处您可以任何内容，这里只是用test99举例，然后保存</p>
<p>3）测试</p>
<p>在游览器地址啦输入：http://youipaddress/protect/phpmyadmin，就能看到如下信息了：</p>
<div id="attachment_135" class="wp-caption alignnone" style="width: 485px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-phpmyadmin-001.jpg"><img class="size-medium wp-image-135" title="vps-phpmyadmin-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-phpmyadmin-001.jpg" alt="phpmyadmin图1" width="475" height="351" /></a><p class="wp-caption-text">phpmyadmin图1</p></div>
<p>现在你就可以使用phpmyadmin这款强大的图形界面工具管理数据库了，默认数据库管理员帐号为：root 密码为空，记得登录进去修改root密码</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/use-phpmyadmin-manage-mysql-131.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在vps主机配置LAMP环境</title>
		<link>http://vps.15099.net/2008/11/configure-lamp-in-vps-hosting-128.html</link>
		<comments>http://vps.15099.net/2008/11/configure-lamp-in-vps-hosting-128.html#comments</comments>
		<pubDate>Wed, 26 Nov 2008 15:00:57 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=128</guid>
		<description><![CDATA[系统环境：centos5
目的：使用yum快速配置LAMP（linux+apache+mysql+php)环境
1）安装：
# yum -y install httpd mysql-server php php-devel php-mysql php-mcrypt php-mbstring php-gd
其中：
httpd：web服务器包
mysql-server：mysql数据库服务器包
php：php包
php-devel：php开发包
php-mysql：使得php可以连接mysql数据库包
php-mcrypt：标准php模块，提供加密库支持
php-mbstring：支持多字节支付（使用phpmyadmin需要）
php-gd：php图形库
2）配置httpd
# vi /etc/httpd/conf/httpd.conf
2-1）修改语言编码
#找到下面这一行，应该大概在747行左右
AddDefaultCharset UTF-8
改成：
# AddDefaultCharset UTF-8
由网页表头宣告，直接注销即可
3）新建测试网页
进入网站根目录文件夹
# cd /var/www/html
新建一个phpinfo.php文件
# touch phpinfo.php
输入&#60;?php phpinfo();?&#62;到phpinfo.php文件里
# echo &#8216;&#60;?php phpinfo();?&#62;&#8217; &#62; phpinfo.php
4)把相应的服务使得开机自动启动

#  chkconfig --level 345 httpd on
# chkconfig --level 345 mysqld on

5) 启动服务

# /etc/init.d/httpd start
# /etc/init.d/mysqld start

6)添加防火墙规则
7)测试php网页服务器
在游览器地址栏输入：http://youipaddress/phpinfo.php，如看到如下类似画面,就证明配置成功了
8）测试php与mysql连接
关于php与mysql连接测试，请访问在vps主机安装php探针iProber
]]></description>
			<content:encoded><![CDATA[<p>系统环境：centos5</p>
<p>目的：使用yum快速配置LAMP（linux+apache+mysql+php)环境</p>
<p>1）安装：</p>
<p># yum -y install httpd mysql-server php php-devel php-mysql php-mcrypt php-mbstring php-gd</p>
<p>其中：</p>
<p>httpd：web服务器包</p>
<p>mysql-server：mysql数据库服务器包</p>
<p>php：php包</p>
<p>php-devel：php开发包</p>
<p>php-mysql：使得php可以连接mysql数据库包</p>
<p>php-mcrypt：标准php模块，提供加密库支持</p>
<p>php-mbstring：支持多字节支付（使用phpmyadmin需要）</p>
<p>php-gd：php图形库</p>
<p>2）配置httpd</p>
<p># vi /etc/httpd/conf/httpd.conf</p>
<p>2-1）修改语言编码</p>
<p>#找到下面这一行，应该大概在747行左右</p>
<p>AddDefaultCharset UTF-8</p>
<p>改成：</p>
<p># AddDefaultCharset UTF-8<br />
由网页表头宣告，直接注销即可</p>
<p>3）新建测试网页</p>
<p>进入网站根目录文件夹</p>
<p># cd /var/www/html</p>
<p>新建一个phpinfo.php文件</p>
<p># touch phpinfo.php</p>
<p>输入&lt;?php phpinfo();?&gt;到phpinfo.php文件里</p>
<p># echo &#8216;&lt;?php phpinfo();?&gt;&#8217; &gt; phpinfo.php</p>
<p>4)把相应的服务使得开机自动启动</p>
<pre>
#  chkconfig --level 345 httpd on
# chkconfig --level 345 mysqld on
</pre>
<p>5) 启动服务</p>
<pre>
# /etc/init.d/httpd start
# /etc/init.d/mysqld start
</pre>
<p>6)添加防火墙规则</p>
<p>7)测试php网页服务器</p>
<p>在游览器地址栏输入：http://youipaddress/phpinfo.php，如看到如下类似画面,就证明配置成功了</p>
<div id="attachment_129" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-lamp-001.jpg"><img class="size-medium wp-image-129" title="vps-lamp-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-lamp-001-600x483.jpg" alt="vps-phpinfo信息图" width="600" height="483" /></a><p class="wp-caption-text">vps-phpinfo信息图</p></div>
<p>8）测试php与mysql连接</p>
<p>关于php与mysql连接测试，请访问<a href="http://vps.15099.net/2008/11/install-php-iprober-in-vps-hosting-137.html">在vps主机安装php探针iProber</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/configure-lamp-in-vps-hosting-128.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vps主机安装配置php强化模块eaccelerator</title>
		<link>http://vps.15099.net/2008/11/install-php-eaccelerator-in-vps-hosting-120.html</link>
		<comments>http://vps.15099.net/2008/11/install-php-eaccelerator-in-vps-hosting-120.html#comments</comments>
		<pubDate>Wed, 26 Nov 2008 08:30:08 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=120</guid>
		<description><![CDATA[环境：centos5
确保系统已经安装好php-devel、autoconf、automake、m4、libtool、 gcc(预编译用） make(编译用）等软件，可使用rpm -q 软件包名查看，如未安装，使用yum -y install 软件包名进行安装。
eaccelerator官方网站：http://eaccelerator.net/
安装配置步骤如下：
1）下载源码包：本地下载地址：
# cd /usr/local/src
# wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip
2）解压源码包
# unzip eaccelerator-0.9.5.3.zip
#cd eaccelerator-0.9.5.3
3)利用phpize进行php程序的预处理
#phpize
4）预编译设置：

#./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config

5）编译：
# make
6）编译成功后安装
# make install
此时这个新编译的模块会被放置到/usr/lib/php/modules/eaccelerator.so中
7）修改php.ini和预先加载PHP模块
vi /etc/php.ini
按shift+g键跳到配置文件的最末尾，加上以下配置信息：
[eaccelerator]
extension=&#8221;eaccelerator.so&#8221;
eaccelerator.shm_size=&#8221;16&#8243;
eaccelerator.cache_dir=&#8221;/tmp/eaccelerator&#8221;
eaccelerator.enable=&#8221;1&#8243;
eaccelerator.optimizer=&#8221;1&#8243;
eaccelerator.check_mtime=&#8221;1&#8243;
eaccelerator.debug=&#8221;0&#8243;
eaccelerator.filter=&#8221;"
eaccelerator.shm_max=&#8221;0&#8243;
eaccelerator.shm_ttl=&#8221;0&#8243;
eaccelerator.shm_prune_period=&#8221;0&#8243;
eaccelerator.shm_only=&#8221;0&#8243;
eaccelerator.compress=&#8221;1&#8243;
eaccelerator.compress_level=&#8221;9&#8243;
预先加载php模块
#vi /etc/ld.so.conf
#ldconfig   &#60;&#8211;把模块导入高速缓存
在文件尾添加
/usr/lib/php/modules
8)建立eaccelerator的暂存数据
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
9）使用ab命令测试一下网站效率，如下：

[root@www tmp]# ab -dkS -n100 -c100 http://localhost/phpinfo.php
This is ApacheBench, Version 2.0.40-dev &#60;$Revision: 1.146 $&#62; apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be [...]]]></description>
			<content:encoded><![CDATA[<p>环境：centos5</p>
<p>确保系统已经安装好php-devel、autoconf、automake、m4、libtool、 gcc(预编译用） make(编译用）等软件，可使用rpm -q 软件包名查看，如未安装，使用yum -y install 软件包名进行安装。</p>
<p>eaccelerator官方网站：<a href="http://eaccelerator.net/">http://eaccelerator.net/</a></p>
<p>安装配置步骤如下：</p>
<p>1）下载源码包：本地下载地址：</p>
<p># cd /usr/local/src</p>
<p># wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip</p>
<p>2）解压源码包</p>
<p># unzip eaccelerator-0.9.5.3.zip</p>
<p>#cd eaccelerator-0.9.5.3</p>
<p>3)利用phpize进行php程序的预处理</p>
<p>#phpize</p>
<p>4）预编译设置：</p>
<pre>
#./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
</pre>
<p>5）编译：</p>
<p># make</p>
<p>6）编译成功后安装</p>
<p># make install</p>
<p>此时这个新编译的模块会被放置到/usr/lib/php/modules/eaccelerator.so中</p>
<p>7）修改php.ini和预先加载PHP模块</p>
<p>vi /etc/php.ini</p>
<p>按shift+g键跳到配置文件的最末尾，加上以下配置信息：</p>
<blockquote><p>[eaccelerator]<br />
extension=&#8221;eaccelerator.so&#8221;<br />
eaccelerator.shm_size=&#8221;16&#8243;<br />
eaccelerator.cache_dir=&#8221;/tmp/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;</p></blockquote>
<p>预先加载php模块</p>
<p>#vi /etc/ld.so.conf</p>
<p>#ldconfig   &lt;&#8211;把模块导入高速缓存</p>
<p>在文件尾添加</p>
<p>/usr/lib/php/modules</p>
<p>8)建立eaccelerator的暂存数据</p>
<pre>mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator</pre>
<p>9）使用ab命令测试一下网站效率，如下：</p>
<blockquote>
<pre>[root@www tmp]# ab -dkS -n100 -c100 http://localhost/phpinfo.php
This is ApacheBench, Version 2.0.40-dev &lt;$Revision: 1.146 $&gt; apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done

Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

Document Path:          /phpinfo.php
Document Length:        48658 bytes

Concurrency Level:      100
Time taken for tests:   1.52041 seconds
Complete requests:      100
Failed requests:        1
   (Connect: 0, Length: 1, Exceptions: 0)
Write errors:           0
Keep-Alive requests:    0
Total transferred:      4879895 bytes
HTML transferred:       4865795 bytes
Requests per second:    95.05 [#/sec] (mean)
Time per request:       1052.041 [ms] (mean)
Time per request:       10.520 [ms] (mean, across all concurrent requests)
Transfer rate:          4529.29 [Kbytes/sec] received

Connection Times (ms)
              min   avg   max
Connect:        0     3   19
Processing:   423   647 1016
Total:        423   650 1035</pre>
</blockquote>
<p>10）重新apache</p>
<p># apachectl restart</p>
<p>11）验证eAccelerator是否生效</p>
<p>在命令行下运行</p>
<p>#php -v</p>
<p>如果输出想如下的信息</p>
<pre>[root@www tmp]# php -v
PHP 5.1.6 (cli) (built: Jul 16 2008 19:53:00)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
[root@www tmp]#</pre>
<p>证明已经加载成功，且生效</p>
<p>12）重新使用ab命令测试一下网站效率，如下：</p>
<blockquote>
<pre>[root@www tmp]# ab -dkS -n100 -c100 http://localhost/phpinfo.php
This is ApacheBench, Version 2.0.40-dev &lt;$Revision: 1.146 $&gt; apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient).....done

Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

Document Path:          /phpinfo.php
Document Length:        51378 bytes

Concurrency Level:      100
Time taken for tests:   0.551591 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Keep-Alive requests:    0
Total transferred:      5151900 bytes
HTML transferred:       5137800 bytes
Requests per second:    181.29 [#/sec] (mean)
Time per request:       551.591 [ms] (mean)
Time per request:       5.516 [ms] (mean, across all concurrent requests)
Transfer rate:          9120.89 [Kbytes/sec] received

Connection Times (ms)
              min   avg   max
Connect:        0    12   16
Processing:    12   237  535
Total:         12   249  551
[root@www tmp]#</pre>
</blockquote>
<p>13)总结，从第9和第12的Time taken for tests:项目，可以看出，加载eAccelerator后效率提高了快1倍。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/install-php-eaccelerator-in-vps-hosting-120.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何使用putty远程登录vps主机</title>
		<link>http://vps.15099.net/2008/11/how-to-use-putty-remote-login-vps-hosting-109.html</link>
		<comments>http://vps.15099.net/2008/11/how-to-use-putty-remote-login-vps-hosting-109.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 15:11:20 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=109</guid>
		<description><![CDATA[购买我们的vps主机，在申请资料提交的邮箱里，我们会把相关开通资料发到你邮箱，其中就有一个hyper-vm 登录帐号，其中帐号的密码也是vps主机root的密码。
这里我假设您开通的vps主机的相关信息如下：
VPS主机IP：67.159.48.234
帐号：root
密码：vpstest99
下面我详细介绍使用通用的putty进行远程登录管理主机,首先下载putty软件，putty中文版本点击此下载,本地下载：putty_060cn ,下载后自行解压，双击putty.exe打开ssh客户端登录软件，如下图所示：
在上面截图中，
主机名称（或IP地址）：vps主机ip地址
端口：默认为22
保存的会话：我的 vps
然后单击保存按钮，这样主机名称那栏在下次登录的时候，可以直接双击“我的VPS”进行登录，最后如下图所示：
然后单击“打开”按钮，弹出如下窗口
在login as：处输入 root 后按回车，提示输入密码，输入相应的密码（注意输入密码不在屏幕上显示），这样就成功通过putty远程登录vps，可以远程安装软件，配置系统相关设置了。
]]></description>
			<content:encoded><![CDATA[<p>购买我们的vps主机，在申请资料提交的邮箱里，我们会把相关开通资料发到你邮箱，其中就有一个<a href="http://vps.15099.net/category/help-center/hyper-vm-manual" target="_blank">hyper-vm</a> 登录帐号，其中帐号的密码也是vps主机root的密码。</p>
<p>这里我假设您开通的vps主机的相关信息如下：</p>
<p>VPS主机IP：67.159.48.234</p>
<p>帐号：root</p>
<p>密码：vpstest99</p>
<p>下面我详细介绍使用通用的<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">putty</a>进行远程登录管理主机,首先下载putty软件，<a href="http://wrc.gro.clinux.org/putty/" target="_blank">putty中文版本</a>点击此下载,本地下载：<a href="http://vps.15099.net/wp-content/uploads/2008/11/putty_060cn.zip">putty_060cn</a> ,下载后自行解压，双击putty.exe打开ssh客户端登录软件，如下图所示：</p>
<div id="attachment_112" class="wp-caption alignnone" style="width: 466px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-putty-001.jpg"><img class="size-medium wp-image-112" title="vps-putty-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-putty-001.jpg" alt="使用putty登录vps图1" width="456" height="410" /></a><p class="wp-caption-text">使用putty登录vps图1</p></div>
<p>在上面截图中，</p>
<p><strong>主机名称（或IP地址）</strong>：vps主机ip地址</p>
<p><strong>端口</strong>：默认为22</p>
<p><strong>保存的会话</strong>：我的 vps</p>
<p>然后单击保存按钮，这样主机名称那栏在下次登录的时候，可以直接双击“我的VPS”进行登录，最后如下图所示：</p>
<div id="attachment_113" class="wp-caption alignnone" style="width: 466px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-putty-002.jpg"><img class="size-medium wp-image-113" title="vps-putty-002" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-putty-002.jpg" alt="使用putty登录vps图2" width="456" height="410" /></a><p class="wp-caption-text">使用putty登录vps图2</p></div>
<p>然后单击“打开”按钮，弹出如下窗口</p>
<div id="attachment_114" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-putty-003.jpg"><img class="size-medium wp-image-114" title="vps-putty-003" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-putty-003-600x187.jpg" alt="使用putty登录vps图3" width="600" height="187" /></a><p class="wp-caption-text">使用putty登录vps图3</p></div>
<p>在login as：处输入 root 后按回车，提示输入密码，输入相应的密码（注意输入密码不在屏幕上显示），这样就成功通过putty远程登录vps，可以远程安装软件，配置系统相关设置了。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/how-to-use-putty-remote-login-vps-hosting-109.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>如何查看vps主机磁盘容量</title>
		<link>http://vps.15099.net/2008/11/how-to-examine-vps-diskette-size-103.html</link>
		<comments>http://vps.15099.net/2008/11/how-to-examine-vps-diskette-size-103.html#comments</comments>
		<pubDate>Mon, 24 Nov 2008 15:54:19 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=103</guid>
		<description><![CDATA[使用SSH客户端登录vps，使用#free -m查看VPS内存大小，下面我查看我司vps特惠型磁盘如下图
从上面截图可以看到磁盘大小（Size)为1.0G,已经使用（Used）492M,还有（Avail）533M磁盘可用。
]]></description>
			<content:encoded><![CDATA[<p>使用SSH客户端登录vps，使用#free -m查看VPS内存大小，下面我查看我司<a href="http://vps.15099.net" target="_blank">vps特惠型</a>磁盘如下图</p>
<div id="attachment_104" class="wp-caption alignnone" style="width: 540px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-diskette-001.jpg"><img class="size-medium wp-image-104" title="vps-diskette-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-diskette-001.jpg" alt="vps磁盘大小" width="530" height="62" /></a><p class="wp-caption-text">vps磁盘大小</p></div>
<p>从上面截图可以看到磁盘大小（Size)为1.0G,已经使用（Used）492M,还有（Avail）533M磁盘可用。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/how-to-examine-vps-diskette-size-103.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vps控制面板菜单介绍</title>
		<link>http://vps.15099.net/2008/11/vps-control-panel-menu-introduce-92.html</link>
		<comments>http://vps.15099.net/2008/11/vps-control-panel-menu-introduce-92.html#comments</comments>
		<pubDate>Mon, 24 Nov 2008 13:14:50 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[Hypen VM使用手册]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=92</guid>
		<description><![CDATA[下面是控制面板菜单截图，含最左边的home(首页）和最右边的Tickits（联系单）Session（会话）Logout(退出）。
其中
点击最左边home（首页）是登录系统时候默认进入的画面，下图所示：
点击 Tickits（联系单）打开联系单页面，有两个选项卡，如下图所示为帮助书桌：
单击Add Ticket（添加联系单），如下图
点击Session（会话）,打开会话页面，此页面显示当前会话信息，如下图：
点击logout（退出）按钮，安全退出控制面板后台，会弹出如下图：
按确定安全退出系统
建议养成设置完都使用此按钮安全退出
]]></description>
			<content:encoded><![CDATA[<p>下面是控制面板菜单截图，含最左边的home(首页）和最右边的Tickits（联系单）Session（会话）Logout(退出）。<a href="#"></a></p>
<div id="attachment_87" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-menu.jpg"><img class="size-medium wp-image-87" title="vps-hypervm-enterprise-menu" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-menu-600x35.jpg" alt="vps-hypervm菜单" width="600" height="35" /></a><p class="wp-caption-text">vps-hypervm菜单</p></div>
<p>其中</p>
<p>点击最左边<strong>home（首页）</strong>是<a href="http://vps.15099.net/2008/11/how-to-login-vps-control-panel-67.html" target="_blank">登录系统</a>时候默认进入的画面，下图所示：</p>
<div id="attachment_73" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-main.jpg"><img class="size-medium wp-image-73" title="vps-hypervm-enterprise-main" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-main-600x296.jpg" alt="vps hypervm控制面板" width="600" height="296" /></a><p class="wp-caption-text">vps hypervm控制面板</p></div>
<p>点击 <strong>Tickits（联系单）</strong>打开联系单页面，有两个选项卡，如下图所示为帮助书桌：</p>
<div id="attachment_95" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-tickets.jpg"><img class="size-medium wp-image-95" title="vps-hypervm-enterprise-tickets" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-tickets-600x296.jpg" alt="vps-hypervm联系单图" width="600" height="296" /></a><p class="wp-caption-text">vps-hypervm联系单图--帮助书桌</p></div>
<p>单击<strong>Add Ticket（添加联系单）</strong>，如下图</p>
<div id="attachment_98" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-tickets-add.jpg"><img class="size-medium wp-image-98" title="vps-hypervm-enterprise-tickets-add" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-tickets-add-600x296.jpg" alt="vps-hypervm联系单--添加联系单图" width="600" height="296" /></a><p class="wp-caption-text">vps-hypervm联系单--添加联系单图</p></div>
<p>点击<strong>Session（会话）</strong>,打开会话页面，此页面显示当前会话信息，如下图：</p>
<div id="attachment_99" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/ihaixinvm-hypervm-enterprise-session.jpg"><img class="size-medium wp-image-99" title="ihaixinvm-hypervm-enterprise-session" src="http://vps.15099.net/wp-content/uploads/2008/11/ihaixinvm-hypervm-enterprise-session-600x296.jpg" alt="ihaixinvm-hypervm会话图" width="600" height="296" /></a><p class="wp-caption-text">ihaixinvm-hypervm会话图</p></div>
<p>点击<strong>logout（退出）</strong>按钮，安全退出控制面板后台，会弹出如下图：</p>
<div id="attachment_100" class="wp-caption alignnone" style="width: 260px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-logout.jpg"><img class="size-medium wp-image-100" title="vps-hypervm-enterprise-logout" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-logout.jpg" alt="vps-hypervm安全退出提示图" width="250" height="123" /></a><p class="wp-caption-text">vps-hypervm安全退出提示图</p></div>
<p>按确定安全退出系统</p>
<p>建议养成设置完都使用此按钮安全退出</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/vps-control-panel-menu-introduce-92.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hypervm面板介绍</title>
		<link>http://vps.15099.net/2008/11/hypervm-panel-introduce-72.html</link>
		<comments>http://vps.15099.net/2008/11/hypervm-panel-introduce-72.html#comments</comments>
		<pubDate>Mon, 24 Nov 2008 10:21:27 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[Hypen VM使用手册]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=72</guid>
		<description><![CDATA[登录VPS Hypervm控制 面板后，出现我们面前是如下截图：
从上面图可以看出，有三部分组成：
最上面是控面板菜单，含最左边的home(首页）和最右边的Tickits（联系单）Session（会话）Logout(退出），如下图所示，详细描述请查阅vps控制面板菜单介绍
左下边为Quick Actions（快捷菜单）和收藏栏，如下图所示：详细描述请查阅vps控制面板快捷菜单和收藏栏介绍
右下边为面板的主要功能设置区域，所有的设置基本都在此区域设置，如下图所示：详细描述请查阅vps控制面板主要功能区域介绍
]]></description>
			<content:encoded><![CDATA[<p>登录VPS Hypervm控制 面板后，出现我们面前是如下截图：</p>
<div id="attachment_73" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-main.jpg"><img class="size-medium wp-image-73" title="vps-hypervm-enterprise-main" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-main-600x296.jpg" alt="vps hypervm控制面板" width="600" height="296" /></a><p class="wp-caption-text">vps hypervm控制面板</p></div>
<p>从上面图可以看出，有三部分组成：</p>
<p>最上面是控面板菜单，含最左边的home(首页）和最右边的Tickits（联系单）Session（会话）Logout(退出），如下图所示，详细描述请查阅<a href="#">vps控制面板菜单介绍</a></p>
<div id="attachment_87" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-menu.jpg"><img class="size-medium wp-image-87" title="vps-hypervm-enterprise-menu" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-menu-600x35.jpg" alt="vps-hypervm菜单" width="600" height="35" /></a><p class="wp-caption-text">vps-hypervm菜单</p></div>
<p>左下边为Quick Actions（快捷菜单）和收藏栏，如下图所示：详细描述请查阅<a href="#">vps控制面板快捷菜单和收藏栏介绍</a></p>
<div id="attachment_88" class="wp-caption alignnone" style="width: 194px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-left.jpg"><img class="size-medium wp-image-88" title="vps-hypervm-enterprise-left" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-left-184x600.jpg" alt="vps-hypervm右下角快捷菜单与收藏栏" width="184" height="600" /></a><p class="wp-caption-text">vps-hypervm右下角快捷菜单与收藏栏</p></div>
<p>右下边为面板的主要功能设置区域，所有的设置基本都在此区域设置，如下图所示：详细描述请查阅<a href="#">vps控制面板主要功能区域介绍</a></p>
<div id="attachment_89" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-right-vmhyper.jpg"><img class="size-medium wp-image-89" title="vps-hypervm-enterprise-right-vmhyper" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-right-vmhyper-600x299.jpg" alt="vps-hypervm功能设置区域截图" width="600" height="299" /></a><p class="wp-caption-text">vps-hypervm功能设置区域截图</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/hypervm-panel-introduce-72.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用vps主机ssh帐号代理访问网络</title>
		<link>http://vps.15099.net/2008/11/use-vps-hosting-ssh-account-proxy-visit-network-75.html</link>
		<comments>http://vps.15099.net/2008/11/use-vps-hosting-ssh-account-proxy-visit-network-75.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 16:29:21 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPS其他应用]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=75</guid>
		<description><![CDATA[我们的主要业务是给客户提供稳定、经济的美国VPS。美国VPS的一大功能就是使用ssh翻墙代理访问网络，在国内连接上这些美国vps主机，就可以无限制访问互联网，拥有美国IP所享受的一切权利。这篇文章详细描写如何使用我们的VPS主机代理访问网络。
假设
VPS主机IP：67.159.48.234
帐号：vpntest
密码：vpstest99
建议使用useradd新建一个普通权限的帐号用户ssh代理访问网络
一、首先配置SSH Tunnel通道：
下载MyEnTunnel中文版 本地下载：myentunnel-中文版  下载后解压，进入解压文件夹，双击myentunnel.exe，打开如下图：

SSH 服务器：就是你的 SSH 服务器的地址，这里输入：67.159.48.234
SSH 端口：ssh服务器的端口，一般都是 22；
用户名称：vpntest；
用户密码：vpntest99
选中 失败时重新连接，启用动态套接字；两个复选框
Port：填上你本地代理的端口，如 7070；

然后点击 保存，在点击 连接 就可以了，等待任务栏中的小锁变成绿色，说明我们成功建立了一条 SSH Tunnel，并在 localhost:7070 上开启了一个 Socks 服务器。
二、然后配置游览器设置：
1、IE游览器设置：
点击菜单栏&#8211;》工具&#8211;》Internet选项（0）打开Internet选项窗口，单击连接选项卡，点击局域网设置（L）打开局域网设置窗口，在代理服务器，为LAN使用代理服务器（这些设置不会应用于拨号或VPN连接）勾选，点击高级，打开如下图：
在套接字地址输入：127.0.0.1 端口输入：7070
2、Firefox设置：
点击菜单栏 工具&#8211;》选项&#8211;》高级选项卡&#8211;》网络子选项，单击连接旁边的设置&#8230;按钮，打开连接设置对话框，如下图：
选择手动配置代理，在SOCKS主机输入：127.0.0.1端口输入：7070 然后按确认
设置游览器后，记得关闭这个游览器，重新启动游览器，输入http://www.138.com，看显示的ip地址是否为 vps主机的ip地址。
经过上面两个步骤，就可以通过ssh帐号无限制访问国外的网站（就不怕自己想要的资料被GFW屏蔽了:)-)
为了让客户在付款之前就能体验美国SSH代理的性能，我们决定提供免费的美国SSH代理试用，想体验一下朋友，请按下列格式提交申请：
姓名：张三
电话：020-88888888
邮箱：你的常用邮箱,（我们通过此邮箱发送测试帐号信息，请及时查收)
]]></description>
			<content:encoded><![CDATA[<p>我们的主要业务是给客户提供稳定、经济的美国VPS。美国VPS的一大功能就是使用ssh翻墙代理访问网络，在国内连接上这些美国vps主机，就可以无限制访问互联网，拥有美国IP所享受的一切权利。这篇文章详细描写如何使用我们的VPS主机代理访问网络。</p>
<p>假设</p>
<p>VPS主机IP：67.159.48.234</p>
<p>帐号：vpntest</p>
<p>密码：vpstest99</p>
<p>建议使用useradd新建一个普通权限的帐号用户ssh代理访问网络</p>
<p>一、首先配置SSH Tunnel通道：</p>
<p>下载<strong>MyEnTunnel中文版</strong> 本地下载：<a href="http://vps.15099.net/wp-content/uploads/2008/11/myentunnel-unicode.zip">myentunnel-中文版 </a> 下载后解压，进入解压文件夹，双击myentunnel.exe，打开如下图：</p>
<div id="attachment_77" class="wp-caption alignnone" style="width: 484px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-ssh-proxy-001.jpg"><img class="size-medium wp-image-77" title="vps-ssh-proxy-001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-ssh-proxy-001.jpg" alt="vps-ssh-proxy图1" width="474" height="296" /></a><p class="wp-caption-text">vps-ssh-proxy图1</p></div>
<ul>
<li><strong>SSH 服务器：</strong>就是你的 SSH 服务器的地址，这里输入：67.159.48.234</li>
<li><strong>SSH 端口：</strong>ssh服务器的端口，一般都是 22；</li>
<li>用户名称：vpntest；</li>
<li>用户密码：vpntest99</li>
<li>选中 <strong>失败时重新连接</strong>，<strong>启用动态套接字</strong>；两个复选框</li>
<li><strong>Port：</strong>填上你本地代理的端口，如 7070；</li>
</ul>
<p>然后点击 <strong>保存</strong>，在点击 <strong>连接</strong> 就可以了，等待任务栏中的小锁变成绿色，说明我们成功建立了一条 SSH Tunnel，并在 localhost:7070 上开启了一个 Socks 服务器。</p>
<p>二、然后配置游览器设置：</p>
<p>1、IE游览器设置：</p>
<p>点击菜单栏&#8211;》工具&#8211;》Internet选项（0）打开Internet选项窗口，单击连接选项卡，点击局域网设置（L）打开局域网设置窗口，在代理服务器，为LAN使用代理服务器（这些设置不会应用于拨号或VPN连接）<strong>勾选</strong>，点击高级，打开如下图：</p>
<div id="attachment_78" class="wp-caption alignnone" style="width: 406px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-ssh-proxy-002.jpg"><img class="size-medium wp-image-78" title="vps-ssh-proxy-002" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-ssh-proxy-002.jpg" alt="vps-ssh-proxy图2" width="396" height="401" /></a><p class="wp-caption-text">vps-ssh-proxy图2</p></div>
<p>在套接字地址输入：127.0.0.1 端口输入：7070</p>
<p>2、Firefox设置：</p>
<p>点击菜单栏 工具&#8211;》选项&#8211;》高级选项卡&#8211;》网络子选项，单击连接旁边的设置&#8230;按钮，打开连接设置对话框，如下图：</p>
<div id="attachment_79" class="wp-caption alignnone" style="width: 459px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-ssh-proxy-003.jpg"><img class="size-medium wp-image-79" title="vps-ssh-proxy-003" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-ssh-proxy-003.jpg" alt="vps-ssh-proxy图3" width="449" height="458" /></a><p class="wp-caption-text">vps-ssh-proxy图3</p></div>
<p>选择手动配置代理，在SOCKS主机输入：127.0.0.1端口输入：7070 然后按确认</p>
<p>设置游览器后，记得关闭这个游览器，重新启动游览器，输入http://www.138.com，看显示的ip地址是否为 vps主机的ip地址。</p>
<p>经过上面两个步骤，就可以通过ssh帐号无限制访问国外的网站（就不怕自己想要的资料被GFW屏蔽了:)-)</p>
<p>为了让客户在付款之前就能体验美国SSH代理的性能，我们决定提供免费的美国SSH代理试用，想体验一下朋友，请按下列格式提交申请：</p>
<blockquote><p>姓名：张三</p>
<p>电话：020-88888888</p>
<p>邮箱：你的常用邮箱,（我们通过此邮箱发送测试帐号信息，请及时查收)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/use-vps-hosting-ssh-account-proxy-visit-network-75.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>如何登录vps控制面板</title>
		<link>http://vps.15099.net/2008/11/how-to-login-vps-control-panel-67.html</link>
		<comments>http://vps.15099.net/2008/11/how-to-login-vps-control-panel-67.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 14:09:17 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[Hypen VM使用手册]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=67</guid>
		<description><![CDATA[我们提供的vps主机，是使用全球广泛应用的Hypervm控制面板，通过此面板可以自由开启，关闭，重启VPS主机，Hypervm控制面板登录地址：https://control.15099.net:8887/ 打开此页面如下所示：
购买我们的VPS主机，我们会给您在申请vps提交的资料里的邮箱发送开通的帐号和密码，请使用此帐号和密码登录Hypervm。
]]></description>
			<content:encoded><![CDATA[<p>我们提供的vps主机，是使用全球广泛应用的Hypervm控制面板，通过此面板可以自由开启，关闭，重启VPS主机，Hypervm控制面板登录地址：<a href="https://control.15099.net:8887/">https://control.15099.net:8887/</a> 打开此页面如下所示：</p>
<div id="attachment_68" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-login.jpg"><img class="size-medium wp-image-68" title="vps-hypervm-enterprise-login" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-hypervm-enterprise-login-600x183.jpg" alt="vps-hypervm登录页面" width="600" height="183" /></a><p class="wp-caption-text">vps-hypervm登录页面</p></div>
<p>购买我们的VPS主机，我们会给您在申请vps提交的资料里的邮箱发送开通的帐号和密码，请使用此帐号和密码登录Hypervm。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/how-to-login-vps-control-panel-67.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>图解在VPS系统上安装wordpress博客系统</title>
		<link>http://vps.15099.net/2008/11/illustrate-in-vps-system-install-wordpress-blog-54.html</link>
		<comments>http://vps.15099.net/2008/11/illustrate-in-vps-system-install-wordpress-blog-54.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 13:40:53 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[VPSweb应用]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=54</guid>
		<description><![CDATA[前提配置假设如下：
博客安装在/var/www/html/vps.15099.net目录下，同时此目录绑定vps.15099.net，关于在vps配置虚拟主机请点击此
下面是详细安装步骤
进入预安装系统目录
# cd /var/www/html/vps.15099.net
下载最新的wordpress中文程序，本地下载：wordpress263chstar 中文程序各版本下载地址 http://code.google.com/p/wordpresschina/downloads/list

# wget http://wordpresschina.googlecode.com/files/wordpress.263.chs.tar.gz
解压刚才下载的文件
# tar zxvf wordpress.263.chs.tar.gz
删除刚才下载的压缩文件，节约磁盘空间
# rm -rf wordpress.263.chs.tar.gz
把刚才解压生成的wordpress文件夹内容移动到vps.15099.net目录下
# mv wordpress/* ./
修改根目录vps.15099.net的目录权限
#chmod 777 /var/www/html/vps.15099.net
在游览器地址栏输入：http://vps.15099.net,打开如下页面
然后按我们开始吧，打开第二个安装页面
输入欲安装wordpress程序建立的数据库相关资料，按提交，进入下一个页面
按运行安装程序，进入下一个页面
输入您的博客名称和email地址，然后按安装WordPress，进入下一个页面
提示博客系统已经安装成功，现在安装后的管理员的用户名和密码，请记得那笔记下来，等一下登录需要用到此信息，然后按登录进入下一个页面
输入刚才记下来的用户名和密码，按登录就可以进入博客系统后台了，如下图所示
此页面为系统后台，你也可以输入你的域名看一下前台显示，如下图所示
看到此页面，证明整个安装步骤已经完成，恭喜您，现在可以使用wordpress这款强大的博客系统写日志了:)-
]]></description>
			<content:encoded><![CDATA[<p>前提配置假设如下：</p>
<p>博客安装在/var/www/html/vps.15099.net目录下，同时此目录绑定vps.15099.net，关于在vps配置虚拟主机<a href="#">请点击此</a></p>
<p>下面是详细安装步骤</p>
<p>进入预安装系统目录</p>
<p># cd /var/www/html/vps.15099.net</p>
<p>下载最新的wordpress中文程序，本地下载：<a href="http://vps.15099.net/wp-content/uploads/2008/11/wordpress263chstar.gz">wordpress263chstar</a> 中文程序各版本下载地址 <a href="http://code.google.com/p/wordpresschina/downloads/list" target="_blank">http://code.google.com/p/wordpresschina/downloads/list<br />
</a></p>
<p># wget http://wordpresschina.googlecode.com/files/wordpress.263.chs.tar.gz</p>
<p>解压刚才下载的文件</p>
<p># tar zxvf wordpress.263.chs.tar.gz</p>
<p>删除刚才下载的压缩文件，节约磁盘空间</p>
<p># rm -rf wordpress.263.chs.tar.gz</p>
<p>把刚才解压生成的wordpress文件夹内容移动到vps.15099.net目录下</p>
<p># mv wordpress/* ./</p>
<p>修改根目录vps.15099.net的目录权限</p>
<p>#chmod 777 /var/www/html/vps.15099.net</p>
<p>在游览器地址栏输入：http://vps.15099.net,打开如下页面</p>
<div id="attachment_55" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install001.jpg"><img class="size-medium wp-image-55" title="vps-wordpress-install001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install001-600x340.jpg" alt="在VPS上wordpress安装图1" width="600" height="340" /></a><p class="wp-caption-text">在VPS安装上wordpress图1</p></div>
<p>然后按我们开始吧，打开第二个安装页面</p>
<div id="attachment_56" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install002.jpg"><img class="size-medium wp-image-56" title="vps-wordpress-install002" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install002-600x406.jpg" alt="在VPS安装wordpress图2" width="600" height="406" /></a><p class="wp-caption-text">在VPS安装wordpress图2</p></div>
<p>输入欲安装wordpress程序建立的数据库相关资料，按提交，进入下一个页面</p>
<div id="attachment_57" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install003.jpg"><img class="size-medium wp-image-57" title="vps-wordpress-install003" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install003-600x166.jpg" alt="在VPS安装wordpress图3" width="600" height="166" /></a><p class="wp-caption-text">在VPS安装wordpress图3</p></div>
<p>按运行安装程序，进入下一个页面</p>
<div id="attachment_58" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install004.jpg"><img class="size-medium wp-image-58" title="vps-wordpress-install004" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install004-600x441.jpg" alt="在VPS安装wordpress图4" width="600" height="441" /></a><p class="wp-caption-text">在VPS安装wordpress图4</p></div>
<p>输入您的博客名称和email地址，然后按安装WordPress，进入下一个页面</p>
<div id="attachment_59" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install005.jpg"><img class="size-medium wp-image-59" title="vps-wordpress-install005" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install005-600x311.jpg" alt="在VPS安装wordpress图5" width="600" height="311" /></a><p class="wp-caption-text">在VPS安装wordpress图5</p></div>
<p>提示博客系统已经安装成功，现在安装后的管理员的用户名和密码，<strong>请记得那笔记下来</strong>，等一下登录需要用到此信息，然后按登录进入下一个页面</p>
<div id="attachment_60" class="wp-caption alignnone" style="width: 585px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install006.jpg"><img class="size-medium wp-image-60" title="vps-wordpress-install006" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install006.jpg" alt="在VPS安装wordpress图6" width="575" height="352" /></a><p class="wp-caption-text">在VPS安装wordpress图6</p></div>
<p>输入刚才记下来的用户名和密码，按登录就可以进入博客系统后台了，如下图所示</p>
<div id="attachment_61" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install007.jpg"><img class="size-medium wp-image-61" title="vps-wordpress-install007" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install007-600x275.jpg" alt="在VPS安装wordpress图7" width="600" height="275" /></a><p class="wp-caption-text">在VPS安装wordpress图7</p></div>
<p>此页面为系统后台，你也可以输入你的域名看一下前台显示，如下图所示</p>
<div id="attachment_62" class="wp-caption alignnone" style="width: 610px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install008.jpg"><img class="size-medium wp-image-62" title="vps-wordpress-install008" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-wordpress-install008-600x446.jpg" alt="在VPS安装wordpress图8" width="600" height="446" /></a><p class="wp-caption-text">在VPS安装wordpress图8</p></div>
<p>看到此页面，证明整个安装步骤已经完成，恭喜您，现在可以使用wordpress这款强大的博客系统写日志了:)-</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/illustrate-in-vps-system-install-wordpress-blog-54.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何查看vps主机内存</title>
		<link>http://vps.15099.net/2008/11/how-to-examine-vps-memory-size-43.html</link>
		<comments>http://vps.15099.net/2008/11/how-to-examine-vps-memory-size-43.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 16:46:44 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=43</guid>
		<description><![CDATA[使用SSH客户端登录vps，使用#free -m查看VPS内存大小，如下图



查看VPS内存大小

上图查看的是我们的特惠VPS内存大小
]]></description>
			<content:encoded><![CDATA[<p>使用SSH客户端登录vps，使用#free -m查看VPS内存大小，如下图</p>
<div class="mceTemp">
<dl id="attachment_45" class="wp-caption alignnone" style="width: 604px;">
<dt class="wp-caption-dt"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-mem001.jpg"><img class="size-medium wp-image-45" title="vps-mem001" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-mem001.jpg" alt="查看VPS内存大小" width="594" height="98" /></a></dt>
<dd class="wp-caption-dd">查看VPS内存大小</dd>
</dl>
<p>上图查看的是我们的特惠VPS内存大小</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/how-to-examine-vps-memory-size-43.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何查看VPS CPU型号</title>
		<link>http://vps.15099.net/2008/11/how-to-examine-vps-cpu-model-38.html</link>
		<comments>http://vps.15099.net/2008/11/how-to-examine-vps-cpu-model-38.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 16:31:04 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售后问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=38</guid>
		<description><![CDATA[使用SSH客户端登录vps，使用#cat /proc/cpuinfo查看CPU相关信息，如下图：
上面红色方框里就是CPU型号,
]]></description>
			<content:encoded><![CDATA[<p>使用SSH客户端登录vps，使用#cat /proc/cpuinfo查看CPU相关信息，如下图：</p>
<div id="attachment_39" class="wp-caption alignnone" style="width: 310px"><a href="http://vps.15099.net/wp-content/uploads/2008/11/vps-cpu001.jpg"><img class="size-medium wp-image-39" title="查看vps CPU型号" src="http://vps.15099.net/wp-content/uploads/2008/11/vps-cpu001-300x207.jpg" alt="查看vps CPU型号" width="300" height="207" /></a><p class="wp-caption-text">查看vps CPU型号</p></div>
<p>上面红色方框里就是CPU型号,</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/how-to-examine-vps-cpu-model-38.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何付款?</title>
		<link>http://vps.15099.net/2008/11/how-tp-payment-28.html</link>
		<comments>http://vps.15099.net/2008/11/how-tp-payment-28.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 15:04:32 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[常见问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=28</guid>
		<description><![CDATA[您可以通过如下方式中的任一种支付：
支付宝
网上银行汇款
银行柜台汇款
支付宝帐号：taobao@15099.net
银行帐号：



::汇款方法::


&#8211; 建设银行 &#8211;
收款人：
李海鑫


注：汇入城市填写广州，不需写广东
开户银行：
广州市五羊新城支行


卡号：
4367 4233 2426 0398 435


&#8211; 工商银行 &#8211;
收款人：
李海鑫


使用工行现金汇款或是转帐，请必须同时填写完整的收款人和卡号。
开户银行：
工商银行广州分行东兴支行


卡号：
9558 8236 0200 2400766


&#8211; 招商银行 &#8211;
收款人：
李海鑫


开户银行：
广州花城支行


银行帐号：
6225 8820 0512 9769




汇款后您可以通过以下方式联系我们，便于我们及时开通
联系在线客服 QQ: 15050999(上午9:00-下午6:00) 联系电话: 15302271619(上午9:00-下午6:00)
请您务必提交以下信息，以便节约您的宝贵时间！
会员中心帐号（在我们这里注册的邮箱地址）
汇入我们哪个银行？
汇款具体时间？（精确到分）
汇款流水号？
汇款金额？
或者您也可以直接将您的汇款底单发给我们的客服人员
]]></description>
			<content:encoded><![CDATA[<p>您可以通过如下方式中的任一种支付：<br />
支付宝<br />
网上银行汇款<br />
银行柜台汇款<br />
支付宝帐号：taobao@15099.net<br />
银行帐号：</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr bgcolor="#f1f2f3">
<td colspan="3" height="25" align="center">::汇款方法::</td>
</tr>
<tr bgcolor="#ffffff">
<td width="150" height="25" align="center" bgcolor="#ffffff">&#8211; 建设银行 &#8211;</td>
<td width="80" height="25" align="right" bgcolor="#faf9f9">收款人：</td>
<td width="109" height="25" align="left" bgcolor="#ffffff">李海鑫</td>
</tr>
<tr bgcolor="#ffffff">
<td rowspan="2" width="150" align="left" bgcolor="#ffffff">注：汇入城市填写广州，不需写广东</td>
<td width="80" height="25" align="right" bgcolor="#faf9f9">开户银行：</td>
<td height="25" align="left" bgcolor="#ffffff">广州市五羊新城支行</td>
</tr>
<tr bgcolor="#ffffff">
<td width="80" height="25" align="right" bgcolor="#faf9f9">卡号：</td>
<td height="25" align="left" bgcolor="#ffffff">4367 4233 2426 0398 435</td>
</tr>
<tr bgcolor="#ffffff">
<td width="150" height="25" align="center" bgcolor="#ffffff">&#8211; 工商银行 &#8211;</td>
<td width="80" height="25" align="right" bgcolor="#faf9f9">收款人：</td>
<td height="25" align="left" bgcolor="#ffffff">李海鑫</td>
</tr>
<tr bgcolor="#ffffff">
<td rowspan="2" width="150" align="left" bgcolor="#ffffff">使用工行现金汇款或是转帐，请必须同时填写完整的收款人和卡号。</td>
<td width="80" height="25" align="right" bgcolor="#faf9f9">开户银行：</td>
<td height="25" align="left" bgcolor="#ffffff">工商银行广州分行东兴支行</td>
</tr>
<tr bgcolor="#ffffff">
<td width="80" height="25" align="right" bgcolor="#faf9f9">卡号：</td>
<td height="25" align="left" bgcolor="#ffffff">9558 8236 0200 2400766</td>
</tr>
<tr bgcolor="#ffffff">
<td rowspan="3" width="150" align="center" bgcolor="#ffffff">&#8211; 招商银行 &#8211;</td>
<td width="80" height="25" align="right" bgcolor="#faf9f9">收款人：</td>
<td height="25" align="left" bgcolor="#ffffff">李海鑫</td>
</tr>
<tr bgcolor="#ffffff">
<td width="80" height="25" align="right" bgcolor="#faf9f9">开户银行：</td>
<td height="25" align="left" bgcolor="#ffffff">广州花城支行</td>
</tr>
<tr bgcolor="#ffffff">
<td width="80" height="25" align="right" bgcolor="#faf9f9">银行帐号：</td>
<td height="25" align="left" bgcolor="#ffffff">6225 8820 0512 9769</td>
</tr>
</tbody>
</table>
<hr />
汇款后您可以通过以下方式联系我们，便于我们及时开通<br />
联系在线客服 QQ: 15050999(上午9:00-下午6:00) 联系电话: 15302271619(上午9:00-下午6:00)</p>
<p>请您务必提交以下信息，以便节约您的宝贵时间！</p>
<blockquote><p>会员中心帐号（在我们这里注册的邮箱地址）<br />
汇入我们哪个银行？<br />
汇款具体时间？（精确到分）<br />
汇款流水号？<br />
汇款金额？</p></blockquote>
<p>或者您也可以直接将您的汇款底单发给我们的客服人员</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/how-tp-payment-28.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如果购买我们的VPS主机</title>
		<link>http://vps.15099.net/2008/11/how-to-buy-vps-hosting-23.html</link>
		<comments>http://vps.15099.net/2008/11/how-to-buy-vps-hosting-23.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 14:43:28 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[常见问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=23</guid>
		<description><![CDATA[感谢您对我们的支持，购买我们的VPS主机非常简便，只要在此页面留言处，按下列格式提交申请信息，提交后请及时汇款给我，建议大家使用支付宝付款，关于各种付款方式请查看此
申请格式范例：
联系人：张三
公司名称：张三有限公司
地址：广州市天河区XXX路XX号
邮编：xxxxxx
电话：020-88888888
即时通讯：qq/msn/gtalk等帐号
VPS主机型号：特惠型/实用型/豪华型
邮箱：你常用的邮箱，很重要！是我们主要的沟通方式，VPS开通后相关的资料将发送此邮箱
]]></description>
			<content:encoded><![CDATA[<p>感谢您对我们的支持，购买我们的VPS主机非常简便，只要在此页面留言处，按下列格式提交申请信息，提交后请及时汇款给我，建议大家使用支付宝付款，关于各种付款方式<a href="http://vps.15099.net/2008/11/how-tp-payment-28.html">请查看此</a></p>
<p>申请格式范例：</p>
<blockquote><p>联系人：张三<br />
公司名称：张三有限公司<br />
地址：广州市天河区XXX路XX号<br />
邮编：xxxxxx<br />
电话：020-88888888<br />
即时通讯：qq/msn/gtalk等帐号<br />
VPS主机型号：特惠型/实用型/豪华型<br />
邮箱：你常用的邮箱，很重要！是我们主要的沟通方式，VPS开通后相关的资料将发送此邮箱</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/how-to-buy-vps-hosting-23.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>流量是什么概念？</title>
		<link>http://vps.15099.net/2008/11/what-is-the-network-traffic-19.html</link>
		<comments>http://vps.15099.net/2008/11/what-is-the-network-traffic-19.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 14:27:24 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售前问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=19</guid>
		<description><![CDATA[这里所指的流量是指月流量：就是一个月您的VPS被访客下载的流量！比如您的网站只有一个页面，有100KB大小，那么有一个访客访问了您的页面一次，就是使用了 100KB的流量！如果每天有1024个人访问，那么就是使用了100*1024=100M的流量！那么再乘以30天，就是3000M的流量！不到3G的流量
我们提供的特惠性流量为每月75G，是3G的25倍，按一个页面100KB算，日访问页面需达到2.56万，完全可以满足各中小企业网站的需要。
]]></description>
			<content:encoded><![CDATA[<p>这里所指的流量是指月流量：就是一个月您的VPS被访客下载的流量！比如您的网站只有一个页面，有100KB大小，那么有一个访客访问了您的页面一次，就是使用了 100KB的流量！如果每天有1024个人访问，那么就是使用了100*1024=100M的流量！那么再乘以30天，就是3000M的流量！不到3G的流量</p>
<p>我们提供的特惠性流量为每月75G，是3G的25倍，按一个页面100KB算，日访问页面需达到2.56万，完全可以满足各中小企业网站的需要。</p>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/what-is-the-network-traffic-19.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vps支持那些操作系统?</title>
		<link>http://vps.15099.net/2008/11/vps-support-those-os-13.html</link>
		<comments>http://vps.15099.net/2008/11/vps-support-those-os-13.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 14:11:42 +0000</pubDate>
		<dc:creator>vps主机租用</dc:creator>
				<category><![CDATA[售前问题]]></category>

		<guid isPermaLink="false">http://vps.15099.net/?p=13</guid>
		<description><![CDATA[我们提供的VPS支持市面大多数linux系统，如 CentOS Ubuntu Fedora Debian Gentoo OpenSuSE都支持,各系统安装后的大小请查看下面表格



系统
系统模板
占用硬盘空间


centos
centos-5-i386-afull
304.28MB


cern
cern-4-x86_64-minimal
135.65MB


debian
debian-4.0-i386-minimal
134.91MB


fedora
fedora-9-i386-default
427.88MB


fedora-core-5-i386-afull
319.8MB


fedora-core-6-i686-default
415.64MB


fedora-core-7-ut
445.63MB


gentoo
gentoo-20060317-i686-stage3
317.3MB


gentoo-openvz-i686-2008.08.26
384.61MB


opensuse
opensuse-10-i386-default
282.33MB


ubuntu
ubuntu-6.06-i386-minimal
155.74MB


ubuntu-8.04-i386-minimal
121.18MB



]]></description>
			<content:encoded><![CDATA[<p>我们提供的VPS支持市面大多数linux系统，如 <a href="http://www.centos.org">CentOS</a> <a href="http://www.ubuntu.com/">Ubuntu</a> <a href="http://fedoraproject.org/">Fedora</a> <a href="http://www.debian.org/">Debian</a> <a href="http://www.gentoo.org/">Gentoo</a> <a href="http://www.opensuse.org/">OpenSuSE</a>都支持,各系统安装后的大小请查看下面表格</p>
<table border="1" width="400">
<tbody>
<tr>
<td>系统</td>
<td>系统模板</td>
<td>占用硬盘空间</td>
</tr>
<tr>
<td>centos</td>
<td>centos-5-i386-afull</td>
<td>304.28MB</td>
</tr>
<tr>
<td>cern</td>
<td>cern-4-x86_64-minimal</td>
<td>135.65MB</td>
</tr>
<tr>
<td>debian</td>
<td>debian-4.0-i386-minimal</td>
<td>134.91MB</td>
</tr>
<tr>
<td rowspan="4">fedora</td>
<td>fedora-9-i386-default</td>
<td>427.88MB</td>
</tr>
<tr>
<td>fedora-core-5-i386-afull</td>
<td>319.8MB</td>
</tr>
<tr>
<td>fedora-core-6-i686-default</td>
<td>415.64MB</td>
</tr>
<tr>
<td>fedora-core-7-ut</td>
<td>445.63MB</td>
</tr>
<tr>
<td rowspan="2">gentoo</td>
<td>gentoo-20060317-i686-stage3</td>
<td>317.3MB</td>
</tr>
<tr>
<td>gentoo-openvz-i686-2008.08.26</td>
<td>384.61MB</td>
</tr>
<tr>
<td>opensuse</td>
<td>opensuse-10-i386-default</td>
<td>282.33MB</td>
</tr>
<tr>
<td rowspan="2">ubuntu</td>
<td>ubuntu-6.06-i386-minimal</td>
<td>155.74MB</td>
</tr>
<tr>
<td>ubuntu-8.04-i386-minimal</td>
<td>121.18MB</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://vps.15099.net/2008/11/vps-support-those-os-13.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
