postgreSQL

centos6安装postgresql9.6

2017-10-12  本文已影响0人  fumenyaolang

psql版本:9.6
安装环境:centos 6
安装步骤:

yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-redhat96-9.6-3.noarch.rpm
yum install postgresql96
yum install postgresql96-server
service postgresql-9.6 initdb
chkconfig postgresql-9.6 on
service postgresql-9.6 start

原文为:https://www.postgresql.org/download/linux/redhat/#yum

编译安装:

cd postgresql-9.6.2
./configure --prefix=/home/postgres/psql/
make
make install
./initdb -D /home/postgres/pgdata/
cd /home/postgres/psql/
bin/pg_ctl stop -D  /home/postgres/pgdata

原文为:https://www.postgresql.org/docs/current/static/installation.html

上一篇下一篇

猜你喜欢

热点阅读