安装redis
apt install redis-server -y
加入开机启动
systemctl enable redis-server
配置Redis远程访问
vi /etc/redis/redis.conf
注释掉
bind 127.0.0.1 ::1
重启redis
systemctl restart redis-server
开放防火墙
ufw allow 6379
apt install redis-server -y
systemctl enable redis-server
vi /etc/redis/redis.conf
注释掉
bind 127.0.0.1 ::1
systemctl restart redis-server
ufw allow 6379
评论区