<p>

<span><span style="font-size:16px;line-height:24px;">阿里云的KVStore服务已经开始公测了,现在可以免费申请到1G内存的规格,我们可以用来加速wp</span></span> 

</p>
<p>

<span><span style="font-size:16px;line-height:24px;"><br />

</span></span>
</p>
<p>

<span><span style="font-size:16px;line-height:24px;">前提条件:你服务器环境必须安装了php的redis扩展,推荐一键包:<a href="http://blog.linuxeye.com/31.html" target="_blank">http://blog.linuxeye.com/31.html</a></span></span> 

</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';"><br />

</span>
</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';">然后安装wp-redis-cache插件,这应该是来自阿里云官方的插件,实属难得,不过这个真心是一个工程师出品的插件,完全毫无体验可言!</span> 

</p>
<p>

<span style="font-size:16px;"></span> 

</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';">说正题,下载插件并在后台上传安装:</span> 

</p>
<p>

<a href="http://oss.hivps.cn/2015/03/wp-redis-cache.0.2.5.zip"><span style="font-size:16px;font-family:'Microsoft YaHei';">wp-redis-cache.0.2.5</span></a> 

</p>
<p>

<br />

</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';">安装后启用进入设置</span> 

</p>
<p>

<br />

</p>
<p>

<br />

</p>
<p>

<a href="http://oss.hivps.cn/2015/03/kvs2.png"><img src="http://oss.hivps.cn/2015/03/kvs2.png" alt="kvs2" width="452" height="654" class="alignnone size-full wp-image-172" /></a> 

</p>
<p>

<br />

</p>
<p>

<span style="font-size:16px;font-family:'Microsoft YaHei';">填写说明</span> 

</p>
<p>

<span style="color:#444444;font-family:'Microsoft YaHei';font-size:16px;line-height:19.5px;background-color:#F1F1F1;">Redis Server <span style="color:#E56600;">就是你的KVS内网地址啦,请登录KVS控制面板自行搜索,比如1a77255ac1a211e4.m.cnhza.kvstore.aliyuncs.com</span></span> 

</p>
<p>

<span style="color:#444444;font-family:'Microsoft YaHei';font-size:16px;line-height:19.5px;background-color:#F1F1F1;">Redis Instance <span style="color:#009900;">如果你不看开发文档,是不知道这个是干嘛的,因为我也不看,我只是用户啊,操蛋!这个一般填个0-16任意数字,因为kvs支持16个redis库,说白了就是可以同时带16个网站。是不是很屌,有没有!</span></span> 

</p>
<p>

<span style="color:#444444;font-family:'Microsoft YaHei';font-size:16px;line-height:19.5px;background-color:#F1F1F1;">Redis Port <span style="color:#CC33E5;">这里显示了默认的6379端口,但是你还是必须手工输入6379,尼玛的反人类啊有木有</span></span> 

</p>
<p>

<span style="color:#444444;font-family:'Open Sans', sans-serif;font-size:13px;line-height:19.5px;background-color:#F1F1F1;"><span style="font-size:16px;font-family:'Microsoft YaHei';">Redis Password <span style="color:#E53333;">这里更反人类了,密码格式为KVSID:KVS密码 比如&nbsp;</span></span><span style="font-size:16px;font-family:'Microsoft YaHei';color:#E53333;">1a77255ac1a211e4:我是密码</span><span style="font-size:16px;font-family:'Microsoft YaHei';color:#E53333;"> &nbsp;得是这样的形式,想不到了吧有木有?</span></span> 

</p>
<p>

<span style="color:#444444;font-family:'Microsoft YaHei';font-size:16px;line-height:19.5px;background-color:#F1F1F1;">Cache Expiration (in seconds)</span><span style="font-size:16px;font-family:'Microsoft YaHei';"> <span style="color:#337FE5;">同上面端口,默认3600,但是你还是要输入一次3600</span></span> 

</p>

Last modification:December 13th, 2017 at 11:43 pm