728x90
반응형
폐쇄망/내부망 Redis 설치
폐쇄망? 내부망?
외부와의 접속을 철저히 차단한 독립적인 네트워크
Redis
메모리 기반의 고성능 키-값(Key-Value) 데이터 저장소
폐쇄망/내부망 Redis 설치
#필수패키지 설치 확인
[root@]$ rpm qa | grep 패키지명
#필수패키지 설치
[root@]$ dnf install -y \
gcc \
make \
tcl
| gcc | C언어 컴파일러 |
|---|---|
| make | 소스 코드 컴파일 및 설치 |
| tcl | Redis를 소스에서 컴파일. Redis의 동작을 검증 |
[root@] dnf install tcl
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Last metadata expiration check: 2:31:12 ago on Mon Aug 4 14:57:02 2025.
Dependencies resolved.
============================================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================================
Installing:
tcl x86_64 1:8.6.10-7.el9 ubi-9-baseos-rpms 1.1 M
Transaction Summary
============================================================================================================================================================
redis-7.0.12 기준 필수설치유틸 준비
#redis-7.0.12.tar.gz
#필수프로그램 설치
#Redis 설치 경로 `$REDIS_HOME=/sw/redis` 지정
[root@]$ cd /sw/redis/install-set
[root@]$ wget http://download.redis.io/releases/redis-7.0.12.tar.gz
[root@]$ tar xvfz redis-7.0.12.tar.gz
#Redis 설치
[root@]$ cd $REDIS_HOME/install-set/redis-7.0.12
[root@]$ make
[root@]$ make install
[root@]$ make clean
Redis 설정
#레디스 설정 파일
[root@]$ cd $REDIS_HOME
[root@]$ vi redis.conf
# 백그라운드 기동 여부
daemonize yes
# 외부접속 허용 여부
bind 0.0.0.0
# 포트 설정
port 포트번호
Redis 기동
#Redis 기동
[root@]$ cd $REDIS_HOME/bin
[root@]$ ./redis-server /etc/redis/redis.conf
#Redis 접속
[root@]$ redis-cli -p 포트번호
#Redis 기동 확인
[root@]$ redis-cli -p 포트번호 ping
PONG!728x90
반응형
'오픈소스' 카테고리의 다른 글
| [오픈소스] 폐쇄망/내부망 Subversion 설치 (0) | 2025.10.22 |
|---|---|
| [오픈소스] 폐쇄망/내부망 Apache2.4 설치 (0) | 2025.09.25 |
| [GitLab] Docker 환경에서 GitLab 백업/복원 (0) | 2025.07.13 |
| [오픈소스] 브라우저 터미널 직접 만들기: node-pty로 bash 연결하는 실시간 터미널 (0) | 2025.06.30 |
| [오픈소스] dependency-manager: ibraries.io 기반 라이브러리 자동 수집 도구 (0) | 2025.06.26 |
댓글