pcyi 发表于 2012-10-3 03:23 
呵呵 再来看看技术流分析数据库;给个建议不知道楼主能不能出一份PG的安装白丁教程,方便站长们做个尝试
Important note:
In order to use PGDG repository properly, you may need to exclude postgresql packages from the repository of the distro.
Here are the steps:
As root, cd /etc/yum.repos.d
Edit distro's .repo file:
On Fedora, edit fedora.repo and fedora-updates.repo, [fedora] sections
On CentOS, edit CentOS-Base.repo, [base] and [updates] sections.
On Red Hat, edit edit /etc/yum/pluginconf.d/rhnplugin.conf [main] section.
Add
exclude=postgresql*
to the bottom of the section.
That is enough for excluding distro packages.
CentOS6:
X64
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-5.noarch.rpm
i386
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-5.noarch.rpm
yum install postgresql92 postgresql92-libs postgresql92-server postgresql92-contrib postgresql92-devel postgresql92-test
yum install libevent compat-libevent14
|