UBUNTU 上安装redis-3.0.7(依赖于jemalloc-4.1.0)
1.先安装make和gcc:
apt-get install make
apt-get install gcc
2.ubuntu缺少jemalloc (提示错误:error:jemalloc/jemalloc.h:Nosuchfileordirectory)。
先安装它:下载地址https://github.com/jemalloc/jemalloc/releases
tar -jxvf jemalloc-4.1.0.tar.bz2 cd jemalloc-4.1.0/ && ./configure && make sudo make install sudo ldconfig
注意ldconfig和make install需要root权限,用sudo运行
在网站http://www.redis.io/下载了redis稳定版:redis-stable.tar.gz(3.0.7)
也可以在命令行里下载并安装:
$ wget http://download.redis.io/redis-stable.tar.gz $ tar xzf redis-stable.tar.gz $ cd redis-stable/src $ make
启动:
./redis-server
参考:
http://blog.csdn.net/yfkiss/article/details/7035579
http://www.redis.cn/
https://github.com/jemalloc/jemalloc/releases
相关推荐
liuhangtiant 2020-10-20
尹小鱼 2020-06-12
IBMRational 2020-02-14
qiguiting 2020-01-31
hbcbgcx 2019-10-28
qingmuluoyang 2019-10-31
归去来兮 2019-01-20
tubro0 2017-10-08
王道革 2015-08-17
fackyou00 2014-12-19
yztezhl 2014-10-29
runningo 2019-04-01
liuyulong 2019-04-01