1. Instala o PostgreSQL
1
sudo apt install postgresql postgresql-contrib
2. Inicia o PostgreSQL
1
sudo systemctl start postgresql
3. Cria seu usuario
1
sudo -i -u postgres
1
psql
1
2
3
4
CREATE ROLE admin
WITH LOGIN
PASSWORD '123456'
SUPERUSER;