Spread the love

how to install postgresql on linux

Download postgresql-9.2.4-1-linux-x64.run for CentOS-6 64 bit
# chmod x postgresql9.2.41linuxx64.run
# ./postgresql9.2.41linuxx64.run
————————————————————————
Welcome to the PostgreSQL Setup Wizard.

 

————————————————————————
Please specify the directory where PostgreSQL will be installed.

 

Installation Directory [/opt/PostgreSQL/9.2]:
You launch the installer .
It asks you few basic questions like location of the installation, password of the user
Please wait while Setup installs PostgreSQL on your computer.

Installing
0% ______________ 50% ______________ 100%
#########################################

———————————————————————–
Setup has finished installing .

# su postgres
Password:
bash
4.1$ createdb testdb
bash
4.1$ psql testdb
psql
(8.4.13, server 9.2.4)
#  service postgresql restart
Stopping postgresql service:                               [  OK  ] Starting postgresql service:                               [  OK  ]
How to install postgresql on LINUX

Leave a Reply

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