데이터 엔지니어 이것저것

Redis 외부 접근(Centos) 본문

개발

Redis 외부 접근(Centos)

pastime 2020. 11. 8. 02:55
728x90
sudo yum install epel-release
sudo yum update

sudo yum install redis
#redis 자동 시작
sudo systemctl start redis
sudo systemctl enable redis

#redis check
redis-cli ping

Redis  외부 접근 및 PW 설정

sudo vim /etc/redis/redis.conf
또는
sudo vim /etc/redis.conf

에 접근하여 
bind 127.0.0.1 을 
bind 0.0.0.0 으로 수정

저장 후 재시작
#sudo systemctl redis restart redis-server.service
 sudo systemctl start redis.service

#방화벽 비활성화
 systemctl disable firewalld
#방화벽 중지
 systemctl stop firewalld

 

 추후 소스코드 추가

728x90

'개발' 카테고리의 다른 글

REST란?  (0) 2021.06.26
Redis  (0) 2021.06.13
vs code 확장 프로그램  (0) 2021.01.09
chrome driver autoinstaller  (0) 2020.11.03
테스트 자동화 도구  (0) 2020.10.05