- 29 Oct 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Changing Port for Tomcat
- Updated on 29 Oct 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
In the event that the port for tomcat (8081) needs to be changed the following will need to be done:
Change tomcat’s server.xml file to reflect the new port number:
vi /var/lib/brains/app/apache-tomcat8/conf/server.xml
Edit line 33 that reads as below and only change 8081 to the new port and then save your changes:
<Connector port="8081" protocol="HTTP/1.1" SSLEnabled="true"
Restart the platform service:
systemctl restart brainspace-platform
Update brainspace-haproxy config file to the new port:
vi /etc/brainspace/haproxy/brainspace-haproxy.cfg
Edit line 106 that reads as below and only change 8081 to the new port and then save your changes:
server localhost_ssl 127.0.0.1:8081 ssl verify none check
Restart brainspace-haproxy:
systemctl restart brainspace-haproxy
Login to the UI, and
Navigate to the Services Tab.
Update the port (8081) for the Application Server,
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.