Created
February 20, 2021 06:45
-
-
Save vivekrk1992/0c4426a7e0a9bbb4f7109a0789a70e96 to your computer and use it in GitHub Desktop.
Server database allow all connection
This file contains 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
file location | |
/etc/postgresql/12/main | |
# add this line to end of the file | |
host all all 0.0.0.0/0 md5 |
This file contains 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
file location | |
/etc/postgresql/12/main | |
#listen_addresses = 'localhost' # what IP address(es) to listen on; | |
listen_addresses = '*' |
This file contains 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
restart postgresql server | |
sudo service postgresql restart | |
if you use ufw please check that port also |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment