[lizhiwei@localhost Redis]$ lltotal 1248-rwxrwxr-x. 1 lizhiwei lizhiwei 1276198 Sep 20 23:31 redis-2.8.22.tar.gz[lizhiwei@localhost Redis]$ tar -zxvf redis-2.8.22.tar.gz
[lizhiwei@localhost Redis]$ lltotal 1252drwxrwxr-x. 6 lizhiwei lizhiwei 4096 Sep 8 01:03 redis-2.8.22-rwxrwxr-x. 1 lizhiwei lizhiwei 1276198 Sep 20 23:31 redis-2.8.22.tar.gz[lizhiwei@localhost Redis]$ cd redis-2.8.22[lizhiwei@localhost redis-2.8.22]$ make PREFIX=/home/lizhiwei/InstallSoft/redis installcd src && make installmake[1]: Entering directory `/home/lizhiwei/SoftWare/Redis/redis-2.8.22/src‘Hint: It‘s a good idea to run ‘make test‘ ;)INSTALL installINSTALL installINSTALL installINSTALL installINSTALL installmake[1]: Leaving directory `/home/lizhiwei/SoftWare/Redis/redis-2.8.22/src‘[lizhiwei@localhost redis-2.8.22]$
[lizhiwei@localhost bin]$ lltotal 15208-rwxr-xr-x. 1 lizhiwei lizhiwei 4574611 Oct 1 04:39 redis-benchmark-rwxr-xr-x. 1 lizhiwei lizhiwei 22201 Oct 1 04:39 redis-check-aof-rwxr-xr-x. 1 lizhiwei lizhiwei 45411 Oct 1 04:39 redis-check-dump-rwxr-xr-x. 1 lizhiwei lizhiwei 4676357 Oct 1 04:39 redis-clilrwxrwxrwx. 1 lizhiwei lizhiwei 12 Oct 1 04:39 redis-sentinel -> redis-server-rwxr-xr-x. 1 lizhiwei lizhiwei 6242453 Oct 1 04:39 redis-server[lizhiwei@localhost bin]$ ./redis-server[13745] 01 Oct 04:45:05.889 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf[13745] 01 Oct 04:45:05.890 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.[13745] 01 Oct 04:45:05.890 # Redis can‘t set maximum open files to 10032 because of OS error: Operation not permitted.[13745] 01 Oct 04:45:05.890 # Current maximum open files is 1024. maxclients has been reduced to 992 to compensate for low ulimit. If you need higher maxclients increase ‘ulimit -n‘._.__.-``__ ‘‘-.__.-`` `. `_. ‘‘-._ Redis 2.8.22 (00000000/0) 64 bit.-`` .-```. ```\/ _.,_ ‘‘-._( ‘ , .-` | `, ) Running in stand alone mode|`-._`-...-` __...-.``-._|‘` _.-‘| Port: 6379| `-._ `._ / _.-‘ | PID: 13745`-._ `-._ `-./ _.-‘ _.-‘|`-._`-._ `-.__.-‘ _.-‘_.-‘|| `-._`-._ _.-‘_.-‘ | http://redis.io`-._ `-._`-.__.-‘_.-‘ _.-‘|`-._`-._ `-.__.-‘ _.-‘_.-‘|| `-._`-._ _.-‘_.-‘ |`-._ `-._`-.__.-‘_.-‘ _.-‘`-._ `-.__.-‘ _.-‘`-._ _.-‘`-.__.-‘[13745] 01 Oct 04:45:05.900 # Server started, Redis version 2.8.22[13745] 01 Oct 04:45:05.900 # 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.[13745] 01 Oct 04:45:05.901 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.[13745] 01 Oct 04:45:05.901 * The server is now ready to accept connections on port 6379
[lizhiwei@localhost bin]$ ./redis-cli127.0.0.1:6379> pingPONG127.0.0.1:6379> set name lizhiweiOK127.0.0.1:6379> get name"lizhiwei"127.0.0.1:6379>
原文:http://www.cnblogs.com/LiZhiW/p/4851482.html