Skip to content

Instantly share code, notes, and snippets.

@dosbol
Last active July 17, 2018 05:46
Show Gist options
  • Save dosbol/16f5638bd9856d68a08a7867bb06c4d4 to your computer and use it in GitHub Desktop.
Save dosbol/16f5638bd9856d68a08a7867bb06c4d4 to your computer and use it in GitHub Desktop.
rpm -ivh https://yum.postgresql.org/9.6/redhat/rhel-7.3-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96 postgresql96-server postgresql96-libs postgresql96-contrib postgresql96-devel
/usr/pgsql-9.6/bin/postgresql96-setup initdb
vi /var/lib/pgsql/9.6/data/pg_hba.conf
pg_hba.conf excerpt (updated)
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service
yum install postgis24_96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment