安装
- apt 方式安装
apt 方式安装的版本会比较旧,如需要安装最新版 redis 请参考:https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04sudo apt install redis-server -y
配置和启动
更改配置
sudo vim /etc/redis/redis.conf启动
sudo systemctl start redis开机启动
sudo systemctl enable redis关闭
sudo systemctl stop redis