How can I setup dhsi2-core to open in another port than 8080

I am trying to install the dhis2 v40.0 to open in a different port from 8080 because I have an instance running on that port. Where will I have to set it?

Hi @jetisco4u

Good question! Since the other process is also a dhis2 instance, it means that a tomcat instance is listening to 8080. There are several ways to do this but I will propose the easiest one. :smiley:

If you are not using this for production and have enough resources in your device, it is possible to install multiple Tomcat instances and configure each instance to listen to different port. If you install Tomcat in two different directories you will be able to run two tomcat instances but you will have to modify the configuration in the server.xml files for each instance.

Please let me know how it goes. :blush::+1:

1 Like