-
Notifications
You must be signed in to change notification settings - Fork 0
YT01‐Installation
Zhamri Che Ani edited this page Apr 10, 2026
·
1 revision
sudo apt update
sudo apt install openjdk-25-jre-headless
java -version
sudo apt install tomcat10 tomcat10-admin
sudo systemctl enable tomcat10
sudo systemctl start tomcat10
sudo systemctl status tomcat10
Tomcat usually listens on port 8080. Open this in browser:
http://YOUR_SERVER_IP:8080
It works !
If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!
This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat10/webapps/ROOT/index.html
Tomcat veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat10 and CATALINA_BASE in /var/lib/tomcat10, following the rules from /usr/share/doc/tomcat10-common/RUNNING.txt.gz.
You might consider installing the following packages, if you haven't already done so:
tomcat10-docs: This package installs a web application that allows to browse the Tomcat 10 documentation locally. Once installed, you can access it by clicking here.
tomcat10-examples: This package installs a web application that allows to access the Tomcat 10 Servlet and JSP examples. Once installed, you can access it by clicking here.
tomcat10-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.
NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat10/tomcat-users.xml.