Assume openjdk 21 installed, it is lts verssion.
Download latest jakarta tomcat from https://tomcat.apache.org/download-11.cgi, i.e. version 11.0.26 (currently).
extract it into your home (user) directory
change permission to start jakarta tomcat
$ cd apache-tomcat-11.0.26/bin/
$ chmod 744 *.sh
Directory structure is:
- bin
- conf
- lob
- logss
- temps
- webapps
- work
You must add user to manage your jakarta tomcat. User rules are:
- manager-gui - allows access to the HTML GUI and the status pages
- manager-script - allows access to the text interface and the status pages
- manager-jmx - allows access to the JMX proxy and the status pages
- manager-status - allows access to the status pages only
Edit <tomcat_home>/conf/tomcat-users.xml
<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0">
...
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
</tomcat-users>
To run jakarta tomcat
$ ./startup.sh&
[1] 6430
~/apache-tomcat-11.0.26/bin$ Using CATALINA_BASE: <home>/apache-tomcat-11.0.26
Using CATALINA_HOME: <home>/apache-tomcat-11.0.26
Using CATALINA_TMPDIR: <home>/apache-tomcat-11.0.26/temp
Using JRE_HOME: /usr
Using CLASSPATH: <home>/apache-tomcat-11.0.26/bin/bootstrap.jar:/home/dedetok/apache-tomcat-11.0.26/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
[1]+ Done ./startup.sh
Open your browser and open url http://localhost:8080/.
To shutdown, run $ ./shutdown.sh.
Your application will on <home>/webapps and root for http://localhost:8080 is on <home>/webapps/ROOT/
For production, go to "List Application", Undeploy any unused applications.