手动下载并启动
下载 http://download.redis.io/redis-stable.tar.gz
解压运行
apt安装
sudo apt update
sudo apt install redis-server
启动、停止、重启
查看状态
systemctl status redis-server.service
启动
systemctl start redis-server.service
停止
systemctl stop redis-server.service
重启
systemctl restart redis-server.service
设置开机启动
systemctl enable redis-server.service
配置
/etc/redis/redis.conf
注释 bind这一行
修改密码
requirepass 密码
修改端口
port 6379