Last active
December 27, 2015 13:19
-
-
Save xiocode/7332027 to your computer and use it in GitHub Desktop.
install postgresql 9.3.1 on centos 6
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
wget http://ftp.postgresql.org/pub/source/v9.3.1/postgresql-9.3.1.tar.gz | |
tar -xvf postgresql-9.3.1.tar.gz | |
yum install readline-devel zlib-devel gcc | |
cd postgresql-9.3.1 | |
./configure | |
make && make install |
adduser postgres
su - postgres
mkdir data
/usr/local/pgsql/bin/initdb -D /home/postgres/data/
postgres.conf
listen_addresses = '*'
fsync=off
synchronous_commit=off
full_page_writes=off
bgwriter_lru_maxpages=0
pg_hba.conf
host all all 0.0.0.0/0 md5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/sbin/ldconfig /usr/local/pgsql/lib