去官網下載安裝文件
我下載的是redis-3.2.8版本
wget http://download.redis.io/releases/redis-3.2.8.tar.gz
解壓縮 => 切換目錄 => 編譯 => 安裝
tar -zxvf redis-3.2.8.tar.gz
cd redis-3.2.8
sudo make test
sudo make install
測試是否安裝成功
$ /usr/local/bin/redis-server
5716:C 20 Apr 11:36:22.918 # Warning: no config file specified, using the default config. In order to specify a config file use /usr/local/bin/redis-server /path/to/redis.conf
5716:M 20 Apr 11:36:22.920 * Increased maximum number of open files to 10032 (it was originally set to 256).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.2.8 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 5716
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
5716:M 20 Apr 11:36:22.921 # Server started, Redis version 3.2.8
5716:M 20 Apr 11:36:22.921 * DB loaded from disk: 0.000 seconds
5716:M 20 Apr 11:36:22.921 * The server is now ready to accept connections on port 6379
參考閱讀
http://blog.csdn.net/zhaoqiubo/article/details/47445431
http://www.lxweimin.com/p/6b5eca8d908b