Linux操作系统选用Ubuntu 14.04, Redis的版本选取目前的最新稳定版本2.8.9。 客户端选用了Redis的Java版本jedis 2.4.2。
Redis的安装步骤
a. 下载Redis的安装包
wget http://download.redis.io/releases/redis-2.8.9.tar.gz
tar xvfz redis-2.8.9.tar.gz
cd redis-2.8.9
sudo apt-get install make
sudo make
sudo make install
find / -name 'redis*'
/usr/local/bin/redis-server
[3671] 10 Sep 13:59:53.818 # 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
[3671] 10 Sep 13:59:53.821 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
[3671] 10 Sep 13:59:53.822 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
[3671] 10 Sep 13:59:53.823 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.9 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 3671
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[3671] 10 Sep 13:59:53.828 # Server started, Redis version 2.8.9
[3671] 10 Sep 13:59:53.829 # 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.
[3671] 10 Sep 13:59:53.829 * The server is now ready to accept connections on port 6379
转载于:https://my.oschina.net/kenzheng/blog/547197