Difference between revisions of "Postgres"
From Bashlinux
Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
= PostgreSQL = |
= PostgreSQL = |
||
+ | == How to install and do the initialize postgres == |
||
− | == Setup == |
||
# Install postgresql packages |
# Install postgresql packages |
||
Revision as of 07:41, 9 November 2012
PostgreSQL
How to install and do the initialize postgres
- Install postgresql packages
yum install postgresql postgresql-server
- Initialize DB
mkdir /var/lib/pgsql/data chown postgres /var/lib/pgsql/data su - postgres initdb -D /var/lib/pgsql/data
- Start postgres
pg_ctl -D /usr/local/pgsql/data -l -logfile start