4.1.3. Port Configuration

Currently, only the interface port and the status port are configurable. Please follow the below guidelines to modify them.

  • On Windows:

    1. Locate the file ProgramData/OPSWAT/Central/config.properties.

    2. You can modify the interface port (nginx_port, default 9000) and the status port (up_port, default 9026).

      tomcat_port=9009
      mongo_port=27017
      memcached_port=9005
      nginx_port=9000
      up_port=9026
    3. For the interface port:

      1. Locate the file Program Files/OPSWAT/Central/nginx/conf/serverSettings.conf

      2. Change listen to the same value as nginx_port as set in step 2.

        listen 9000;
    4. For the status port:

      1. Locate the file Program Files/OPSWAT/Central/nginx/conf/up.conf

      2. Change the port number after listen to the same value as up_port as set in step 2.

        listen 9026;
    5. Restart OPSWAT Central Management via the tray icon.

  • On Red Hat Enterprise Linux/Ubuntu:

    1. Locate the file /usr/lib/ocm/set-port.sh

    2. You can modify the interface port (nginx_port, default 9000) and the status port (up_port, default 9026).

      tomcat_port=9009
      mongo_port=27017
      memcached_port=9005
      nginx_port=9980
      up_port=9026
    3. For the interface port:

      1. Locate the file /opt/ocm/nginx/conf/serverSettings.conf

      2. Change listen to the same value as up_port as set in step 2.

        listen 9000;
    4. For the status port:

      1. Locate the file/opt/ocm/nginx/conf/up.conf

      2. Change the port number after listen to the same value as up_port as set in step 2.

        listen 9026;
    5. Restart OPSWAT Central Management via the command systemctl restart ocm.

Please refer to Setting up domain and change the Server URL setting to reflect the new address. Devices managed by OPSWAT Central Management will require OPSWAT Client's reinstallation upon an address change.