Docs
uhost
Linux Service Configuration Guide
PostgreSQL Repository Configuration

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 CenterRepository URL
Beijing Availability Zone Acentos.mirror.ucloud-global.com or centos.mirrors.ucloud-global.com
North China Availability Zone Bcentos.mirror.cs.ucloud-global.com or centos.mirrors.cs.ucloud-global.com
North China Availability Zone Ccentos.mirror.yg.ucloud-global.com or centos.mirrors.yg.ucloud-global.com
Asia-Pacificcentos.mirror.hk.ucloud-global.com or centos.mirrors.hk.ucloud-global.com
North Americacentos.mirror.la.ucloud-global.com or centos.mirrors.la.ucloud-global.com