<?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>GameXG &#187; WordPress</title> <atom:link href="http://www.chenwang.net/category/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://www.chenwang.net</link> <description>乱七八招</description> <lastBuildDate>Mon, 20 Feb 2012 04:22:27 +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>把  WordPress  博客迁移到 vps</title><link>http://www.chenwang.net/2011/04/05/%e8%bf%81%e7%a7%bb-wordpress-%e5%8d%9a%e5%ae%a2%e5%88%b0-vps-%e5%ae%8c%e6%88%90/</link> <comments>http://www.chenwang.net/2011/04/05/%e8%bf%81%e7%a7%bb-wordpress-%e5%8d%9a%e5%ae%a2%e5%88%b0-vps-%e5%ae%8c%e6%88%90/#comments</comments> <pubDate>Tue, 05 Apr 2011 08:37:37 +0000</pubDate> <dc:creator>GameXG</dc:creator> <category><![CDATA[VPS]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[vps]]></category><guid isPermaLink="false">http://www.chenwang.net/?p=319</guid> <description><![CDATA[原来的虚拟主机要到期了，vps正好空着，就打算迁移到vps上。 迁移起来基本没有遇到麻烦，很快就完成了。具体步骤是： 1.把 BackWPup 昨天的备份拷到了vps下解压出来。这里需要注意一下文件的权限问题。 2.照着 wp-config.php 建立了新的数据库和mysql帐号，通过 phpmyadmin 把数据库导入vps。 3.因为我的vps用的是nginx，所以需要处理一下htaccess文件。为 location 段增加以下内容 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [...]<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="使用谷歌文件发布 wordpress 博客" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.chenwang.net%2F2008%2F10%2F16%2F%25E4%25BD%25BF%25E7%2594%25A8%25E8%25B0%25B7%25E6%25AD%258C%25E6%2596%2587%25E4%25BB%25B6%25E5%258F%2591%25E5%25B8%2583-wordpress-%25E5%258D%259A%25E5%25AE%25A2%2F&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/08/22/2160518.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;">使用谷歌文件发布 wordpress 博客</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="72松 WordPress 博客通过谷歌网站验证的方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.chenwang.net%2F2008%2F09%2F23%2F72%25E6%259D%25BE-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E4%25BD%25BF%25E7%2594%25A8-all-in-one-seo-%25E9%2580%259A%25E8%25BF%2587%25E8%25B0%25B7%25E6%25AD%258C%25E7%25BD%2591%25E7%25AB%2599%25E9%25AA%258C%25E8%25AF%2581%2F&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/08/22/2160563.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;">72松 WordPress 博客通过谷歌网站验证的方法</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="修改了一下 WordPress 的主题 Greenery" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.chenwang.net%2F2008%2F09%2F25%2F%25E4%25BF%25AE%25E6%2594%25B9%25E4%25BA%2586%25E4%25B8%2580%25E4%25B8%258B-wordpress-%25E7%259A%2584%25E4%25B8%25BB%25E9%25A2%2598-greenery%25E3%2580%2582%2F&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/01/18/2160566.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;">修改了一下 WordPress 的主题 Greenery</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?url=http%3A%2F%2Fwww.chenwang.net%2F2008%2F09%2F19%2F%25E5%258D%259A%25E5%25AE%25A2%25E5%25BC%2580%25E5%25BC%25A0%25E4%25BA%2586%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/08/22/2160522.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;">博客开张了！</font> </a></td></tr> <br/><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="博客汉化完成&lt;(￣︶￣)&gt;" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqingge.de%2F20110206%2F405.html&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/09/2596824.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;">博客汉化完成&lt;(￣︶￣)&gt; (@qingge)</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="新浪微博连接：使用新浪微博登陆WordPress博客" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqingge.de%2F20110115%2F180.html&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/09/2628361.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;">新浪微博连接：使用新浪微博登陆WordPress博客 (@qingge)</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?url=http%3A%2F%2Fqingge.de%2F20110204%2F331.html&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/08/2617237.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;">博客更换了域名了，正式开始使用！ (@qingge)</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="修改.htaccess实现Wordpress博客防盗链" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2F20xue.com%2F2012%2F01%2F%25E4%25BF%25AE%25E6%2594%25B9-htaccess%25E5%25AE%259E%25E7%258E%25B0wordpress%25E5%258D%259A%25E5%25AE%25A2%25E9%2598%25B2%25E7%259B%2597%25E9%2593%25BE%2F&from=http%3A%2F%2Fwww.chenwang.net%2F2011%2F04%2F05%2F%25E8%25BF%2581%25E7%25A7%25BB-wordpress-%25E5%258D%259A%25E5%25AE%25A2%25E5%2588%25B0-vps-%25E5%25AE%258C%25E6%2588%2590%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/2012/01/31/14563299.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;">修改.htaccess实现Wordpress博客防盗链 (@20xue)</font> </a></td></tr><tr><td colspan="4" align="right"> <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>原来的虚拟主机要到期了，vps正好空着，就打算迁移到vps上。</p><p>迁移起来基本没有遇到麻烦，很快就完成了。具体步骤是：</p><p>1.把 BackWPup 昨天的备份拷到了vps下解压出来。这里需要注意一下文件的权限问题。<br /> 2.照着 wp-config.php 建立了新的数据库和mysql帐号，通过 phpmyadmin 把数据库导入vps。<br /> 3.因为我的vps用的是nginx，所以需要处理一下htaccess文件。为 location 段增加以下内容</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
</pre></td><td class="code"><pre class="nginx" style="font-family:monospace;"># WordPress pretty URLs
if (-f $request_filename) {
expires max;
break;
}
if (-d $request_filename) {
break;
}
rewrite ^(.+)$ /index.php?q=$1 last;
&nbsp;
# Enable nice permalinks for WordPress
error_page  404  = //index.php?q=$uri;
&nbsp;
&nbsp;
#下面是 WP Super Cache 支持部分，如果没有WP Super Cache就不需要。
# if the requested file exists, return it immediately
if (-f $request_filename) {
expires 30d;
break;
}
&nbsp;
set $supercache_file '';
set $supercache_uri $request_uri;
&nbsp;
if ($request_method = POST) {
set $supercache_uri '';
}
&nbsp;
# Using pretty permalinks, so bypass the cache for any query string
if ($query_string) {
set $supercache_uri '';
}
&nbsp;
if ($http_cookie ~* &quot;comment_author_|wordpress|wp-postpass_&quot; ) {
set $supercache_uri '';
}
&nbsp;
# if we haven't bypassed the cache, specify our supercache file
if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /var/www/wp-content/cache/supercache/$http_host/$1index.html;
}
&nbsp;
# only rewrite to the supercache file if it actually exists
if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}
&nbsp;
# all other requests go to WordPress
if (!-e $request_filename) {
rewrite . /var/www/index.php last;
}</pre></td></tr></table></div><p>4.登录博客后台，修改一下BackWPup文件的备份路径。<br /> 5.WP Super Cache 的路径也需要修改一下，打开 wp-content/advanced-cache.php 修改一下就可以了。</p><p>6.在处理一下 BackWPup 的备份目录，禁止下载备份。在nginx配置文件里面加上下面的内容</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="nginx" style="font-family:monospace;">        location /wp-content/backwpup {
                deny all;
        }</pre></td></tr></table></div><p>这样就把 WordPress 迁移完成了。</p><p>备注：发现BackWPup插件自动备份出现了问题，会使php5-cgi 进程cpu使用率达到100%，并产生数G的日志占满磁盘空间。删除旧的备份计划，并建立新的备份计划就可以解决了。<br /> <a href="http://www.chenwang.net/2011/04/05/%e8%bf%81%e7%a7%bb-wordpress-%e5%8d%9a%e5%ae%a2%e5%88%b0-vps-%e5%ae%8c%e6%88%90/%e6%9c%aa%e5%91%bd%e5%90%8d/" rel="attachment wp-att-320"><img src="http://www.chenwang.net/wp-content/uploads/2011/04/未命名.gif" alt="" title="博客迁移完成，测试上传图片" width="200" height="200" class="alignnone size-full wp-image-320" /></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" v
