How Do You Install PostgreSQL on a Debian/Ubuntu Linux Server?

Problem scenario
You are using Debian or Ubuntu Linux and you want to install PostgreSQL. What do you do?

Solution
Run these commands:
sudo apt -y install postgresql
sudo systemctl start postgresql@11-main
sudo pg_ctlcluster 11 main start

Leave a comment

Your email address will not be published. Required fields are marked *