按照安装教程,在安装数据库的时候出现下面的信息,数据库没有安装成功
yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm
。。。。。。。。
Setting up Install Process
No package http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm available.
Nothing to do
解决方法:
下载文件
wget http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm
rpm -ivh pgdg-redhat93-9.3-1.noarch.rpm
出现下面的警告,不管
warning: pgdg-centos93-9.3-1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 442df0f8
Preparing... ########################################### [100%]
1:pgdg-centos93 ########################################### [100%]
编辑repo文件
vi /etc/yum.repos.d/CentOS-Base.repo
添加下面的内容到[base]和[update]标签里
exclude=postgresql*
安装postgresql
yum install postgresql-server