安裝Redis
- 採用apt 方式安裝
apt-get install redis-server
- apt 方式安裝會自啓動, 同時自動配置環境變量等,
- redis 操作
# 啓動 service redis start # 停止 service redis stop # 重啓 service redis restart # 查看狀態 service redis status
- 修改配置文件,開啓遠程連接.
# 可以使用 whereis redis 查看redis路徑 # 配置文件路徑在 /etc/redis/redis.conf vi /etc/redis/redis.conf # 註釋 bind-address
- 重啓redis, 使用redis 圖形客戶的連接, 個人推薦redis manager 或者 redisPlus