How to set password for Redis?

后端 未结 10 1312
长发绾君心
长发绾君心 2021-01-29 19:17

I\'m working with redis on my local machine so I dont really need to set up a password to connect to the server with my php client (I\'m using predis as a client). However, I\'

10条回答
  •  南笙
    南笙 (楼主)
    2021-01-29 19:56

    step 1. stop redis server using below command /etc/init.d/redis-server stop step 2.enter command : sudo nano /etc/redis/redis.conf

    step 3.find # requirepass foobared word and remove # and change foobared to YOUR PASSWORD

    ex. requirepass root

提交回复
热议问题