Redis Install

Posted nedrain

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Redis Install相关的知识,希望对你有一定的参考价值。

Install

download & make

wget http://download.redis.io/releases/redis-2.8.3.tar.gz
tar xzf redis-2.8.3.tar.gz
cd redis-2.8.3
make

make install

make PREFIX=/Users/truman/redis install

redis.conf

cp redis.conf /Users/truman/redis

edit the conf

技术图片

daemonize yes

Environment

.bash_profile

export REDIS_HOME=/Users/truman/redis/
export PATH=$PATH:$REDIS_HOME/bin

start the redis-server

redis-server

技术图片
and you can check by use "ps aux | grep redis"

Survive at ~ ? ps aux | grep redis
zhuya            22108   0.0  0.0  4287724    720 s001  S+    5:07PM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox redis
truman            21405   0.0  0.0        0      0 s001  Z     4:44PM   0:00.00 (redis-server)
truman            21879   0.0  0.0  4310572   1188 s001  T     4:51PM   0:00.65 redis-server *:6379
truman            21496   0.0  1.2  4492004 102200 s001  T     4:44PM   0:00.20 redis-rdb-to-slaves 127.0.0.1:22143
truman            21389   0.0  0.0  4376364   1648 s001  T     4:44PM   0:00.37 src/redis-server 127.0.0.1:22148
truman            21384   0.0  0.0  4311596   1472 s001  T     4:44PM   0:00.02 src/redis-server 127.0.0.1:23649
truman            21370   0.0  0.0  4408268   1776 s001  T     4:44PM   0:01.06 src/redis-server 127.0.0.1:23648
truman            20829   0.0  2.4  4492004 202880 s001  T     4:43PM   0:03.37 src/redis-server 127.0.0.1:22143

start the client

┌─[truman@Survive] - [~] - [1474]
└─[$] redis-cli                                                      [17:12:06]
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>


以上是关于Redis Install的主要内容,如果未能解决你的问题,请参考以下文章

redis执行make后就能用了,无需执行make install

redis-install

当我使用`go install`时,它返回的不是主包

Redis Install

redis install

[Chapt1] Redis Install on linux