redis5.0.2 centos7 编译安装

  1. 官网下载 redis-5.0.2.tar.gz
  2. 解压至 /opt 并重命名为redis
  3. 安装gcc yum -y install gcc
  4. cd /opt/redis/deps
    编译依赖
    make hiredis jemalloc linenoise lua
    编译安装lua时
    Please do
    make PLATFORM
    where PLATFORM is one of these:
    aix ansi bsd freebsd generic linux macosx mingw posix solaris
    See INSTALL for complete instructions.
    查看你的系统平台名称是否在支持的列表中,如果存在则继续运行make PLATFORM命令,否则按照lua的INSTALL说明我们可以选择运行make generic命令
    centos7 使用make generic
    若没有tcl 可直接 yum install -y tcl
  5. cd /opt/redis
  6. make test
  7. make install
  8. redis.conf为配置文件 可自定义
  9. redis-server 回车启动
  10. redis-cli 进入client
  11. ps -ef|grep redis 可查看状态

你可能感兴趣的:(redis)