Changing the port number of the installation server

Applies to: On premises

You can change the port number of the OpenPages® installation server. This task is optional.

Procedure

  1. Log on to the computer where you set up the installation server.
  2. If the installation server is running, stop it.
    On Windows:
    • Stop the ibmopenpagesinstaller<version>.exe service.
    • Or, go to the <installation_server_home> directory of the installation server that you want to stop. Open a command prompt as an administrator, and then run the following command:
      npm run stop
    On Linux®:
    1. Open a shell and go to the <installation_server_home> directory of the installation server that you want to stop, for example /home/opuser/IBM/OPInstall/OP_<version>_Installer.
    2. Run the following command:
      npm run stop
  3. Create a .env file to set the port number.
    1. Create a new file and add the following line:
      INSTALLER_PORT=<port_number>
      Example:
      INSTALLER_PORT=9091
    2. Save the file in the <installation_server_home> directory. Name the file .env.

      Example: C:\IBM\OPInstall\OP_<version>_Installer /.env

  4. Start the installation server.
    Windows
    Do one of the following steps:
    • Start the ibmopenpagesinstaller<version>.exe service.
    • Go to the <installation_server_home> directory. For example C:\IBM\OPInstall\OP_<version>_Installer. Right-click the startup.bat file and click Run As Administrator.
      Note: If you do not see the startup.bat script, you can also find it and run it from the <installation_server_home>\install\Windows directory.
    Linux
    1. Open a shell and go to the <installation_server_home> directory, for example /home/opuser/IBM/OPInstall/OP_<version>_Installer.
    2. Run the following command:
      ./startup.sh
      Note: If you do not see the startup.sh script, you can also find it and run it from the <installation_server_home>/install/Linux directory.

Results

The port number of the installation server is updated. Use the new port number when you log on to the installation app: https://<host>:<port_number>.