[Redis] Centos7 Redis 설치

2019. 5. 12. 21:31·DB/Reids
반응형
redis 설치

redis_logo

설치 환경

Centos7 Redis 5.0.4

 

redis 압축파일 다운로드 후 설치

xxxxxxxxxx
wget http://download.redis.io/releases/redis-5.0.4.tar.gz
tar xzf redis-5.0.4.tar.gz
cd redis-5.0.4
make && sudo make install

 

[dir]/redis-5.0.4/utils/install_server를 실행하여 redis 서버를 설치한다.

xxxxxxxxxx
./utils/install_server.sh  #실행

실행하면 아래와 같은 메시지들이 나온다. 포트나 conf파일 경로, log파일 저장 경로 등을 입력한다. 원하는 설정을 입력할 수 있으며 입력하지 않을경우 디폴트값으로 설정된다. 포트의 디폴트 값은 6379이다.

x
Welcome to the redis service installer
This script will help you easily set up a running redis server
​
#여러가지 입력하라고 나온다.
Please select the redis port for this instance: [6379]  #포트입력
Please select the redis config file name [/etc/redis/6379.conf]    #conf파일 입력, 그냥 두면 디폴트로 생성됨
Selected default - /etc/redis/6379.conf
Please select the redis log file name [/var/log/redis_6379.log] #log파일도 따로 입력 안하면 디폴트로 생성됨
Selected default - /var/log/redis_6379.log
Please select the data directory for this instance [/var/lib/redis/6379] #이것도 디폴트로 생성됨
Selected default - /var/lib/redis/6379
Please select the redis executable path [] /root/redis-5.0.4/src/redis-server #redis-server 파일이 들어있는 경로 입력
Selected config:
Port           : 6379
Config file    : /etc/redis/6379.conf
Log file       : /var/log/redis_6379.log
Data dir       : /var/lib/redis/6379
Executable     : /root/redis-5.0.4/src/redis-server
Cli Executable : /root/redis-5.0.4/src/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
Copied /tmp/6379.conf => /etc/init.d/redis_6379
Installing service...
Successfully added to chkconfig!
Successfully added to runlevels 345!
Starting Redis server...
Installation successful!

설치를 완료하면 재부팅시에도 자동으로 redis-server가 실행된다.

 

다음을 실행하여 redis-server가 구동중인 것을 확인할 수 있다.

xxxxxxxxxx
ps -ef | grep redis

capture

 

참고1 참고2

반응형
저작자표시 비영리 변경금지 (새창열림)
'DB/Reids' 카테고리의 다른 글
  • [Redis] PHP 연동
  • [Redis] About Redis
덴마크초코우유
덴마크초코우유
IT, 알고리즘, 프로그래밍 언어, 자료구조 등 정리
    반응형
  • 덴마크초코우유
    이것저것끄적
    덴마크초코우유
  • 전체
    오늘
    어제
    • 분류 전체보기 (122)
      • Spring Framework (9)
        • Spring (5)
        • JPA (2)
        • Spring Security (0)
      • Language (51)
        • Java (11)
        • Python (10)
        • JavaScript (5)
        • NUXT (2)
        • C C++ (15)
        • PHP (8)
      • DB (16)
        • MySQL (10)
        • Reids (3)
        • Memcached (2)
      • 개발 (3)
      • 프로젝트 (2)
      • Book (2)
      • PS (15)
        • 기타 (2)
        • 백준 (2)
        • 프로그래머스 (10)
      • 딥러닝 (8)
        • CUDA (0)
        • Pytorch (0)
        • 모델 (0)
        • 컴퓨터 비전 (4)
        • OpenCV (1)
      • 기타 (16)
        • 디자인패턴 (2)
        • UnrealEngine (8)
        • ubuntu (1)
        • node.js (1)
        • 블로그 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    자바
    C
    C++
    MySQL
    알고리즘
    pytorch
    memcached
    mscoco
    게임
    map
    클래스
    Unreal Engine
    php
    블루프린트
    Unreal
    게임 개발
    PS
    언리얼엔진4
    Python
    CPP
    딥러닝
    NUXT
    redis
    파이썬
    프로그래머스
    JavaScript
    FPS
    JS
    select
    웹
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
덴마크초코우유
[Redis] Centos7 Redis 설치
상단으로

티스토리툴바