redis入门
Redis:Remote Directionary Server (远程字典服务器)
linux 下安装redis
step1 解压
$ mkdir /usr/local/redis
$ cd /usr/local/src $ wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz $ tar xzf redis-2.6.14.tar.gz $ ln -s redis-2.6.14 redis #建立一个链接 $ cd redis $ make PREFIX=/usr/local/redis install #安装到指定目录中,如果不指定的话就直接在/usr/local/开始建立bin..等文件夹了修改redis.conf
################################ GENERAL #####################################
# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize yes
设置可以在后台运行
启动server端
/usr/local/redis/bin/redis-server ~/apps/redis-3.0.6/myredisConf/redis.conf
启动cl端
/usr/local/redis/bin/redis-cli -p 6379
测试
ping
pong
http://blog.csdn.net/red_sheeps/article/details/51493514
学好计算机,走遍天下都不怕

浙公网安备 33010602011771号