![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Redis
Spicy姜
这个作者很懒,什么都没留下…
展开
-
Class 'Home\Controller\Redis' not found
thinkphp3.2不加” \ ” 会报 Class ‘Home\Controller\Redis’ not found $redis = new \Redis(); $redis->connect('127.0.0.1',6379); $redis->set('name',1); $mylist =$redis->get('name'); ...原创 2018-09-16 17:01:48 · 1528 阅读 · 0 评论 -
redis 密码设置
命令行进入Redis的文件夹: D:\Redis-x64-3.2.100>redis-cli.exe 查看是否设置了密码: 127.0.0.1:6379> auth root (error) ERR Client sent AUTH, but no password is set 说明没有设置密码,执行命令: 127.0.0.1:6379> config set requirep...原创 2019-07-17 14:54:02 · 277 阅读 · 0 评论 -
redis主从复制
为了降低每台redis服务的负载,可以设置多个redis服务,并做主从复制模式 一个读写分离! //配置从服务器 slave-read-only = yes //控制读写 slaveof 192.168,39.159 6379 主从复制操作步骤 1. 配置主从复制 新增配置文件 redis6300.conf slaveof 192.168,39.159 6379 2. 查...原创 2019-08-18 16:41:08 · 59 阅读 · 0 评论