Created
December 12, 2020 20:29
-
-
Save mikekolganov/731f1c608e4ea9c1219be30928b64460 to your computer and use it in GitHub Desktop.
Install Postgres 12 on Ubuntu 20.04 from scratch
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
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