본문 바로가기
Linux/Redis

redis 설치

by 준섭이 2023. 12. 26.
728x90

#### 패키지 설치

yum install gcc jemalloc varnish tcl tk

 

1. redis Download

wget https://download.redis.io/releases/redis-6.2.4.tar.gz 

 

 

2. redis Install

tar zxvf redis-6.2.4

cd redis-6.2.4

make

make PREFIX=/usr/local/redis install

 

3. Directory 생성

mkdir -p /usr/local/redis/conf

mkdir -p /usr/local/redis/log

mkdir -p /usr/local/redis/data/6379

 

4. Default conf 생성

cd /usr/local/src/redis-6.2.4/utils
./install_server.sh
Please select the redis port for this instance:[6379] 6379
Please select the redis config file name [/etc/redis/6379.conf] /usr/local/redis/conf/6379.conf
Please select the redis log file name [/var/log/redis_6379.log] /usr/local/redis/log/redis_6379.log
Please select the data directory for this intance [/var/lib/redis/6379] /usr/local/redis/data/6379
Please select the redis executable path [] /usr/local/redis/bin/redis-server

끝!!

 

 

 

'Linux > Redis' 카테고리의 다른 글

redis rdb to aof  (0) 2023.12.27
redis-cli 명령어  (0) 2023.12.26
redis 실행  (0) 2023.12.26
redis RDB와 AOF의 차이  (0) 2023.12.26
redis 설치 시 에러  (1) 2023.12.26