安装pgsql9.6

1、安装 pgsql

rpm -Uvh pgdg-centos96-9.6-3.noarch.rpm

yum install postgresql96-server postgresql96-contrib

rpm -aq| grep postgres

/usr/pgsql-9.6/bin/postgresql96-setup initdb

systemctl enable postgresql-9.6
systemctl start postgresql-9.6

覆盖

/var/lib/pgsql/9.6/data

postgresql.conf
pg_hba.conf

service postgresql-9.6 restart

su - postgres

psql -U postgres
ALTER USER postgres WITH PASSWORD 'astyun'

 \q 

安装fs 需要的类库

yum install unixODBC-devel
yum install speex-devel

猜你喜欢

转载自www.cnblogs.com/aimod/p/9090115.html
9.6