安装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