redis

redis 数据库的使用笔记

环境配置

  1. 源码安装 redis
   # 
   wget http://download.redis.io/redis-stable.tar.gz
   tar xvzf redis-stable.tar.gz
   cd redis-stable
   make 
  1. 安装 tcl 工具,tcl 安装网页 参照连接进行安装。
  2. 启动
# mac
sudo brew services start redis 
  1. 测试
# 连接 redis
# 若正常连接说明开启成功
redis-cli

php redis 扩展安装

  • centos 系统

    # 确保安装  phpize
    yum install php71w-devel
    # 克隆 php redis 项目
    git clone https://github.com/phpredis/phpredis.git
    # 进入项目根目录
    # 参考 https://github.com/phpredis/phpredis#installation 完成剩余步骤
    

工具

数据库