1、centos 7 安装postgresql9.6/10和Postgis
--切换到root用户或者直接再root用户下操作
suroot
--卸载旧版
yum remove postgresql*
--安装打开https://yum.postgresql.org/repopackages.php ,找到自己需要的版本右键复制链接。
yuminstall https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
或者yum installhttps://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
--检查可用的安装包
yumlist post* 或者yum list postgresql*
--安装PostgreSql
yuminstall postgresql96.x86_64 postgresql96-server.x86_64 postgresql96-libs.x86_64postgresql96-contrib.x86_64 postgresql96-devel.x86_64
<