码迷,mamicode.com
首页 > 其他好文 > 详细

Redis Install

时间:2020-07-13 18:01:27      阅读:63      评论:0      收藏:0      [点我收藏+]

标签:environ   check   serve   图片   start   --exclude   moni   ping   sla   

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

标签:environ   check   serve   图片   start   --exclude   moni   ping   sla   

原文地址:https://www.cnblogs.com/nedrain/p/13294622.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!