[转]How to Install Postgresql

./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test

只安装客户端

gmake -C src/bin install
gmake -C src/include install
gmake -C src/interfaces install
gmake -C doc install

This article is posted by on , link is .

Leave a reply