<?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>润物无声 &#187; 七牛</title>
	<atom:link href="http://blog.zhourunsheng.com/tag/%e4%b8%83%e7%89%9b/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zhourunsheng.com</link>
	<description>天空一朵雨做的云</description>
	<lastBuildDate>Sat, 08 May 2021 05:17:21 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>迁移博客图片资源从SAE到七牛</title>
		<link>http://blog.zhourunsheng.com/2014/05/%e8%bf%81%e7%a7%bb%e5%8d%9a%e5%ae%a2%e5%9b%be%e7%89%87%e8%b5%84%e6%ba%90%e4%bb%8esae%e5%88%b0%e4%b8%83%e7%89%9b/</link>
		<comments>http://blog.zhourunsheng.com/2014/05/%e8%bf%81%e7%a7%bb%e5%8d%9a%e5%ae%a2%e5%9b%be%e7%89%87%e8%b5%84%e6%ba%90%e4%bb%8esae%e5%88%b0%e4%b8%83%e7%89%9b/#comments</comments>
		<pubDate>Wed, 21 May 2014 01:57:02 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[Web设计]]></category>
		<category><![CDATA[SAE]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[七牛]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1880</guid>
		<description><![CDATA[<p>博客的很多图片资料存放在 SAE 上面，鉴于七牛的静态资源存储不错，计划迁移到七牛云存储上面，进而方便统一管理 [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/%e8%bf%81%e7%a7%bb%e5%8d%9a%e5%ae%a2%e5%9b%be%e7%89%87%e8%b5%84%e6%ba%90%e4%bb%8esae%e5%88%b0%e4%b8%83%e7%89%9b/">迁移博客图片资源从SAE到七牛</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>博客的很多图片资料存放在 SAE 上面，鉴于七牛的静态资源存储不错，计划迁移到七牛云存储上面，进而方便统一管理。<br />
【下载 SAE Storage 中的资料】</p>
<ul>
<li>所需工具：Cyberduck</li>
<li>配置</li>
</ul>
<blockquote><p>服务器： auth.sinas3.com<br />
端口：443<br />
用户名：应用AccessKey<br />
密码：应用SecretKey</p></blockquote>
<blockquote><p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/cyberduck.png" alt="" /></p></blockquote>
<p><span id="more-1880"></span><br />
【上传到七牛】</p>
<ul>
<li>所需工具：qiniu-devtools-windows_386 [qrsync.exe]</li>
<li>配置, 新建 conf.json 文件</li>
</ul>
<blockquote><p>access_key： 应用AccessKey<br />
secret_key：应用SecretKey<br />
bucket：bucket 名称<br />
sync_dir：本地同步文件夹</p></blockquote>
<blockquote><p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/confjson.png" alt="" /></p></blockquote>
<ul>
<li>执行 qrsync.exe conf.json 即可</li>
</ul>
<p>【外链切换】</p>
<ul>
<li>原外链地址：</li>
</ul>
<blockquote><p><span style="color: #ff0000;">http://carey-wordpress.stor.sinaapp.com</span>/uploads/2011/06/The-Moon-150x150.jpg</p></blockquote>
<ul>
<li>新外链地址：</li>
</ul>
<blockquote><p><span style="color: #ff0000;">http://carey.u.qiniudn.com</span>/uploads/2011/06/The-Moon-150x150.jpg</p></blockquote>
<p>【数据库相关】<br />
1. 查询包含外链的相关文章<br />
SELECT * FROM  `wp_posts` WHERE post_content LIKE  '%http://carey-wordpress.stor.sinaapp.com/%'</p>
<p>2. 指定文章替换<br />
UPDATE wp_posts SET post_content = replace(post_content, 'http://carey-wordpress.stor.sinaapp.com/', 'http://carey.u.qiniudn.com/') WHERE ID=24</p>
<p>3. 全局替换<br />
UPDATE wp_posts SET post_content = replace(post_content, 'http://carey-wordpress.stor.sinaapp.com/', 'http://carey.u.qiniudn.com/')</p>
<p>【资料相关】</p>
<ul>
<li>SAE 地址：<a href="http://sae.sina.com.cn/">http://sae.sina.com.cn/</a></li>
<li>SAE SVN 地址：<a href="https://svn.sinaapp.com/carey">https://svn.sinaapp.com/carey</a></li>
<li>七牛官方：<a href="https://portal.qiniu.com/">https://portal.qiniu.com/</a></li>
</ul>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/%e8%bf%81%e7%a7%bb%e5%8d%9a%e5%ae%a2%e5%9b%be%e7%89%87%e8%b5%84%e6%ba%90%e4%bb%8esae%e5%88%b0%e4%b8%83%e7%89%9b/">迁移博客图片资源从SAE到七牛</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2014/05/%e8%bf%81%e7%a7%bb%e5%8d%9a%e5%ae%a2%e5%9b%be%e7%89%87%e8%b5%84%e6%ba%90%e4%bb%8esae%e5%88%b0%e4%b8%83%e7%89%9b/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
