1. 安装
2. 基本操作
2.1 常用命令
- 禁用自启动
sudo systemctl disable redis-server
- 开启自启动
sudo systemctl enable redis-server
- 启动服务
sudo systemctl start redis-server
- 停止服务
sudo systemctl stop redis-server
- 查看服务状态
sudo systemctl status redis-server
sudo systemctl disable redis-server
sudo systemctl enable redis-server
sudo systemctl start redis-server
sudo systemctl stop redis-server
sudo systemctl status redis-server