No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor BCManager 6.5.0 eReplication User Guide 02

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Changing Ports of the eReplication Server

Changing Ports of the eReplication Server

Some ports are occupied when the eReplication Server is being started. If those ports are occupied by other applications or the format of port numbers is incorrect, the eReplication Server cannot be started. You must re-configure ports of the eReplication Server.

Prerequisites

  • A cross-platform remote access tool, such as PuTTY, has been obtained.
  • If the eReplication management server runs Linux, the password of user root or DRManager has been obtained.
  • If the eReplication management server runs Windows, the password of the administrator has been obtained.

Context

  • If the eReplication Server fails to be started, the number of occupied ports and incorrect ports will be displayed. You must re-configure the ports that are displayed.
  • For details about port functions, see the description in the port.ini file. The port.ini file is stored in the following paths:
    • Linux: /opt/BCManager/Runtime/bin/config/conf
    • Windows: installation path\bin\nginx\conf
  • The configuration requirements of a port number are as follows:
    • The value must be digits and unique (a port number cannot be configured at multiple fields).
    • Value range: 1024 to 65535 (Linux), 1 to 65535 (Windows), and 1024 to 65535 (database port gauss.port)

Procedure

  • Changing ports of the eReplication Server in Linux:

    For example, when the eReplication Server fails to be started, a message is displayed indicating that the linux.trap.listening.port=10161 port is occupied and the linux.http.to.https.redirect.port=80ab port is with an incorrect format.

    1. Use PuTTY to log in to the server where the eReplication Server is installed.

      • In template-based installation mode: Log in as user DRManager, and run the su root command to switch to user root.
      • In software package-based installation mode: Log in as user root.
      NOTE:

      The default password of user DRManager is Huawei@CLOUD8. In template-based installation mode, the default password of user root is Huawei@CLOUD8!.

    2. Run the TMOUT=0 command to prevent PuTTY from exiting due to session timeout.

      NOTE:

      After you run this command, the system continues to run when no operation is performed, resulting a risk. For security purposes, you are advised to run exit to exit the system after completing your operations.

    3. Run cd /opt/BCManager/Runtime/bin/config/conf to enter the path for saving the port configuration file.
    4. Run the vi port.ini command to open the port.ini port configuration file.
    5. Press i to go to the edit mode and edit the port.ini file.
    6. Re-configure the port number as prompted or based on the port number configuration requirements. For example, the port numbers to be changed are linux.trap.listening.port=10162 and linux.http.to.https.redirect.port=8080.
    7. After you have edited the port configuration file, press Esc and enter :wq! to save the changes and close the port.ini file.
    8. Run cd /opt/BCManager/Runtime/bin to enter the script save path.
    9. Run the sh startSystem.sh command to start the eReplication Server.

      • If the system is successfully restarted, no further operation is required.
      • If the system fails to be restarted, continue to configure the port.ini file till the eReplication Server is successfully restarted.

  • Changing ports of the eReplication Server in Windows:

    For example, when the eReplication Server fails to be started, a message is displayed indicating that the windows.trap.listening.port=160 port is occupied and the http.port=8a port is with an incorrect format.

    1. Log in as user administrator to the server where the eReplication Server is installed.
    2. Go to the installation path\bin\nginx\conf directory to open the port.ini port configuration file.

      NOTE:

      In Windows, the default installation path of the eReplication Server is C:\BCManager\Runtime. The installation path is user-definable. You are advised not to install the eReplication Server on a system disk.

    3. Re-configure the port number as prompted or based on the port number configuration requirements. For example, the port numbers to be modified are windows.trap.listening.port=161 and http.port=80.
    4. Save the port.ini file.
    5. Go to the installation path\bin directory.
    6. Double-click the startSystem.vbe file to start the eReplication Server.

      • If the system is successfully restarted, no further operation is required.
      • If the system fails to be restarted, continue to configure the port.ini file till the eReplication Server is successfully restarted.

Translation
Download
Updated: 2019-05-21

Document ID: EDOC1100075861

Views: 14516

Downloads: 70

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next