Skip to content

Instantly share code, notes, and snippets.

@Burning-Chai
Created May 28, 2016 06:57
Show Gist options
  • Save Burning-Chai/a0614ea1a3b2092cff13f6891ec875dc to your computer and use it in GitHub Desktop.
Save Burning-Chai/a0614ea1a3b2092cff13f6891ec875dc to your computer and use it in GitHub Desktop.
How to install Postgres on CentOS7
$ wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-1.noarch.rpm
$ sudo rpm -ihv pgdg-redhat96-9.6-1.noarch.rpm
$ sudo yum -y install postgresql96-server postgresql96-devel postgresql96-contrib
$ sudo systemctl start postgresql-9.6
$ sudo systemctl status postgresql-9.6
$ sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
$ sudo systemctl enable postgresql-9.6
$ sudo systemctl start postgresql-9.6
@orangle
Copy link

orangle commented Dec 20, 2016

tks 💯 :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment