본문 바로가기 메뉴 바로가기

To be Master

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

To be Master

검색하기 폼
  • 분류 전체보기 (120)
    • MSAwithSpring (0)
    • android (47)
    • algorithm (0)
    • ubuntu (4)
    • postgresql (1)
    • RxJava (0)
    • Spring (14)
    • DesignPattern (6)
    • Intellij (1)
    • kafka (0)
    • influxdb (9)
    • etc (22)
    • 토이프로젝트 (3)
  • 방명록

postgresql (1)
[Postgresql] 외부접속 허용하기

postgresql를 외부에서 접속 가능하도록 설정해보자. 기본적으로 postgresql을 설치했다면 외부접속은 불가능하도록 되어 있다. ※ conf 파일들의 경로 : /etc/postgresql/10/main/ 1) postgresql.conf 파일 수정 - listen_addresses = '*' 로 변경 2) pg_hba.conf 파일 수정 - IPv4 local connections 에서 host의 ADDRESS를 0.0.0.0/0으로 변경 3) postgresql 재시작 - sudo service postgresql restart - netstat -nap | grep 5432 확인 (postgresql의 기본 포트는 5432)

postgresql 2021. 9. 6. 17:45
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바