<?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>fish的航海日志 &#187; mediatemple</title>
	<atom:link href="http://blog.v2op.com/tag/mediatemple/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.v2op.com</link>
	<description>海到无边天做岸,山登绝顶我为峰</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:30:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>让mediatemple服务器ftp支持断点续传</title>
		<link>http://blog.v2op.com/2009/04/resume-of-proftpd-at-mediatemple/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=resume-of-proftpd-at-mediatemple</link>
		<comments>http://blog.v2op.com/2009/04/resume-of-proftpd-at-mediatemple/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 08:47:20 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mediatemple]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=342</guid>
		<description><![CDATA[(mt) 的 dv 使用 proftpd 作为 ftp 服务，默认配置不支持断点续传。需要我们手动修改一下配置文件 [root@v2op ~]# vi /etc/proftpd.conf 在 &#60;Global&#62; &#60;/Global&#62; 间加上2行： AllowRetrieveRestart    on AllowStoreRestart       on 保存，重启 proftpd 即可。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">优化mediatemple (dv)，降低100M内存占用，提高5倍访问速度！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Ftips-for-mail-server-setting%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">邮件服务器设置要点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2007%2F12%2Fue%25E6%259E%25B6%25E6%259E%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E4%25BC%2581%25E4%25B8%259A%25E6%2596%2587%25E5%258C%2596%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25E6%259E%25B6%25E8%25AE%25BE%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">UE+架构设计+企业文化+服务器架设</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Frogge-town%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">罗格镇，开始与结束的城镇</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mediatemple.net/">(mt)</a> 的 dv 使用 <a href="http://www.proftpd.org/" target="_blank">proftpd</a> 作为 ftp 服务，默认配置不支持断点续传。需要我们手动修改一下配置文件</p>
<p>[root@v2op ~]# vi /etc/proftpd.conf</p>
<p>在 &lt;Global&gt; &lt;/Global&gt; 间加上2行：</p>
<p>AllowRetrieveRestart    on<br />
AllowStoreRestart       on</p>
<p>保存，重启 proftpd 即可。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">优化mediatemple (dv)，降低100M内存占用，提高5倍访问速度！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Ftips-for-mail-server-setting%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">邮件服务器设置要点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2007%2F12%2Fue%25E6%259E%25B6%25E6%259E%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E4%25BC%2581%25E4%25B8%259A%25E6%2596%2587%25E5%258C%2596%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25E6%259E%25B6%25E8%25AE%25BE%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">UE+架构设计+企业文化+服务器架设</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Frogge-town%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">罗格镇，开始与结束的城镇</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.v2op.com/2009/04/resume-of-proftpd-at-mediatemple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>优化mediatemple (dv)，降低100M内存占用，提高5倍访问速度！</title>
		<link>http://blog.v2op.com/2009/04/optimizing-mediatemple-dv-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=optimizing-mediatemple-dv-server</link>
		<comments>http://blog.v2op.com/2009/04/optimizing-mediatemple-dv-server/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 10:26:44 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mediatemple]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[性能]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=328</guid>
		<description><![CDATA[4月1日租了(mt)的(dv) BASE，尽管租之前已经做好了牺牲速度换取自由、稳定性的打算，但2天用下来，速度大大低于我的预期，非常不满意！！于是开始了折腾，要折腾明白它为什么那么慢.. 首先，排除法。访问了几个不同朋友的(mt)(dv)，速度暴快！页面几乎一点就开。说明我网速不慢，同样也说明，正常情况下国外服务器的访问速度也是可以足够快的。 那么，是不是服务器负载的问题呢？不太可能。才刚租下哇，仅绑了几个站点，而且都没什么访问量（约100 IP/天/站）。朋友的(dv)都是20人合租，且访问量起码是我的10倍。从服务器的uptime来看，load average也是低的可怜，接近0，从带宽占用来看，也很少很少（应该不存在mp3、图片等被盗链的情况）。 那为何这么慢呢？？用HttpWatch监测。一次访问耗时40秒左右，DNS Lookup、Connect、Send、Receive阶段都很快（3-5秒），其他时间都卡在Wait阶段。看来，慢的主要原因在服务器对请求的响应上。第一感觉就是内存不够用。（早就耳闻(dv)Base的内存让人捉襟见肘（仅256M），只是没想到这么快&#8230;）。 在Plesk控制面板中，看见系统总内存（total）673.34MB，使用了（Used） 410.39MB，剩余（free）262.95MB。有点高。尝试把内存降下来，看看能否提高响应速度。 （注：我没弄明白总内存为何是673.34MB，哪位能告诉我答案？thanks） &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 下面正式开工 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 一：关掉不需要的服务 (dv)默认开启了 SMTP服务器(QMail)、IMAP/POP3 服务器 (Courier-IMAP)、DNS 服务器 (BIND)、SpamAssassin，这些对我来说都没用，完全可以禁掉。以下操作均需要以root账号登陆（推荐使用putty）。 1、禁用DNS服务 /etc/init.d/named stop chmod 644 /etc/init.d/named 也可以下面这句禁掉它 /usr/local/mt/bin/mib &#8211;disablenamed &#8211;apply 如果以后需要用，用下面这句启动它 /usr/local/mt/bin/mib &#8211;enablenamed &#8211;apply 注：效果非常明显！大约可以释出50M内存，执行完这步之后已经明显可以感觉到服务器响应快了很多。 2、禁用SpamAssassin /etc/init.d/psa-spamassassin stop chmod &#8230; <a href="http://blog.v2op.com/2009/04/optimizing-mediatemple-dv-server/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="让mediatemple服务器ftp支持断点续传" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">让mediatemple服务器ftp支持断点续传</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WOW! mt(dv)内存免费提升一倍！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F06%2Fwow-mtdv%25E5%2586%2585%25E5%25AD%2598%25E5%2585%258D%25E8%25B4%25B9%25E6%258F%2590%25E5%258D%2587%25E4%25B8%2580%25E5%2580%258D%25EF%25BC%2581%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669805.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WOW! mt(dv)内存免费提升一倍！</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="I’m back! 深圳&lt;=&gt;重庆" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F07%2Fim-back-%25E6%25B7%25B1%25E5%259C%25B3%25E9%2587%258D%25E5%25BA%2586%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669711.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">I’m back! 深圳&lt;=&gt;重庆</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="如何提高邮件的打开率？从邮件主题入手！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fa-good-email-marketing-subject-help-to-improve-open-rates%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何提高邮件的打开率？从邮件主题入手！</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.v2op.com/2009/04/rogge-town/">4月1日租了(mt)的(dv) BASE</a>，尽管租之前已经做好了牺牲速度换取自由、稳定性的打算，但2天用下来，速度大大低于我的预期，非常不满意！！于是开始了折腾，要折腾明白它为什么那么慢..</p>
<p>首先，排除法。访问了几个不同朋友的(mt)(dv)，速度<strong>暴快</strong>！页面几乎一点就开。说明我网速不慢，同样也说明，正常情况下国外服务器的访问速度也是可以足够快的。</p>
<p>那么，是不是服务器负载的问题呢？不太可能。才刚租下哇，仅绑了几个站点，而且都没什么访问量（约100 IP/天/站）。朋友的(dv)都是20人合租，且访问量起码是我的10倍。从服务器的uptime来看，load average也是低的可怜，接近0，从带宽占用来看，也很少很少（应该不存在mp3、图片等被盗链的情况）。</p>
<p>那为何这么慢呢？？用<a href="http://www.httpwatch.com/">HttpWatch</a>监测。一次访问耗时40秒左右，DNS Lookup、Connect、Send、Receive阶段都很快（3-5秒），其他时间都卡在Wait阶段。看来，<strong>慢的主要原因在服务器对请求的响应上</strong>。第一感觉就是<strong>内存不够用</strong>。（早就耳闻(dv)Base的内存让人捉襟见肘（仅256M），只是没想到这么快&#8230;）。</p>
<p>在Plesk控制面板中，看见系统总内存（total）673.34MB，使用了（Used） 410.39MB，剩余（free）262.95MB。有点高。尝试把内存降下来，看看能否提高响应速度。</p>
<p>（注：我没弄明白总内存为何是673.34MB，哪位能告诉我答案？thanks）</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 下面正式开工 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><span id="more-328"></span><span style="color: #3366ff;"><strong>一：关掉不需要的服务</strong></span></p>
<p>(dv)默认开启了 SMTP服务器(QMail)、IMAP/POP3 服务器 (Courier-IMAP)、DNS 服务器 (BIND)、SpamAssassin，这些对我来说都没用，完全可以禁掉。以下操作均需要以root账号登陆（推荐使用<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">putty</a>）。</p>
<p>1、禁用DNS服务</p>
<blockquote><p>/etc/init.d/named stop</p>
<p>chmod 644 /etc/init.d/named</p></blockquote>
<p>也可以下面这句禁掉它</p>
<blockquote><p>/usr/local/mt/bin/mib &#8211;disablenamed &#8211;apply</p></blockquote>
<p>如果以后需要用，用下面这句启动它</p>
<blockquote><p>/usr/local/mt/bin/mib &#8211;enablenamed &#8211;apply</p></blockquote>
<p><span style="color: #ff0000;">注：效果非常明显！大约可以释出50M内存，</span>执行完这步之后已经明显可以感觉到服务器响应快了很多。</p>
<p>2、禁用SpamAssassin</p>
<blockquote><p>/etc/init.d/psa-spamassassin stop</p>
<p>chmod 644 /etc/init.d/psa-spamassassin</p></blockquote>
<p>3、禁用Watchdog（<strong>(dv)3.5默认就是关闭的</strong>）</p>
<blockquote><p>rpm -e psa-watchdog</p></blockquote>
<p>如果你觉得上面的操作看不懂，没关系。其实在Plesk控制面板中也可以执行这些操作。</p>
<p>登陆控制面板，在“系统”-》“服务器”-》“服务管理”中设置。如图：</p>
<p><img class="alignnone size-full wp-image-331" title="mt-1" src="http://blog.v2op.com/wp-content/uploads/2009/04/mt-1.png" alt="mt-1" width="500" height="325" /></p>
<p><img class="alignnone size-full wp-image-332" title="mt-2" src="http://blog.v2op.com/wp-content/uploads/2009/04/mt-2.png" alt="mt-2" width="500" height="400" /></p>
<p><a href="http://kb.mediatemple.net/questions/770/(dv)+HOWTO%3A+Misc.+performance+tuning" target="_blank">参考</a></p>
<p><strong><span style="color: #3366ff;">二、调优Plesk</span></strong></p>
<p><strong><span style="color: #3366ff;"><img class="alignnone size-full wp-image-334" title="mt-3" src="http://blog.v2op.com/wp-content/uploads/2009/04/mt-3.png" alt="mt-3" width="300" height="120" /></span></strong></p>
<p><strong></strong>限制Plesk PSA connections连接数</p>
<blockquote><p>vi /usr/local/psa/admin/conf/httpsd.custom.include</p></blockquote>
<p>增加下面这段：</p>
<blockquote><p>MinSpareServers 1<br />
MaxSpareServers 1<br />
StartServers 1<br />
MaxClients 5</p></blockquote>
<p><strong>注：(dv) 3.5已经默认这样设置了。</strong></p>
<p><strong><span style="color: #3366ff;">三、调优MySQL</span></strong></p>
<p><img class="alignnone size-full wp-image-333" title="mt-4" src="http://blog.v2op.com/wp-content/uploads/2009/04/mt-4.png" alt="mt-4" width="300" height="83" /></p>
<p>编辑mysql配置文件：</p>
<blockquote><p>vi /etc/my.cnf</p></blockquote>
<p>增加下面这段在[MySQLd]这块中：</p>
<blockquote><p>query-cache-type = 1<br />
query-cache-size = 8M</p></blockquote>
<p>修改完了重启MySQL</p>
<blockquote><p>/etc/init.d/mysqld stop<br />
/etc/init.d/mysqld start</p></blockquote>
<p><strong>注：(dv) 3.5已经默认这样设置了。</strong><a href="http://kb.mediatemple.net/questions/258/(dv)+HOWTO%3A+Basic+MySQL+performance+tuning+(MySQLd)" target="_blank">参考</a></p>
<p><span style="color: #3366ff;"><strong>四、调优Apache</strong></span></p>
<p>修改Apache配置文件：</p>
<blockquote><p>vi +/Timeout /etc/httpd/conf/httpd.conf</p></blockquote>
<p>将timeout的值从120修改为20.</p>
<blockquote><p>vi +/MaxClients /etc/httpd/conf/httpd.conf</p></blockquote>
<p>按照下面的值修改..</p>
<blockquote><p>&lt;IfModule prefork.c&gt;<br />
StartServers 1<br />
MinSpareServers 1<br />
MaxSpareServers 3<br />
ServerLimit 50<br />
MaxClients 50<br />
MaxRequestsPerChild  4000<br />
&lt;/IfModule&gt;</p></blockquote>
<p>修改完成后重启apahce</p>
<blockquote><p>/etc/init.d/httpd restart</p></blockquote>
<p><strong>注：(dv) 3.5已经默认这样设置了。<a href="http://kb.mediatemple.net/article.php?id=246">参考</a></strong></p>
<p><strong><span style="color: #008000;">设置完上面这些，我的（dv）内存占用基本上稳定在280M-310M。</span><br />
</strong></p>
<p><span style="color: #000000;"><strong>设置apache的mod_deflate模块，提高传输性能。</strong></span></p>
<p><span style="color: #000000;">（因为要</span><span style="color: #000000;">压缩文件</span><span style="color: #000000;">，所以会增加CPU的负担。不过对我来说问题不大，这颗CPU本身也很“悠闲”。）</span></p>
<p>1、先看看是否已经启用</p>
<p>grep &#8216;mod_deflate&#8217; /etc/httpd/conf/httpd.conf</p>
<p>如果显示为下面这样，这继续第2步</p>
<blockquote><p><span class="screenshot_callout">LoadModule deflate_module modules/mod_deflate.so</span></p></blockquote>
<p>如果显示为下面这样（前面多了个#号）</p>
<blockquote><p>#LoadModule deflate_module modules/mod_deflate.so</p></blockquote>
<p>执行</p>
<blockquote><p>perl -pi -e &#8216;s/# LoadModule mod_deflate/LoadModule mod_deflate/g&#8217; /etc/httpd/conf/httpd.conf</p></blockquote>
<p>2、修改apache配置文件</p>
<blockquote><p>vi /etc/httpd/conf/httpd.conf</p></blockquote>
<p>在最后增加一段</p>
<blockquote><p>#<br />
# Deflate output configuration<br />
#<br />
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html</p></blockquote>
<p>重启apahce。</p>
<blockquote><p>/usr/sbin/apachectl -t</p></blockquote>
<p>如果提示“Syntax OK”，再执行</p>
<blockquote><p>/usr/sbin/apachectl graceful</p></blockquote>
<p>然后可以去<a href="http://whatsmyip.org/mod_gzip_test/" target="_blank">这里</a>测试是否配置成功。</p>
<p>配置前：</p>
<p><img class="alignnone size-full wp-image-335" title="mt-6" src="http://blog.v2op.com/wp-content/uploads/2009/04/mt-6.png" alt="mt-6" width="500" height="245" /></p>
<p>配置后：</p>
<p><img class="alignnone size-full wp-image-336" title="mt-7" src="http://blog.v2op.com/wp-content/uploads/2009/04/mt-7.png" alt="mt-7" width="500" height="245" /></p>
<p>在<a href="http://www.httpwatch.com/">HttpWatch</a>中也能看见效果（和上图不是同一天测的 <img src='http://blog.v2op.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ）</p>
<p><img class="alignnone size-full wp-image-337" title="mt-8" src="http://blog.v2op.com/wp-content/uploads/2009/04/mt-8.png" alt="mt-8" width="500" height="210" /></p>
<p><a href="http://kb.mediatemple.net/questions/1567/Compressing+web+pages+with+mod_deflate" target="_blank">参考</a></p>
<p><strong><span style="color: #3366ff;">五、其他优化</span></strong></p>
<p>如果你是像我这样主要用来跑<a href="http://www.wordpress.org/">WordPress</a>。那么可以安装 <a href="http://wordpress.org/extend/plugins/wp-super-cache/" target="_blank">wp-super-cache</a> 这个插件加速。在后台你可以启用Wordpress自带的加速功能（右上角有个：加速  <img src='http://blog.v2op.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ），通过 <a href="http://gears.google.com/">Google Gears</a> 实现的。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 结束 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><span style="color: #ff0000;">注意：修改任何配置文件前请做好备份。</span>以免出错时恢复。</p>
<p>使用cp命令备份(cp的意思就是复制啦~ <img src='http://blog.v2op.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )，例如：</p>
<blockquote><p>cp /etc/my.cnf /etc/my.cnf.20090406.bak</p></blockquote>
<p>表示把 /etc/ 目录下的 my.cnf 复制一份并命名为 my.cnf.20090406.bak</p>
<p><strong>如果有什么不对的地方，请指教。</strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; <img src='http://blog.v2op.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>点击这里了解更多（mt）<a href="http://www.mediatemple.net/go/order/?refdom=v2op.com"><img class="alignnone" title="mt-logo" src="http://www.mediatemple.net/_images/partnerlogos/mt-234x60-dk.gif" alt="" width="234" height="60" /></a></p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://blog.v2op.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="让mediatemple服务器ftp支持断点续传" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fresume-of-proftpd-at-mediatemple%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">让mediatemple服务器ftp支持断点续传</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WOW! mt(dv)内存免费提升一倍！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F06%2Fwow-mtdv%25E5%2586%2585%25E5%25AD%2598%25E5%2585%258D%25E8%25B4%25B9%25E6%258F%2590%25E5%258D%2587%25E4%25B8%2580%25E5%2580%258D%25EF%25BC%2581%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669805.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WOW! mt(dv)内存免费提升一倍！</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="I’m back! 深圳&lt;=&gt;重庆" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F07%2Fim-back-%25E6%25B7%25B1%25E5%259C%25B3%25E9%2587%258D%25E5%25BA%2586%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669711.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">I’m back! 深圳&lt;=&gt;重庆</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="如何提高邮件的打开率？从邮件主题入手！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fa-good-email-marketing-subject-help-to-improve-open-rates%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Foptimizing-mediatemple-dv-server%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何提高邮件的打开率？从邮件主题入手！</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.v2op.com/2009/04/optimizing-mediatemple-dv-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

