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.
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:
Open the terminal server and go to the path.
cd /opt/flotomate/plugin-server/config/
Check the files contained in the folder using the
ll
command.
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.
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.
Once done, save the file using
Ctr + X
andCtr + Y
commands.Restart the plugin server using the below commands.
systemctl stop ft-plugins-server
systemctl start ft-plugins-server