-
Install Java JDK 8 or the latest update from http://java.com.
-
Download the latest version of Apache Tomcat from http://tomcat.apache.org.
Example file: apache-tomcat-9.0.36-windows-x64.zip
-
Extract the zip file contents to c:\apache\.
-
Locate and update the tomcat-users.xml file available in the <apache-home>\conf location with the following information:
<role rolename="tomcat"/>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="manager1" roles="tomcat,admin-gui,manager-gui"/>
-
Update the port number to 9090 in the server.xml file available in the <apache-home>\conf location with the following information:
<Connector port="9090" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="9090" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateFile="###Path-to-Certificate-File.cer###"
type="RSA" certificateKeyFile="###Path-To-Key-File.key###" />
</SSLHostConfig>
</Connector>
-
To install the Apache Tomcat as a service, perform the following steps:
-
Open command prompt as an Administrator.
-
Change directory to <apache-home>\bin.
-
Set JAVA_HOME= C:\Program Files\Java\jdk1.8.0_200.
-
Execute the following command:
service.bat install
-
-
Change the service startup type to Automatic.
-
Start the Apache Tomcat service.
-
In a browser enter the following to check if Apache Tomcat is installed successfully:
http://<FQDN>:9090