Skip to Content
Linux服务配置指南PostgreSQL软件源配置

PostgreSQL软件源配置

Note

安联云云平台的PostgreSQL软件源目前仅适用于CentOS 5.x|6.x|7.x 64位,和Redhat6.x|7.x 64 位操作系统。

/etc/yum.repos.d/ 新建postgresql.repo文件并加入以下内容:

postgresql 9.3版本

[PostgreSQL93] name=postgresql93 Repository baseurl=http://centos.mirror.an-link.com/postgresql/9.3/$releasever/$basearch gpgcheck=0 enabled=1

postgresql 9.4版本

[PostgreSQL94] name=postgresql94 Repository baseurl=http://centos.mirror.an-link.com/postgresql/9.4/$releasever/$basearch gpgcheck=0 enabled=1

创建好repo文件之后,执行yum clean all && yum makecache,即可将新的仓库生效。

Note

各数据中心仓库域名有所区别,详见下表。

数据中心仓库URL
北京一可用区Acentos.mirror.an-link.com 或者 centos.mirrors.an-link.com
华北一可用区Bcentos.mirror.cs.an-link.com 或者 centos.mirrors.cs.an-link.com
华北一可用区Ccentos.mirror.yg.an-link.com 或者 centos.mirrors.yg.an-link.com
亚太centos.mirror.hk.an-link.com 或者 centos.mirrors.hk.an-link.com
北美centos.mirror.la.an-link.com 或者 centos.mirrors.la.an-link.com