Linux/Redis
redis 설치
준섭이
2023. 12. 26. 13:59
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
끝!!