The cloud migration feature of ApsaraDB RDS for PostgreSQL allows you to migrate the data of a self-managed PostgreSQL instance from an Elastic Compute Service (ECS) instance or a data center to an ApsaraDB RDS for PostgreSQL instance. This topic describes how to configure the firewall of the server on which a self-managed PostgreSQL instance resides to allow access to the port of the self-managed PostgreSQL instance before a cloud migration.
Procedure
Note In this topic, the server on which the self-managed PostgreSQL instance resides runs
CentOS. For more information about how to configure the firewall of a server that
runs a different operating system, see the related official documentation.
CentOS 7
CentOS 6 or earlier versions
Note You can also disable the firewall of the server before a cloud migration. In this
case, you do not need to configure the firewall.
- CentOS 7:
systemctl stop firewalld.service
- CentOS 6 or earlier versions:
service iptables stop
What to do next
Migrate the data of a self-managed PostgreSQL instance to an ApsaraDB RDS for PostgreSQL instance