Skip to content

Instantly share code, notes, and snippets.

@GabrielCzar
Created August 23, 2017 00:59
Show Gist options
  • Save GabrielCzar/7b78a6ae6afd2356444cb7150d43387f to your computer and use it in GitHub Desktop.
Save GabrielCzar/7b78a6ae6afd2356444cb7150d43387f to your computer and use it in GitHub Desktop.
-- 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