-
CentOS 8.2 Redis 설치Server/Redis 2020. 9. 29. 10:08
참조자료
리눅스 버전 확인: CentOS 8.2
Last login: Mon Sep 28 08:14:27 2020 from 61.43.45.2 [~~~~@~~~~ ~]$ sudo su - Last login: Mon Sep 28 08:15:06 UTC 2020 on pts/0 [root@~~~~ ~]# cat /etc/centos-release CentOS Linux release 8.2.2004 (Core) [root@~~~~ ~]#
EPEL Repository 추가 (Extra Packages for Enterprise Linux)
[root@~~~~ ~]# yum install epel-release Last metadata expiration check: 0:06:11 ago on Mon 28 Sep 2020 11:49:21 PM UTC. Package epel-release-8-8.el8.noarch is already installed. Dependencies resolved. Nothing to do. Complete! [root@~~~~ ~]# yum update
레디스 설치 및 시작, 시스템 등록, ping-pong
[root@de-joytracking-dev-vm-uc1f-web ~]# yum install redis [root@de-joytracking-dev-vm-uc1f-web ~]# systemctl start redis [root@de-joytracking-dev-vm-uc1f-web ~]# systemctl enable redis [root@de-joytracking-dev-vm-uc1f-web ~]# redis-cli ping PONG
레디스 포트 확인
(기본 설정은 로컬(127.0.0.1) 로 설정되어 있음
[root@~~~~ ~]# netstat -npat | grep redis tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 286430/redis-server
redis 설정 변경
[root@~~~~ ~]# vim /etc/redis.conf
################################## NETWORK ##################################### # By default, if no "bind" configuration directive is specified, Redis listens # for connections from all the network interfaces available on the server. # It is possible to listen to just one or multiple selected interfaces using # the "bind" configuration directive, followed by one or more IP addresses. # # Examples: # # bind 192.168.1.100 10.0.0.1 # bind 127.0.0.1 ::1 # # ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the # internet, binding to all the interfaces is dangerous and will expose the # instance to everybody on the internet. So by default we uncomment the # following bind directive, that will force Redis to listen only into # the IPv4 loopback interface address (this means Redis will be able to # accept connections only from clients running into the same computer it # is running). # # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT THE FOLLOWING LINE. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #bind 127.0.0.1 bind 0.0.0.0
클라이언트 툴을 통한 접속 확인
레디스 무료 GUI Tool
github.com/qishibo/AnotherRedisDesktopManager/releases
'Server > Redis' 카테고리의 다른 글
Spring Boot + Redis 삽질과 디버깅 (0) 2020.10.06 스프링 부트 + 레디스 설정/ 테스트 (0) 2020.09.29