87632219 2017-02-22
文章环境: CentOS 7 biuld 1611最小化安装@VMware Redis 3.2.8
安装步骤:
#安装gcc yum -y install gcc #下载redis curl -O http://download.redis.io/releases/redis-3.2.8.tar.gz #解压 tar -zxvf redis-3.2.8.tar.gz #转换目录 cd redis-3.2.8/deps/ #编译依赖 make geohash-int hiredis jemalloc linenoise lua #转换目录 cd .. #编译Redis make && make install #转换目录 cd utils/ #使用脚本安装服务 ./install_server.sh #启动服务 systemctl start redis_6379 systemctl status redis_6379#好了,就这些,尝试一下吧。
简单提示:
fatal error: jemalloc/jemalloc.h: No such file or directory cc: error: ../deps/hiredis/libhiredis.a: No such file or directory cc: error: ../deps/lua/src/liblua.a: No such file or directory cc: error: ../deps/geohash-int/geohash.o: No such file or directory cc: error: ../deps/linenoise/linenoise.o: No such file or directory
相关资源和参考: