1、下载: wget http://download.redis.io/releases/redis-2.8.4.tar.gz 2、解压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
install3、进入目录 bin下执行
./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、测试
./redis-cli -h master -p 9999 master:9999> set name zhanggl OK master:9999> get name "zhanggl" master:9999> get username (nil) master:9999> set sex 男 OK master:9999> get sex "\xe7\x94\xb7" master:9999>
参考资料:http://redis.io/documentation
时间: 2024-10-09 05:21:17