1. Download:
Wget http://download.redis.io/releases/redis-2.8.4.tar.gz2#unzip
Tar xzvf redis-2.8.4.tar.gz-C
/home/hadoop/zk
cd
/home/hadoop
/zk/redis-2.8.4
sudo make PREFIX=
/home/hadoop
/zk/redis-2.8.4
Install
3. Go to the bin directory and execute
./redis-server --port 9999
bin]$ ./redis-server --port 9999[21365] 29 Oct 09:22:22.741 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984. _._ _.-``__ ‘‘-._ _.-`` `. `_. ‘‘-._ Redis 2.8.4 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ‘‘-._ ( ‘ , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|‘` _.-‘| Port: 9999 | `-._ `._ / _.-‘ | PID: 21365 `-._ `-._ `-./ _.-‘ _.-‘ |`-._`-._ `-.__.-‘ _.-‘_.-‘| | `-._`-._ _.-‘_.-‘ | http://redis.io `-._ `-._`-.__.-‘_.-‘ _.-‘ |`-._`-._ `-.__.-‘ _.-‘_.-‘| | `-._`-._ _.-‘_.-‘ | `-._ `-._`-.__.-‘_.-‘ _.-‘ `-._ `-.__.-‘ _.-‘ `-._ _.-‘ `-.__.-‘
4. Test
. /Redis-cli-H master-P 9999 master: 9999> Set Name zhangglokmaster: 9999> get name "zhanggl" master: 9999> Get username (NiL) MASTER: 9999> set sex male okmaster: 9999> get sex "\ xe7 \ x94 \ xb7" master: 9999>
References: http://redis.io/documentation
Single-host redis deployment