通过wget获取安装包:
wget http://download.redis.io/redis-stable.tar.gz
![](https://i-blog.csdnimg.cn/blog_migrate/5f28f0649800f88eb39ec6f5c1b07a06.png)
解压到当前目录:
tar xzf redis-stable.tar.gz
![](https://i-blog.csdnimg.cn/blog_migrate/c50a030400adc3c30e4fb2ce9dbec32e.png)
安装gcc环境:
sudo apt-get install gcc
![](https://i-blog.csdnimg.cn/blog_migrate/90042c89fc547e9460fafa8e1f153087.png)
make MALLOC=libc
![](https://i-blog.csdnimg.cn/blog_migrate/35261c082a8616939b83332885ba6aa5.png)
sudo make install
![](https://i-blog.csdnimg.cn/blog_migrate/f89344b295db55aa0eb456add6c7f7fa.png)
redis-server
wget http://download.redis.io/redis-stable.tar.gz
tar xzf redis-stable.tar.gz
sudo apt-get install gcc
make MALLOC=libc
sudo make install
redis-server
转载于:https://www.cnblogs.com/Tiago/p/5127419.html