uuid-devel-1.6.1-10.el6.x86_64.rpm
postgresql92-libs-9.2.20-1PGDG.rhel6.x86_64.rpm
postgresql92-9.2.20-1PGDG.rhel6.x86_64.rpm
postgresql92-contrib-9.2.20-1PGDG.rhel6.x86_64.rpm
postgresql92-libs-9.2.20-1PGDG.rhel6.x86_64.rpm
postgresql92-9.2.20-1PGDG.rhel6.x86_64.rpm
postgresql92-contrib-9.2.20-1PGDG.rhel6.x86_64.rpm
postgresql92-server-9.2.20-1PGDG.rhel6.x86_64.rpm
注意安装顺序
完成后修改 postgres 密码
初始化数据库 service postgresql-9.2 initdb
vi /var/lib/pgsql/9.2/data/pg_hba.conf 最后加 host all all 0.0.0.0/0 md5
vi /var/lib/pgsql/9.2/data/postgresql.conf 将该文件中的listen_addresses项值设定为“*”
service postgresql-9.2 restart
psql >alter user postgres with password 'postgres';
现在就可以登录了,用户名密码:postgres/postgres ,数据库postgres ,端口5432,服务填空