Skip to content

Instantly share code, notes, and snippets.

@demofly
Created January 27, 2015 18:52
Show Gist options
  • Select an option

  • Save demofly/01946f72e1ef48d6aa3f to your computer and use it in GitHub Desktop.

Select an option

Save demofly/01946f72e1ef48d6aa3f to your computer and use it in GitHub Desktop.
CentOS 6 PostgreSQL-9.1 server installation cheatsheet
yum localinstall http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm
yum install postgresql91 postgresql91-server
service postgresql-9.1 initdb
chkconfig postgresql-9.1 on
service postgresql-9.1 start
su - postgres
/usr/pgsql-9.1/bin/psql
mcedit /var/lib/pgsql/9.1/data/pg_hba.conf
mcedit /var/lib/pgsql/9.1/data/postgresql.conf
service postgresql-9.1 restart
runuser -l postgres -c "/usr/pgsql-9.1/bin/postmaster -p '5432' -D '/var/lib/pgsql/9.1/data'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment