最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
使用redis让您的wordpress博客加速五倍
时间:2022-06-25 18:51:11 编辑:袖梨 来源:一聚教程网
1.在vps主机上安装redis
①我用的LNMP包,里面自带了redis,执行 ./redis.sh 就可以自动安装并加入自启动
②单独安装redis-server
# apt-get install redis-server
启动redis-server,并加入自启动项目(具体方法请自行查阅,因为部分linux上的方法是不同的)
2.在wordpress中增加redis-Server的PHP客户端
大家都推荐使用predis.php(下载地址),将predis.php上传到wp的根目录
3.下载wp使用redis的新首页
index-with-redis.php(下载地址),将原来wp中的index.php备份,修改index-with-redis.php为index.php
4.根据个人需求修改index-with-redis.php中的参数
// change vars here
$cf = 1; // set to 1 if you are using cloudflare
$debug = 0; // set to 1 if you wish to see execution time and cache actions
$display_powered_by_redis = 1; // set to 1 if you want to display a powered by redis message with execution time, see below
5.上传到wp根目录,刷新网页即可
注意:如果wp升级了,那上述步骤中的两个文件需要重新设置一下
接下来快去升级和加速你的wordpress站点吧,别犹豫了。
相关文章
- mcjs网页版即点即玩-mcjs极速秒玩入口 10-23
- 超星学习通网页版登录-超星学习通官网入口 10-23
- poki免费游戏大全-poki免费游戏在线畅玩入口 10-23
- mc.js官方在线入口 10-23
- 海角haijiao社区2025全新网址一键直达-海角社区最新官方入口地址 10-23
- 王者荣耀世界体力上限与恢复方法详解 王者荣耀世界体力机制全面解析 10-20