Redis.conf配置 (1开放端口;2设置密码;3开启key过期监听事件)
redis.conf文件中
注释掉bind 127.0.0.1 后放开ip为所以IP都能来访问
bind 127.0.0.1
取消requirepass的注释空格后面跟上自己的密码
requirepass
notify-keyspace-events ""修改为notify-keyspace-events Ex开启Key过期监听事件
notify-keyspace-events “”
Redis.conf配置 (1开放端口;2设置密码;3开启key过期监听事件)
redis.conf文件中
注释掉bind 127.0.0.1 后放开ip为所以IP都能来访问
bind 127.0.0.1
取消requirepass的注释空格后面跟上自己的密码
requirepass
notify-keyspace-events ""修改为notify-keyspace-events Ex开启Key过期监听事件
notify-keyspace-events “”