docs
uhost
Linux Service Configuration Guide
PostgreSQL Repository Configuration

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 CenterRepository URL
Beijing Availability Zone Acentos.mirror.surfercloud.com or centos.mirrors.surfercloud.com
North China Availability Zone Bcentos.mirror.cs.surfercloud.com or centos.mirrors.cs.surfercloud.com
North China Availability Zone Ccentos.mirror.yg.surfercloud.com or centos.mirrors.yg.surfercloud.com
Asia-Pacificcentos.mirror.hk.surfercloud.com or centos.mirrors.hk.surfercloud.com
North Americacentos.mirror.la.surfercloud.com or centos.mirrors.la.surfercloud.com
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved