Install pg9.6.1 on Redhat 7.2

来源:互联网 发布:java如何做好后端 编辑:程序博客网 时间:2024/06/05 21:50

Download: https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm


1.[root@pg9 ~]# yum installpgdg-centos96-9.6-3.noarch.rpm

2. [root@pg9 Packages]# yum installpostgresql96-server postgresql96-contrib postgresql96-devel postgresql96-libs

3. [root@pg9Packages]# su - postgres

4.[postgres@pg9 ~]$/usr/pgsql-9.6/bin/postgresql96-setup initdb


0 0
原创粉丝点击