sudo apt update sudo apt install postgresql postgresql-contrib
sudo service postgresql start
sudo service postgresql stop
sudo service postgresql restart
sudo -u postgres psql
CREATE USER your_user WITH PASSWORD 'your_password'; CREATE DATABASE your_database; ALTER DATABASE your_database OWNER TO your_user;
psql -U your_user -d your_database -h localhost -W