教你怎么安装Redis

以下命令以root用户运行:
#cd /tmp/
#wget http://redis.googlecode.com/files/redis-2.6.11.tar.gz
#tar xzf redis-2.6.11.tar.gz
#cd redis-2.6.11
#make
#make install
#cd utils
#./install_server.sh
根据提示输入端口,日志路径,数据路径等即可.
Redis的启动,关闭命令:
service redis_nnn start|stop

/etc/init.d/redis_nnn start|stop
其中, nnn指Redis的端口号
Redis客户端Shell:
redis-cli -h <host> -p <port>
Java客户端:
https://github.com/xetorthio/jedis

posted @ 2016-09-07 13:55  zolo®  阅读(148)  评论(0编辑  收藏  举报