Skip to content

Instantly share code, notes, and snippets.

@mikekolganov
Created December 12, 2020 20:29
Show Gist options
  • Save mikekolganov/731f1c608e4ea9c1219be30928b64460 to your computer and use it in GitHub Desktop.
Save mikekolganov/731f1c608e4ea9c1219be30928b64460 to your computer and use it in GitHub Desktop.
Install Postgres 12 on Ubuntu 20.04 from scratch
apt update
apt-get install postgresql-12
update /etc/postgresql/12/main/postgresql.conf: "listen_addresses = '*'"
update /etc/postgresql/12/main/pg_hba.conf: "host all all 0.0.0.0/0 md5"
service postgresql restart
su - postgres
psql
ALTER ROLE postgres WITH PASSWORD 'letmein';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment