Created
August 23, 2017 00:59
-
-
Save GabrielCzar/7b78a6ae6afd2356444cb7150d43387f to your computer and use it in GitHub Desktop.
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
-- O repositorio do postgres ja vem no deepin | |
sudo apt install postgresql-9.6 | |
-- Entre no PSQL | |
sudo -u postgres psql | |
-- Mude a senha do postgres | |
ALTER USER postgres WITH ENCRYPTED PASSWORD 'nova_senha'; | |
-- Acesse a pasta do postgres | |
/etc/postgresql/9.6/main | |
-- No arquivo postgresql.conf | |
-- Encontre as 'Connection Settings' e remova '#' do comando listen_addresses | |
listen_addresses = 'localhost' | |
-- Agora reinicie o postgres | |
/etc/init.d/postgresql restart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment