Last active
August 29, 2015 14:11
-
-
Save MonicaG/434077d82d05e9ba74f0 to your computer and use it in GitHub Desktop.
PostgreSQL installation notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I setup PostgreSQL on Centos 7 using Virtual Box. | |
Some notes on installing/running postgresql | |
- Good overall instructions on seting up PostgreSQL: | |
http://www.postgresonline.com/journal/archives/329-An-almost-idiots-guide-to-install-PostgreSQL-9.3,-PostGIS-2.1-and-pgRouting-with-Yum.html | |
Some additional changes/steps I did to get things working on Virtual Box. (Guest was Centos7 and Host Mac OSX) | |
- added following to /var/lib/pgsql/9.3/data/pg_hba.conf | |
host all all 10.0.2.15/24 md5 | |
- added port forwarding rule to virtual box (Settings -> Network -> Advanced -> Port Forwarding): | |
host ip: 127.0.0.1 port 5432 guest ip: 10.0.2.15 port: 5432 | |
- checked log in /var/lib/pgsql/9.3/data/pg_log/postgresql log file to check issues | |
-open firewalld port (reference: https://fedoraproject.org/wiki/PostgreSQL) | |
$ # make it last after reboot | |
$ sudo firewall-cmd --permanent --add-port=5432/tcp | |
$ # change runtime configuration | |
$ sudo firewall-cmd --add-port=5432/tcp | |
- in postgres: updated user to not expire (this fixed issue where I could not login from PGAdmin as the valid date was originally empty) | |
ALTER USER bob VALID UNTIL 'infinity'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment