Created
January 27, 2015 18:52
-
-
Save demofly/01946f72e1ef48d6aa3f to your computer and use it in GitHub Desktop.
CentOS 6 PostgreSQL-9.1 server installation cheatsheet
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
| 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