目的 设置redis访问密码 步骤 1、打开配置文件 vim /etc/redis/redis.conf 2、修改配置并保存 requirepass abcd.1234 3、重启reids sudo service redis restart