Change port numbers for components

2024-10-10 08:05:52  Updated

This topic describes how to change the port numbers for components configured in OceanBase Migration Service (OMS) Community Edition.

Procedure

  1. Run the following command to enter the Docker container.

    docker exec -it ${CONTAINER_NAME} bash
    

    Note

    CONTAINER_NAME specifies the name of the container.

  2. In the root directory, run the following script:

    sh /root/docker_update_app_port.sh
    
  3. In 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.

  4. Check the new ports of the components and enter y for confirmation.

    Note

    By default, if you press Enter after the change, the process ends and the changes are aborted.

  5. 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 y or n as needed.

    Generally, you can enter y in the scenario of a single region with a single node, and enter n in other scenarios. You can directly press Enter to choose not to change the port in the URL of the CM service.

  6. Wait for the components to restart.

Contact Us