Document Database Service

Modify Instance Port

2025-07-15 09:51:32

You can modify the database port in the DDS in the following steps:

  1. Go to the DDS Management Console.

  2. Click the Instance Management menu to go to the instance list page.

  3. Select the instance for which you want to modify the port and click the instance name to go to the instance details page.

  4. Locate the Database Port information in the Instance Information section and click Modify Port.

  5. For some resource pools, after you click Modify Port, the Modify Port pop-up window is displayed. On the pop-up window, enter the port in the New Port information section as instructed, and then click OK. The port is modified.

  6. For some resource pools, after you click Modify Port, the original port information will become an input box. Enter the port you want to modify, and then press Enter to complete the port modification.

Note:

  • Modifying the port will restart the instance. Exercise caution with this action.

  • Change the port range to 1024 to 65535. The port settings beyond the range are invalid.

  • The default port for a single-node instance or a replica set instance is 8030.

  • The default Mongos port for a cluster instance is 9030.

  • Ports of the Shard and ConfigServer nodes for a cluster instance cannot be modified.


5Q0J73fju4SA