Installation Postgresql on Ubuntu 16:

Date Posted: 21-07-2017

Postgresql is a database server which is similar to mysql. In this post, we will explain on how to install postgresql on ubuntu host

Prerequisites:

  1. Ubuntu Host with root access.

Implementation:

Perform the update on the server

apt-get update

Install the postgresql and postgresql-contrib package.

apt-get install postgresql postgresql-contrib

Enable postgesql service on reboot safe.

systemctl enable postgresql

Start the postgresql server.

systemctl start postgresql

To access postgresql, use the below command.

sudo -u postgresql psql

To exit from postgresql prompt,

\q

 

Leave a Reply

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny