控制台出现如下提示信息:
[31726] 16 Jan 15:30:32.946 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 992.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.4 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 9999
| `-._ `._ / _.-' | PID: 31726
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[31726] 16 Jan 15:30:32.955 # Server started, Redis version 2.8.4
[31726] 16 Jan 15:30:32.955 * The server is now ready to accept connections on port 9999
三、测试
进入Redis安装目录的bin子目录。
./redis-cli -h 127.0.0.1 -p 9999
127.0.0.1:9999> ping
PONG
127.0.0.1:9999> set name zhang
OK
127.0.0.1:9999> get name
"zhang"