Wordpress启用远程redis
测试系统:CentOS8.5
@redis-server(192.168.99.131)
[root@localhost ~]# mount /dev/cdrom /media/CentOS/
[root@localhost ~]# yum install redis -y
[root@localhost ~]# systemctl enable --now redis
[root@localhost ~]# firewall-cmd --add-service=redis
[root@localhost ~]# firewall-cmd --add-service=redis --permanent
[root@localhost ~]# vim /etc/redis.conf
bind 127.0.0.1 192.168.99.131
[root@localhost ~]# systemctl restart redis
[root@localhost ~]# ss -ltpn | grep 6379
LISTEN 0 128 192.168.99.131:6379 0.0.0.0:* users:(("redis-server",pid=2209,fd=7))
LISTEN 0 128 127.0.0.1:6379 0.0.0.0:* users:(("redis-server",pid=2209,fd=6))
@web01节点(192.168.99.201)
#下载Redis Object Cache插件
https://downloads.wordpress.org/plugin/redis-cache.2.0.22.zip
#登录wordpress后台上传插件并