DEV

redis(레디스) 빌드하기 ubuntu18.04

MasterJ 2023. 9. 11. 19:00

https://github.com/redis/redis/tree/7.2

 

GitHub - redis/redis: Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs,...

github.com

 

심심해서 해보는 

레디스 빌드하기 

기본 7.2.1  버전 

 

아래 과정 일괄 수행 스크립트 

https://github.com/MasterJJ/utility/blob/master/script/build_redis.sh

 

 

환경은 ubuntu18.04

 

소스를 내려받고 

git clone https://github.com/redis/redis.git

브렌치 변경

git checkout -b 7.2.1 origin/7.2 

냅다 

make

 

빌드완료후 ./runtest 실행

tcl 버전이 낮거나 없다고 뭐라고한다

sudo apt install tcl

다시 ./runtest

꽤나 오래 걸린다. 처리 속도도 나오고 

 

참고로 make test 해보라고 빌드후 메세지가 나오는데  관리가 안된건지  수행되지 않는다.

 

runtest 가 더 신뢰가니 그것으로 테스트

 

 

 

참고 :

https://redis.io/docs/getting-started/installation/install-redis-from-source/

 

Install Redis from Source

Compile and install Redis from source

redis.io

 

디펜던시(프로젝트 빌드 관련 종속성)??

https://redis.io/docs/getting-started/installation/install-redis-from-source/

종속성 관련 다른 설치 필요 라이브러리나 컴파일러등은??   해당 링크의 내용을 첨언 한다

내용은 종속성의 없음  C컴파일러 와 libc 정도 ?    리눅스나  맥OS한정 예로 들자면 그렇다는데 너무 심플하군

빌드 에센셜 정도 예의상 설치해주면될거같다.  (아무것도 없는 환경경우) 

Install Redis from Source

Compile and install Redis from source

You can compile and install Redis from source on variety of platforms and operating systems including Linux and macOS. Redis has no dependencies other than a C compiler and libc.