Skip to content

Instantly share code, notes, and snippets.

@bushidocodes
Last active January 8, 2017 23:27
Show Gist options
  • Save bushidocodes/f330adb88ba8676adeba9897fa9807e8 to your computer and use it in GitHub Desktop.
Save bushidocodes/f330adb88ba8676adeba9897fa9807e8 to your computer and use it in GitHub Desktop.
s390x RHEL7 Steps

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

  1. 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

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