SlideShare a Scribd company logo
REDIS 기초
charsyam@naver.com
빌드 및 실행
Redis
In Memory
Single Thread
자료구조 제공
Why Redis?
설치가 쉽다.
다양한 기능.
시작하기 전에
http://redis.io 의 글들을 읽어보세요.
Build
단순히 make
Redis는 다른 라이브러리 의존성이 적
다.
의존성 라이브러리들도 deps 에 전부
포함됨.
Build 실패
빌드 중에 여러가지 이유로 실패를 하
고나면 make로 정상적으로 빌드가 되
지 않는 경우가 발생
Build 실패
charsyam@108:~/redis-2.8.7$ make
cd src && make all
make[1]: Entering directory `/home/charsyam/redis-2.8.7/src'
CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/home/charsyam/redis-2.8.7/src'
make: *** [all] Error 2
Build
Redis는 make 시에 다음 두 개의 파일
을 생성한다.
.make-prerequisites
.make-settings
.make-settings
STD=-std=c99 -pedantic
WARN=-Wall
OPT=-O2
MALLOC=jemalloc
……
……
Build – 해결책 #1
rm src/.make-settings
make
.make-settings 가 있으면, 의존성 모
듈을 모두 받은걸로 생각해서, src 폴더
의 빌드만 실행
Build – 해결책 #2
make distclean
실행
src/redis-server
실행
src/redis-server
이러면 디폴트 옵션으로 동작.
실행
src/redis-server ./redis.conf
redis.conf 의 설정으로 동작
redis.conf
src/redis-server
이러면 디폴트 옵션으로 동작.
redis.conf
port, bind, maxclients
save, appendonly, appendfsync, stop-writes-on-bgsave-error
slave-read-only, slave-priority
maxmemory
slaveof
……
Thank you!

More Related Content

PDF
Redis edu 3
PPTX
Redis
PPTX
Node Js와 Redis를 사용한 구조화된 데이터
PDF
Redis basicandroadmap
PPTX
이것이 레디스다.
PDF
Techplanetreview redis
PDF
Redis 2017
PDF
Redis acc 2015
Redis edu 3
Redis
Node Js와 Redis를 사용한 구조화된 데이터
Redis basicandroadmap
이것이 레디스다.
Techplanetreview redis
Redis 2017
Redis acc 2015

What's hot (20)

PPT
Redis Overview
PDF
Redis trouble shooting
PDF
Redis From 2.8 to 4.x
PDF
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
PDF
Redis From 2.8 to 4.x(unstable)
PDF
Redis on AWS
PDF
[스마트스터디]모바일 애플리케이션 서비스에서의 로그 수집과 분석
PDF
Cache governance
PDF
Redis edu 4
PDF
20141229 dklee docker
PDF
HTTP 완벽가이드- 19장 배포시스템
PDF
20141029 하둡2.5와 hive설치 및 예제
PDF
[2B5]nBase-ARC Redis Cluster
PDF
Play node conference
PPTX
About memcached
PPTX
Node.js를 사용한 Big Data 사례연구
PDF
닷넷프레임워크에서 Redis 사용하기
PPTX
HTTP 완벽가이드 7장 캐시
PDF
PDF
MariaDB Optimization
Redis Overview
Redis trouble shooting
Redis From 2.8 to 4.x
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
Redis From 2.8 to 4.x(unstable)
Redis on AWS
[스마트스터디]모바일 애플리케이션 서비스에서의 로그 수집과 분석
Cache governance
Redis edu 4
20141229 dklee docker
HTTP 완벽가이드- 19장 배포시스템
20141029 하둡2.5와 hive설치 및 예제
[2B5]nBase-ARC Redis Cluster
Play node conference
About memcached
Node.js를 사용한 Big Data 사례연구
닷넷프레임워크에서 Redis 사용하기
HTTP 완벽가이드 7장 캐시
MariaDB Optimization
Ad

More from DaeMyung Kang (20)

PPTX
Count min sketch
PDF
Ansible
PDF
Why GUID is needed
PDF
How to use redis well
PPTX
The easiest consistent hashing
PDF
How to name a cache key
PDF
Integration between Filebeat and logstash
PDF
How to build massive service for advance
PDF
Massive service basic
PDF
Data Engineering 101
PDF
How To Become Better Engineer
PPTX
Kafka timestamp offset_final
PPTX
Kafka timestamp offset
PPTX
Data pipeline and data lake
PDF
Redis acl
PDF
Coffee store
PDF
Scalable webservice
PDF
Number system
PDF
webservice scaling for newbie
PDF
Internet Scale Service Arichitecture
Count min sketch
Ansible
Why GUID is needed
How to use redis well
The easiest consistent hashing
How to name a cache key
Integration between Filebeat and logstash
How to build massive service for advance
Massive service basic
Data Engineering 101
How To Become Better Engineer
Kafka timestamp offset_final
Kafka timestamp offset
Data pipeline and data lake
Redis acl
Coffee store
Scalable webservice
Number system
webservice scaling for newbie
Internet Scale Service Arichitecture
Ad

Redis edu 1