Download Source from: https://yum.postgresql.org/srpms/9.6/redhat/rhel-7-x86_64/postgresql96-9.6.1-1PGDG.rhel7.src.rpm
Follow Instructions from IBM: https://github.com/linux-on-ibm-z/docs/wiki/Building-PostgreSQL-9.4-on-RHEL7
You must also install the additional build dependencies: gettext
and systemd-devel
to build 9.6
End State: Postgres 9.6 is installed and running
Postgres Service config is in /lib/systemd/system/postgresql-9.6.service
run cat /lib/systemd/system/postgresql-9.6.service
to see directions for how to persistantly customize
sudo -u postgres createuser $USER
sudo service iptables stop sudo systemctl status iptables
- sudo service postgresql start sudo systemctl start postgresql-9.6.service
/etc/sysconfig/ifcfg-enccw0.0.1000
sudo systemctl unmask firewalld sudo systemctl start firewalld sudo firewall-cmd --add-service http sudo firewall-cmd --add-service https sudo firewall-cmd --zone=public --change-interface=enccw0.0.1000 sudo firewall-cmd --zone=public --add-port=1337/tcp sudo firewall-cmd --zone=public --add-port=80/tcp
sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 1337 netstat -tupln