Created
January 24, 2017 15:21
-
-
Save jorgedison/726d9463385fe6fbe1b2a1b7766ef548 to your computer and use it in GitHub Desktop.
Configuration PostgreSQL 9.4
This file contains hidden or 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
rpm -Uvh https://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-2.noarch.rpm -y | |
yum list postgresql94* | |
yum install postgresql95-server postgresql94 -y | |
/etc/init.d/postgresql-9.4 initdb | |
/etc/init.d/postgresql-9.4 start | |
vim /etc/sysconfig/iptables | |
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPT | |
ps -ef | grep postgres | |
--postgresql.conf → listen_addresses='*' | |
--pg_hba.conf → host all all X.X.X.X/32 trust | |
/etc/init.d/postgresql-9.4 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment