Skip to main content
Version: 8.5.0

How to Change the Port of Plugin Server?

Plugin server is a server which hosts/runs the plugins created for fulfilling specific functionalities. To get the desired output, the Main Server calls a plugin server to execute the specific plugin. Both the servers run on port 8080 by default. If the port number of the Main Server gets changed, you need to change the Plugin Server port as well. This document describes the procedure to change the default Plugin Server port.

note

The port number is required to be changed only when the plugin does not execute and the “Connection refused” error message appears.

Prerequisites

  • Latest Plugin Server with latest plugins must be installed.
  • ServiceOps v8.3.9 and above.

Procedure

To change the default port (8080) of the Plugin Server, follow the steps below:

  1. Open the terminal server and go to the path.

    cd /opt/flotomate/plugin-server/config/

  2. Check the files contained in the folder using the ll command.

  1. Open the file “application-hosted.properties” using the cat command as shown below:

    cat application-hosted.properties

    The below line appears. com.flotomate.mainserver.connection.url=http://localhost:80/apiflotomate@serviceops:/opt/flotomate/plugin-server/config

Here, change the port number (80) and set it same as the Nginx server.

  1. To edit the file, use the below command:

    nano application-hosted.properties

The below screen appears. Change the port number. For example, here the port number is changed to 9050.

  1. Once done, save the file using Ctr + X and Ctr + Y commands.

  2. Restart the plugin server using the below commands.

    systemctl stop ft-plugins-server
    systemctl start ft-plugins-server