PostgreSQL Repository Configuration
Note
The PostgreSQL repositories on the UCloud Global cloud platform are currently only applicable to CentOS 5.x|6.x|7.x 64-bit and Redhat6.x|7.x 64 bit operating systems.
In /etc/yum.repos.d/, create a new file postgresql.repo and insert the following content:
PostgreSQL 9.3 Version
[PostgreSQL93]
name=PostgreSQL93 Repository
baseurl=http://centos.mirror.ucloud-global.com/postgresql/9.3/$releasever/$basearch
gpgcheck=0
enabled=1
PostgreSQL 9.4 Version
[PostgreSQL94]
name=PostgreSQL94 Repository
baseurl=http://centos.mirror.ucloud-global.com/postgresql/9.4/$releasever/$basearch
gpgcheck=0
enabled=1
After creating the repo file, execute yum clean all && yum makecache to activate the new repository.
Note
The repository domain names are different for each data center, refer to the table below.
Data Center | Repository URL |
---|---|
Beijing Availability Zone A | centos.mirror.ucloud-global.com or centos.mirrors.ucloud-global.com |
North China Availability Zone B | centos.mirror.cs.ucloud-global.com or centos.mirrors.cs.ucloud-global.com |
North China Availability Zone C | centos.mirror.yg.ucloud-global.com or centos.mirrors.yg.ucloud-global.com |
Asia-Pacific | centos.mirror.hk.ucloud-global.com or centos.mirrors.hk.ucloud-global.com |
North America | centos.mirror.la.ucloud-global.com or centos.mirrors.la.ucloud-global.com |