Info |
---|
설치파일 다운로드 및 압축 풀기
Code Block |
---|
[svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 ~] sudo mkdir -p /skt/app [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 ~]$ cd /skt/app/ [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 app]$ ls -rlht total 0 [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 app]$ sudo wget http://download.redis.io/releases/redis-5.0.3.tar.gz --2019-03-27 14:11:26-- http://download.redis.io/releases/redis-5.0.3.tar.gz Resolving download.redis.io (download.redis.io)... 109.74.203.151 Connecting to download.redis.io (download.redis.io)|109.74.203.151|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1959445 (1.9M) [application/x-gzip] Saving to: 쁱edis-5.0.3.tar.gz 100%[================================================================================================================================================================>] 1,959,445 252KB/s in 8.0s 2019-03-27 14:11:35 (240 KB/s) - 쁱edis-5.0.3.tar.gzsaved [1959445/1959445] [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 app]$ sudo tar xvfz redis-5.0.3.tar.gz [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 app]$ sudo ln -s redis-5.0.3 redis [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 app]$ ls -rlth total 1.9M drwxrwxr-x 6 root root 309 Dec 12 21:25 redis-5.0.3 -rw-r--r-- 1 root root 1.9M Dec 12 21:26 redis-5.0.3.tar.gz lrwxrwxrwx 1 root root 11 Mar 27 14:14 redis -> redis-5.0.3 |
컴파일 및 서비스 구동 확인
Code Block |
---|
[appuser@SPV01 app]$ cd redis [appuser@SPV01 [svcapp_su@BPV-SKAPI-RDWAS01 redis]$ sudo make cd src && make all make[1]: Entering directory `/skt/app/redis-5.0.3/src' CC Makefile.dep make[1]: Leaving directory `/skt/app/redis-5.0.3/src' <중략> [svcapp_su@BPV-SKAPI-RDWAS01Hint: It's a good idea to run 'make test' ;) make[1]: Leaving directory `/skt/app/redis-5.0.3/src' [appuser@SPV01 redis]$ sudo make install cd src && make install make[1]: Entering directory `/skt/app/redis-5.0.3/src' CC Makefile.dep make[1]: Leaving directory `/skt/app/redis-5.0.3/src' make[1]: Entering directory `/skt/app/redis-5.0.3/src' Hint: It's a good idea to run 'make test' ;) INSTALL install INSTALL install INSTALL install INSTALL install INSTALL install make[1]: Leaving directory `/skt/app/redis-5.0.3/src' [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 redis]$ sudo chown -R svcapp:svcapp /skt/* [svcapp_su@BPV-SKAPI-RDWAS01appuser@SPV01 redis]$ sudo su - svcapp Last login: Mon Mar 25 16:22:21 KST 2019 from 223.39.117.9 on pts/0 [svcapp@BPV-SKAPI-RDWAS01appuser@SPV01 ~]$ redis-server --version Redis server v=5.0.3 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=7740c37e0296b9f6 [svcapp@BSV-SKAPI-RDWAS02 ~]$ [svcapp@BPV-SKAPI-RDWAS01appuser@SPV01 ~]$ redis-server 32708:C 27 Mar 2019 14:20:24.155 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 32708:C 27 Mar 2019 14:20:24.155 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=32708, just started 32708:C 27 Mar 2019 14:20:24.155 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 5.0.3 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 32708 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' 32708:M 27 Mar 2019 14:20:24.157 # Server initialized 32708:M 27 Mar 2019 14:20:24.157 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 32708:M 27 Mar 2019 14:20:24.157 * Ready to accept connections |