vi /var/lib/pgsql/9.2/data/postgresql.conf
listen_addresses = '*'
vi /var/lib/pgsql/9.2/data/pg_hba.conf