githun地址

https://github.com/sewenew/redis-plus-plus

安装hiredis

  1. git clone https://github.com/redis/hiredis.git
  2. cd hiredis
  3. make
  4. make install

默认安装在/usr/local下,修改安装目录

  1. make PREFIX=/non/default/path install

安装redis-plus-plus

基本安装

  1. git clone https://github.com/sewenew/redis-plus-plus.git
  2. cd redis-plus-plus
  3. mkdir compile
  4. cd compile
  5. cmake -DCMAKE_BUILD_TYPE=Release ..
  6. make
  7. make install
  8. cd ..

修改安装位置

If hiredis is installed at non-default location, you should use CMAKE_PREFIX_PATH to specify the installation path of hiredis. By default, redis-plus-plus is installed at /usr/local. However, you can use CMAKE_INSTALL_PREFIX to install redis-plus-plus at non-default location.