1
wget http://download.redis.io/releases/redis-2.8.17.tar.gz
(wget命令主要用于下载文件,这里是指从远程下载)
2
解压
tar xzf redis-2.8.17.tar.gz
cd redis-2.8.17
make
然后进入make,安装组件
3
cd redis-2.8.17/src
到src目录下执行命令./redis-server,出现以下信息表示Redis启动成功
[root@maer src]# ./redis-server
[5685] 26 Jul 12:19:27.022 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf
[5685] 26 Jul 12:19:27.026 * Increased maximum number of open files to 10032 (it was originally set to 1024).
[5685] 26 Jul 12:19:27.028 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.17 (00000000/0) 32 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 5685
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[5685] 26 Jul 12:19:27.030 # Server started, Redis version 2.8.17
[5685] 26 Jul 12:19:27.030 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[5685] 26 Jul 12:19:27.030 * DB loaded from disk: 0.000 seconds
[5685] 26 Jul 12:19:27.030 * The server is now ready to accept connections on port 6379