配置 vim /etc/redis.conf/ruquirepass 底行命令模式查询,设置密码/daemonize 底行命令模式查询,设置为yes,守护进程/bind 改成自己阿里云的私有ip 启动 redis-server redis-cli 进入ping 查看是否链接成功auth password 验证密码 访问指定ip及端口 redis-cli -h ip -p port -a password