Centos7源码编译安装Redis

详情见官网:https://redis.io/docs/getting-started/installation/install-redis-from-source/

1、下载源码包

wget https://download.redis.io/redis-stable.tar.gz

2、解压

tar -xzvf redis-stable.tar.gz
cd redis-stable
  • 编译
make
  • 安装
make install PREFIX=/usr/local/redis

3、启动

redis-server

4、问题解决

  • 编译报错:makezmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录
make MALLOC=libc && make install 

猜你喜欢

转载自blog.csdn.net/weixin_43824520/article/details/132590260