PostgreSQL Repository Configuration
Note
The PostgreSQL repositories on the SurferCloud 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.surfercloud.com/postgresql/9.3/$releasever/$basearch
gpgcheck=0
enabled=1
PostgreSQL 9.4 Version
[PostgreSQL94]
name=PostgreSQL94 Repository
baseurl=http://centos.mirror.surfercloud.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.surfercloud.com or centos.mirrors.surfercloud.com |
North China Availability Zone B | centos.mirror.cs.surfercloud.com or centos.mirrors.cs.surfercloud.com |
North China Availability Zone C | centos.mirror.yg.surfercloud.com or centos.mirrors.yg.surfercloud.com |
Asia-Pacific | centos.mirror.hk.surfercloud.com or centos.mirrors.hk.surfercloud.com |
North America | centos.mirror.la.surfercloud.com or centos.mirrors.la.surfercloud.com |