Redis 密码 修改6379.conf的requirepass
[adminroot@localhost redis]$ su
Password:
[root@localhost redis]# vim 6379.conf
/requirepass
n
requirepass mypassword123
[root@localhost redis]# ps -ef|grep redis
[root@localhost redis]# kill -9 11321
[root@localhost adminroot]# redis-server /etc/redis/6379.conf &
[root@localhost adminroot]# redis-cli
127.0.0.1:6379> keys *
(error) NOAUTH Authentication required.
127.0.0.1:6379> auth mypassword123
OK
127.0.0.1:6379> keys *
(empty list or set)
127.0.0.1:6379> exit
[root@localhost adminroot]# redis-cli -a mypassword123
127.0.0.1:6379> keys *
(empty list or set)
127.0.0.1:6379>
相关推荐
王道革 2020-11-25
wangdonghello 2020-11-03
Langeldep 2020-11-16
chenhualong0 2020-11-16
聚合室 2020-11-16
koushr 2020-11-12
MRFENGG 2020-11-11
guoyanga 2020-11-10
fackyou00 2020-11-10
Orangesss 2020-11-03
dongCSDN 2020-10-31
rainandtear 2020-10-30
Quietboy 2020-10-30
liuyulong 2020-10-29
fansili 2020-10-29
温攀峰 2020-10-23
jackbon 2020-10-19
kaixinfelix 2020-10-04