sudo apt update
sudo apt install redis
sudo vim /etc/redis/redis.conf # 将bind 127.0.0.1 修改为0.0.0.0 # 将daemonize的值修改为yes,守护进程
sudo systemctl restart redis-server
redis-cli