-
Notifications
You must be signed in to change notification settings - Fork 3
Database Configuration
YQ edited this page Jun 11, 2019
·
4 revisions
Ref: https://devstudioonline.com/article/configure-postgresql-in-ubuntu-and-connect-with-datagrip
First check the inbound rule of the cloud instance or container where the database was deployed.
Then update:
sudo vim /etc/postgresql/10/main/pg_hba.conf
Add the following:
host all all 0.0.0.0/0 md5
And update:
sudo vim /etc/postgresql/10/main/postgresql.conf
Uncomment the listen_addresses setting and set *:
listen_addresses='*'
Now restart your Postgres service.
sudo service postgresql restart