redis数据库

安装
sudo apt update
sudo apt install redis-server

sudo systemctl status redis-server #检查运行状态
sudo systemctl start redis-server #启动
sudo systemctl stop redis-server #停止
sudo systemctl restart redis-server #重启

redis-cli INFO | grep redis_version 查看版本

开启外网访问

配置文件:
/etc/redis/redis.conf
修改bind的值为0.0.0.0 ::1 监听所有端口