run postgresql ubuntu code example

Example 1: start postgresql ubuntu

sudo service postgresql start

Example 2: postgresql install ubuntu

sudo apt update
sudo apt install postgresql postgresql-contrib

sudo -u postgres createuser --interactive

sudo -u postgres createdb database1

Example 3: install postgresql ubuntu

sudo apt install postgresql postgresql-contrib

Example 4: how to run postgresql in linux

sudo service postgresql-9.3 start

Example 5: how to run postgresql in linux

sudo service postgresql-9.3 initdb
sudo service postgresql-9.3 start

Example 6: how to run postgresql in linux

sudo service postgresql-9.3 initdb