This topic describes how to change the port numbers for components configured in OceanBase Migration Service (OMS) Community Edition.
Procedure
Run the following command to enter the Docker container.
docker exec -it ${CONTAINER_NAME} bashNote
CONTAINER_NAMEspecifies the name of the container.In the
rootdirectory, run the following script:sh /root/docker_update_app_port.shIn the step of changing ports for components configured in OMS, enter the ports of the Nginx, GHANA, cluster management (CM), Supervisor, and sshd services as prompted. If you want to retain the current configurations, press Enter.
Check the new ports of the components and enter
yfor confirmation.Note
By default, if you press Enter after the change, the process ends and the changes are aborted.
In the step of modifying the config.yaml file and creating configuration files for OMS components, the message The CM port is modified. Do you want to modify the port in the cm_url parameter? is displayed when you change the port for the CM service. You can enter
yornas needed.Generally, you can enter
yin the scenario of a single region with a single node, and enternin other scenarios. You can directly press Enter to choose not to change the port in the URL of the CM service.Wait for the components to restart.