(1.)安装
$ sudo apt update
$ sudo apt install redis-server
(2.)修改配置文件
$ sudo vi /etc/redis/redis.conf
supervised no 改为supervised systemd
bind 127.0.0.1 ::1 改为 bind 0.0.0.0
# requirepass foobared 改为 requirepass 123456 //自己的密码
(3.)重启
sudo service redis start/stop/restart
(4.)查看状态
sudo systemctl status redis
(5.)客户端链接
redis-cli