Last active
February 16, 2022 05:14
-
-
Save yalin/ec78fb73899762e12f732fd9a98be79c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edit; | |
* postgresql.conf | |
* pg_hba.conf | |
cd /etc/postgresql/12/main (Linux) | |
### postgresql.conf | |
set listen_addresses = '*' | |
### pg_hba.conf | |
# IPv4 local connections: | |
host all all 0.0.0.0/0 md5 | |
sudo service postgresql stop | |
sudo service postgresql start | |
sudo ufw allow 5432 | |
resource: https://o7planning.org/12255/configure-postgresql-to-allow-remote-connections |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment