Changing Port for Tomcat
  • 29 Oct 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Changing Port for Tomcat

  • Dark
    Light
  • PDF

Article summary

In the event that the port for tomcat (8081) needs to be changed the following will need to be done:

  1. Change tomcat’s server.xml file to reflect the new port number:

    1. vi /var/lib/brains/app/apache-tomcat8/conf/server.xml

    2. Edit line 33 that reads as below and only change 8081 to the new port and then save your changes:

    3. <Connector port="8081" protocol="HTTP/1.1" SSLEnabled="true"

  2. Restart the platform service:

    1. systemctl restart brainspace-platform

  3. Update brainspace-haproxy config file to the new port:

    1. vi /etc/brainspace/haproxy/brainspace-haproxy.cfg

    2. Edit line 106 that reads as below and only change 8081 to the new port and then save your changes:

      1. server localhost_ssl 127.0.0.1:8081 ssl verify none check

  4. Restart brainspace-haproxy:

    1. systemctl restart brainspace-haproxy

  5. Login to the UI, and

    1. Navigate to the Services Tab.

    2. Update the port (8081) for the Application Server,

    3. Click Save.

Note

Making changes to the default port is not recommended. If this is changed it will need to be checked and possibly changed again after an upgrade is performed.


ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence