--- title: "Changing Port for Tomcat" slug: "changing-port-for-tomcat" tags: ["HAproxy", "Server", "port", "tomcat", "change"] updated: 2024-10-29T13:06:26Z published: 2024-10-29T13:06:26Z canonical: "docs.revealdata.com/changing-port-for-tomcat" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.revealdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Changing Port for Tomcat 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. [!NOTE] > **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. ## Related - [HAProxy with Brainspace](/haproxy-with-brainspace.md) - [HAProxy Configuration Settings](/haproxy-configuration-settings.md) - [Setting up a Brainspace Disaster Recovery Site](/setting-up-a-brainspace-disaster-recovery-site.md) - [Services](/services.md)