作为redis小白相信大部分都会遇到这个问题,其实这个问题很容易解决,只需要修改配置文件中的几处值即可
欢迎入圈:DefryC
备注:大牛驾到
正文:
编辑redis.conf
1、[root@VM_0_4_centos redis-3.2.8]# vi redis.conf
2、将配置文件中的内容做如下修改
bind 127.0.0.1 ——》#bind 127.0.0.1
protected-mode yes ——》protected-mode no
daemonize no ——》 daemonize yes
3、保存更改 :wq
4、关闭redis :[root@VM_0_4_centos src]# ./redis-cli shutdown
5、启动redis:[root@VM_0_4_centos src]# ./redis-server ../redis.conf
查看redis是否启动成功[root@VM_0_4_centos redis-3.2.8]# ps -ef|grep redis