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 监听所有端口