Ubuntu(⑤Redis)
安装 Redis
sudo apt install redis-server -y
配置 Redis 服务
sudo gedit /etc/redis/redis.conf
修改配置
supervised no → Redis 独立运行,不受 systemd 管理。supervised systemd → Redis 与 systemd 集成,方便用 systemctl 管理,适合生产环境。重启服务
sudo systemctl restart redis.service
设置开机自启
sudo systemctl enable redis-server
Navicat远程访问
bind 127.0.0.1 ::1  改成   bind 0.0.0.0
