<?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>云豆相关文章列表 | 皇家元林</title>
	<atom:link href="https://hjyl.org/tags/%e4%ba%91%e8%b1%86/feed/" rel="self" type="application/rss+xml" />
	<link>https://hjyl.org</link>
	<description>刘元林的个人博客</description>
	<lastBuildDate>Sat, 06 Jun 2015 14:33:49 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://img.hjyl.org/uploads/2019/10/cropped-about-me-32x32.png</url>
	<title>云豆相关文章列表 | 皇家元林</title>
	<link>https://hjyl.org</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>从SAE转到阿里云</title>
		<link>https://hjyl.org/from-sae-to-aliyun/</link>
					<comments>https://hjyl.org/from-sae-to-aliyun/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Sat, 06 Jun 2015 14:33:49 +0000</pubDate>
				<category><![CDATA[生活点滴]]></category>
		<category><![CDATA[google公共库]]></category>
		<category><![CDATA[google字体库]]></category>
		<category><![CDATA[SAE]]></category>
		<category><![CDATA[云豆]]></category>
		<category><![CDATA[阿里云]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=3093</guid>

					<description><![CDATA[坑爹的SAE，逼着我搬出来。转移到我现有的阿里云ECS。折腾。。。]]></description>
										<content:encoded><![CDATA[<p>不得不说新浪云，百度云，京东云，腾讯云，盛大云。。。等等，都是个坑。之前打着免费的旗号，到处招摇撞骗，寻找小白鼠，现在成熟了，就开始收费了，还特么高。<br />
先来看两招照片</p>
<figure id="attachment_3094" aria-describedby="caption-attachment-3094" style="width: 560px" class="wp-caption alignnone"><a href="https://img.hjyl.org/uploads/2015/06/2015-06-05T16-16-02.025Z.png"><img fetchpriority="high" decoding="async" class="size-large wp-image-3094" src="https://img.hjyl.org/uploads/2015/06/2015-06-05T16-16-02.025Z-1024x531.png" alt="2015-06-05T16-16-02.025Z" width="560" height="290" title="2015 06 05T16 16 02.025Z 1024x531.png" /></a><figcaption id="caption-attachment-3094" class="wp-caption-text">2015-06-05T16-16-02.025Z</figcaption></figure>
<figure id="attachment_3095" aria-describedby="caption-attachment-3095" style="width: 560px" class="wp-caption alignnone"><a href="https://img.hjyl.org/uploads/2015/06/2015-06-06T14-11-27.687Z.png"><img decoding="async" class="size-large wp-image-3095" src="https://img.hjyl.org/uploads/2015/06/2015-06-06T14-11-27.687Z-1024x517.png" alt="2015-06-06T14-11-27.687Z" width="560" height="283" title="2015 06 06T14 11 27.687Z 1024x517.png" /></a><figcaption id="caption-attachment-3095" class="wp-caption-text">2015-06-06T14-11-27.687Z</figcaption></figure>
<p>从标题上看，第一个是6月5日，第二个是6月6日，他说我消耗11.28个云豆，但我近30个云豆没了。本来可以使用2000年的，现在只有6天，甚至可能下一秒就被停了，原因是欠费。比中国移动还坑。好吧，惹不起，我躲吧。还好我这个阿里云的配置还能扛得住三个站。转移已经轻车熟路了，三下五去二就搞定了。</p>
<p>本想用WordPress的多站功能，但由于个人洁癖的问题，不喜欢一个数据库里有两个网站的表，如果以后再分的话，不太好搞。各独立站点好管理。</p>
<p>待两个站iyl.me和hilau.com转移成功之后，发觉hjyl.org即本站速度有影响，不知道是原因造成的。但是那两个站是非常正常的，我觉得应该不是ECS的问题，应该是我这个外链的问题。果然，是google字体库和公共库的问题，之前用360的替代，一直相安无事。突然这一下子，把我搞蒙了。我仔细看了useso-take-over-google这个插件的代码，发现这段：</p>
<pre>
	if (!is_ssl()) {
		$str = str_ireplace('//fonts.googleapis.com/', '//fonts.useso.com/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', '//ajax.useso.com/', $str);
	} else {
		$str = str_ireplace('//fonts.googleapis.com/', '//fonts.lug.ustc.edu.cn/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', '//ajax.lug.ustc.edu.cn/', $str);
	}
</pre>
<p>由于本站在鄙人强迫症的影响下，加了SSL证书，所以https站下的外链默认都是https链接，所以问题就来了。lug.ustc.edu.cn这个站点挂了。什么原因，不知道。于是修改了下这个插件，这样：</p>
<pre>
	if (!is_ssl()) {
		$str = str_ireplace('//fonts.googleapis.com/', '//fonts.useso.com/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', '//ajax.useso.com/', $str);
	} else {
		$str = str_ireplace('//fonts.googleapis.com/', 'http://fonts.useso.com/', $str);
		$str = str_ireplace('//ajax.googleapis.com/', 'http://ajax.useso.com/', $str);
	}
</pre>
<p>我喜欢看浏览器上是一把锁，不喜欢它变成感叹号，甚至叉叉。一直没明白，连360都能搞出这个替代google服务的库，百度，新浪，腾讯，盛大，阿里云，你们咋就不能捅出一个来呢？</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="从SAE转到阿里云" href="https://hjyl.org/from-sae-to-aliyun/">从SAE转到阿里云</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/from-sae-to-aliyun/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
	</channel>
</rss>
