【数据库】--postgres学习

来源:互联网 发布:秦美人四灵进阶数据 编辑:程序博客网 时间:2024/06/10 04:59

木有办法,我们是哪里需要就会出现在哪里的人,折腾新技术(对自己而言)是必须的工作。

 postgres版本为:postgresql-8.4.10 linux版本为:Red Hat 4.1.2-54 gcc为:gcc version 4.1.2 20080704

1、安装

wget http://ftp.postgresql.org/pub/source/v8.4.10/postgresql-8.4.10.tar.gztar xzvf  postgresql-8.4.10.tar.gzcd postgresql-8.4.10./configuremake && make install

2、允许远程连接,修改文件pg_hba.conf(pg_hba.conf以自己的文件路径为准,寻找时可以使用 find / -name "pg_hba.conf“ | grep "pg_hba.conf"找到):
                

vi /usr/local/pgsql/data/pg_hba.conf
 修改为:
host all all 0.0.0.0/0 trust



0 0
原创粉丝点击