일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- history
- programming_book
- Malaysia
- Book review
- leadership
- ubuntu
- management
- Programming
- MySQL
- Software Engineering
- Book
- Kuala Lumpur
- psychology
- django
- erlang
- QT
- web
- RFID
- hbase
- agile
- essay
- France
- hadoop
- Italy
- Spain
- program
- Python
- Linux
- comic agile
- Java
- Today
- Total
Install Redis 2.2.12 on Ubuntu 10.04 본문
sudo apt-get install redis-server
- Couldn't execute redis-cli properly
$ sudo apt-get install redis-server
$ redis-cli [same result when inputting redis-cli –h 127.0.0.1 –p 6379]
usage: redis-cli [-h host] [-p port] [-r repeat_times] [-n db_num] cmd arg1 arg2 arg3 ... argN
usage: echo "argN" | redis-cli [-h host] [-p port] [-r repeat_times] [-n db_num] cmd arg1 arg2 ... arg(N-1)
If a pipe from standard input is detected this data is used as last argument.
example: cat /etc/passwd | redis-cli set my_passwd
example: redis-cli get my_passwd
example: redis-cli -r 100 lpush mylist x
- configuration file: /etc/init.d/redis-server
- command: sudo /etc/init.d/redis-server [start | stop | restart]
build from src
- http://redis.io/
- http://library.linode.com/databases/redis/ubuntu-10.04-lucid
- http://kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis
/opt$ cd /opt/
/opt$ sudo su
/opt# wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz
--2011-08-11 11:00:40-- http://redis.googlecode.com/files/redis-2.2.12.tar.gz
Resolving redis.googlecode.com... 72.14.204.82
접속 redis.googlecode.com|72.14.204.82|:80... 접속됨.
HTTP request sent, awaiting response... 200 OK
Length: 455240 (445K) [application/x-gzip]
Saving to: `redis-2.2.12.tar.gz'
100%[==================================================================================================>] 455,240 286K/s in 1.6s
2011-08-11 11:00:45 (286 KB/s) - `redis-2.2.12.tar.gz' saved [455240/455240]
/opt# tar xfz redis-2.2.12.tar.gz
/opt# cd redis-2.2.12
/opt/redis-2.2.12# make
cd src && make all
make[1]: Entering directory `/opt/redis-2.2.12/src'
MAKE hiredis
cd ../deps/hiredis && make static ARCH=""
make[2]: Entering directory `/opt/redis-2.2.12/deps/hiredis'
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -g -ggdb net.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -g -ggdb hiredis.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -g -ggdb sds.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -g -ggdb async.c
ar rcs libhiredis.a net.o hiredis.o sds.o async.o
make[2]: Leaving directory `/opt/redis-2.2.12/deps/hiredis'
MAKE linenoise
cd ../deps/linenoise && make ARCH=""
make[2]: Entering directory `/opt/redis-2.2.12/deps/linenoise'
cc -c -Wall -W -Os -g linenoise.c
cc -c -Wall -W -Os -g example.c
cc -Wall -W -Os -g -o linenoise_example linenoise.o example.o
make[2]: Leaving directory `/opt/redis-2.2.12/deps/linenoise'
CC ae.o
CC anet.o
CC redis-benchmark.o
CC sds.o
CC adlist.o
CC zmalloc.o
MAKE hiredis
cd ../deps/hiredis && make static ARCH=""
make[2]: Entering directory `/opt/redis-2.2.12/deps/hiredis'
make[2]: `static'를 위해 할 일이 없습니다
make[2]: Leaving directory `/opt/redis-2.2.12/deps/hiredis'
LINK redis-benchmark
CC redis-cli.o
CC release.o
LINK redis-cli
CC redis-check-dump.o
CC lzf_c.o
CC lzf_d.o
LINK redis-check-dump
CC redis-check-aof.o
LINK redis-check-aof
CC dict.o
CC redis.o
CC pqsort.o
CC zipmap.o
CC sha1.o
CC ziplist.o
CC networking.o
CC util.o
CC object.o
CC db.o
CC replication.o
CC rdb.o
CC t_string.o
CC t_list.o
CC t_set.o
CC t_zset.o
CC t_hash.o
CC config.o
CC aof.o
CC vm.o
CC pubsub.o
CC multi.o
CC debug.o
CC sort.o
CC intset.o
CC syncio.o
CC slowlog.o
LINK redis-server
Hint: To run 'make test' is a good idea ;)
make[1]: Leaving directory `/opt/redis-2.2.12/src'
/opt/redis-2.2.12# make test
cd src && make test
make[1]: Entering directory `/opt/redis-2.2.12/src'
(cd ..; tclsh8.5 tests/test_helper.tcl --tags "" --file "")
/bin/sh: tclsh8.5: not found
make[1]: *** [test] 오류 127
make[1]: Leaving directory `/opt/redis-2.2.12/src'
make: *** [test] 오류 2
/opt/redis-2.2.12# apt-get install tcl8.5
/opt/redis-2.2.12# make test
cd src && make test
make[1]: Entering directory `/opt/redis-2.2.12/src'
(cd ..; tclsh8.5 tests/test_helper.tcl --tags "" --file "")
Testing Redis version 2.2.12 (00000000)
............BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBLLLLLBLPOP, BRPOP: multiple existing lists - linkedlLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLREM starting from tail with negative count - liLLLLLLLLLLLLSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSZZZZZZZZZZZZZZZZZZZRANGEBYSCORE fuzzy test, 100 ranges in 1000 elements sortedZZZZZZZZZZZZZZZZZZZZZZZZZHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH............................EXPIRE - After 6 seconds the key should no longer b.............................................................................................BBBBBBBBBBBSET 10000 numeric keys and access alBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLBRPOP: with zero timeout should block indefLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLSSSSSSSSSSSSSINTERSTORE with two sets, after a DEBUG RELOAD - hSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZHHHHHHHHHHHHHHHHHHHHHHHHHHHIs a zipmap encoded Hash promoteHHHHHHHHH......................................................................
831 tests, 831 passed, 0 failed
make[1]: Leaving directory `/opt/redis-2.2.12/src'
/opt/redis-2.2.12# cd ..
/opt# mkdir redis
/opt# cp /opt/redis-2.2.12/redis.conf /opt/redis/redis.conf
/opt# cp /opt/redis-2.2.12/src/redis-benchmark /opt/redis
/opt# cp /opt/redis-2.2.12/src/redis-cli /opt/redis
/opt# cp /opt/redis-2.2.12/src/redis-server /opt/redis
/opt# cp /opt/redis-2.2.12/src/redis-check-aof /opt/redis
/opt# cp /opt/redis-2.2.12/src/redis-check-dump /opt/redis
/opt# cp /opt/redis/redis.conf /opt/redis/redis.conf.default