在redis.config中添加了密码后,重启服务和连接服务的相关接口即可 redis重启 查看redis进程 ps -ef | grep redis 杀死进程 kill pid **** 重启服务 redis-server …/redis.conf