Install Tomcat Windows



References:

Steps To Install Tomcat For Windows:

  1. Download latest Tomcat from https://tomcat.apache.org/download-90.cgi

  2. Before run the Tomcat installer, make sure you already installed OpenJDK. Refer https://muzakkirskills.blogspot.com/2022/12/install-openjdk-for-windows.html on how to install OpenJDK on Windows.
  3. Open Tomcat installer. Click Yes.


  4. Click "Next".

  5. Click "I Agree".

  6. Change the settings based on what you preferred. Click "Next" after that.

  7. Change the settings based on what you preferred. Click "Next" after that.

  8. Choose your OpenJDK or JRE folder. After that, click "Next".

  9. Click "Install".

  10. Wait until it finished.

  11. Click "Finish".

  12. Open "Services" and make sure Tomcat service is run.


  13. Run Tomcat page to make sure that the Tomcat installation is installed correctly and perfectly. Use this link to open Tomcat page http://localhost:8080/ .

Steps To Enable HTTPS SSL on Tomcat:

  1. Stop Tomcat service.

  2. Open CMD and run it as Administrator.

  3. Go to your OpenJDK or JRE folder. Example like below.


  4. Generate a self signed certificate.


  5. Specify password. Please make sure that you remember your password or maybe you can keep it somewhere safe.



  6. Specify First and last Name. Put anything you want.

  7. Specify organizational unit, organization, City or Locality, State or Province, and country code. If you don't want, just keep it blank.

  8. Specify “yes” when asked to confirm whether the information is correct.

  9. When prompted for key password again, just press enter. If have warning, just ignore it.

  10. Go to C:\ and you will see localhost.jks the keystore you generated previously.

  11. Move the keystore to "C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf".

  12. Now at the folder "C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf", open and edit server.xml.

  13. Search for :8080 line and add new line under it to enable HTTPS. You can copy the commands provided below in the text box to put it in the new line.



  14. Before that, above command need to change the password with what you put previously at number 5.

  15. Restart tomcat.
  16. Access tomcat web interface using browser. https://localhost:8443 or https://SERVER_IP:8443 .

Comments

Archive

Contact Form

Send