木有办法,我们是哪里需要就会出现在哪里的人,折腾新技术(对自己而言)是必须的工作。
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.gz
tar xzvf postgresql-8.4.10.tar.gz
cd postgresql-8.4.10
./configure
make && 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