CentOs6とほぼ同じ
yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server postgresql96-contrib
su – postgres
/usr/pgsql-9.6/bin/initdb -D /var/lib/pgsql/9.6/data –no-locale –encoding=UTF8
yum -y install epel-release
yum -y –enablerepo=epel install postgis2_96
systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service
コメント