标签:environ check serve 图片 start --exclude moni ping sla
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 PREFIX=/Users/truman/redis install
cp redis.conf /Users/truman/redis
daemonize yes
.bash_profile
export REDIS_HOME=/Users/truman/redis/
export PATH=$PATH:$REDIS_HOME/bin
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
┌─[truman@Survive] - [~] - [1474]
└─[$] redis-cli [17:12:06]
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>
标签:environ check serve 图片 start --exclude moni ping sla
原文地址:https://www.cnblogs.com/nedrain/p/13294622.html