# PostgreSQL Software Source Configuration

> Note
> 
> The PostgreSQL software sources on the 微网聚力 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.netlake.cn/postgresql/9.3/$releasever/$basearch
gpgcheck=0
enabled=1
```

## PostgreSQL 9.4 Version

```
[PostgreSQL94]
name=PostgreSQL94 Repository
baseurl=http://centos.mirror.netlake.cn/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. See the table below.


| Data Center | Repository URL                                             |
| ------- | --------------------------------------------------------- |
| Beijing Availability Zone A| centos.mirror.netlake.cn or centos.mirrors.netlake.cn       |
| North China Availability Zone B | centos.mirror.cs.netlake.cn or centos.mirrors.cs.netlake.cn |
| North China Availability Zone C | centos.mirror.yg.netlake.cn or centos.mirrors.yg.netlake.cn |
| Asia-Pacific | centos.mirror.hk.netlake.cn or centos.mirrors.hk.netlake.cn |
| North America | centos.mirror.la.netlake.cn or centos.mirrors.la.netlake.cn |
