按照官方的下载安装指导:http://redis.io/download#installation
Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-3.0.3.tar.gz
$ tar xzf redis-3.0.3.tar.gz
$ cd redis-3.0.3
$ make
The binaries that are now compiled are available in thesrcdirectory. Run Redis with:
$ src/redis-server
You can interact with Redis using the built-in client:
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"
在执行make命令的时候执行不下去了,不能使用make命令呢?下载包解压后,使用make 提示The program 'make' can not be found in following packages.* make .... * make-gradle .......
操作截图:
在sudo高级权限下操作make还是不行:
原因:Ubuntu需要安装gcc工具;
最终问题解决方案:
安装gcc前执行$sudo apt-get update,若不成功再执行$sudo apt-get clean:
$sudo apt-get clean
$sudo apt-get update
$sudo apt-get build-dep gcc
按照上面处理就可以使用make命令了。
Ubuntu下用Docker安装Redis镜像和使用Redis容器分享:http://www.linuxdiyf.com/linux/10258.html