반응형

설치 환경
Centos7 Redis 5.0.4
redis 압축파일 다운로드 후 설치
xxxxxxxxxxwget http://download.redis.io/releases/redis-5.0.4.tar.gztar xzf redis-5.0.4.tar.gzcd redis-5.0.4make && 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 installerThis 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.confPlease select the redis log file name [/var/log/redis_6379.log] #log파일도 따로 입력 안하면 디폴트로 생성됨Selected default - /var/log/redis_6379.logPlease select the data directory for this instance [/var/lib/redis/6379] #이것도 디폴트로 생성됨Selected default - /var/lib/redis/6379Please select the redis executable path [] /root/redis-5.0.4/src/redis-server #redis-server 파일이 들어있는 경로 입력Selected config:Port : 6379Config file : /etc/redis/6379.confLog file : /var/log/redis_6379.logData dir : /var/lib/redis/6379Executable : /root/redis-5.0.4/src/redis-serverCli Executable : /root/redis-5.0.4/src/redis-cliIs this ok? Then press ENTER to go on or Ctrl-C to abort.Copied /tmp/6379.conf => /etc/init.d/redis_6379Installing service...Successfully added to chkconfig!Successfully added to runlevels 345!Starting Redis server...Installation successful!설치를 완료하면 재부팅시에도 자동으로 redis-server가 실행된다.
다음을 실행하여 redis-server가 구동중인 것을 확인할 수 있다.
xxxxxxxxxxps -ef | grep redis
반응형
