Database ( DB )/Database

postgresql 외부 접속

노루아부지 2019. 8. 5. 16:48

1. postgresql.conf

   listen_address='*'

 

2. pg_hba.conf

   host   all   all   0.0.0.0/0      password

 

위와 같이 수정했는데 접속이 되지 않는 경우는

# iptables -A INPUT -p tcp --dport 5432 -j ACCEPT

 

위의 명령어를 실행 한 후 postgres restart

728x90
loading