You can most definitely install Tomcat 10 using DNF (which is the successor to YUM).
I trust you understand the basics of RUNNING Tomcat, but once you have SSH'd into your instance running Amazon Linux 2023, here are the basic steps of installing Tomcat 10.
- I always like to update the package system:
sudo dnf update
- Install default available Java:
sudo dnf install java
NOTE: unsure which version of Tomcat you need, and which minimum version of Java? See Apache Tomcat Versions.
- Check that Java successfully installed by checking version:
- Use **dnf ** to install wget. It should already be there on Amazon Linux 2023 but just to make sure:
sudo dnf -y install wget
Change to a directory to which you have write permissions, such as
Do a wget to download Tomcat 10:
NOTE: again, if you are unsure which version you need, see Apache Tomcat Versions.
- Extract the TAR you just downloaded and move the files to a new directory.
tar -xvf apache-tomcat-10*.tar.gz
sudo mv apache-tomcat-10.0.23 /usr/local/tomcat
After this you'd create your Tomcat user(s), configure and run Tomcat.
Hope this helps! It worked on an Amazon Linux 2023 instance that I just spun up.
- asked 5 years ago
- asked 4 days ago
- asked 10 months ago
- How can I update yum or install packages without internet access on my EC2 instances running Amazon Linux 1 or Amazon Linux 2?AWS OFFICIALUpdated 2 months ago
- How can I upgrade my standard Amazon Linux 2 kernel version 4.14.x to Amazon Linux Extras kernel versions?AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 8 months ago
- EXPERTpublished 18 days ago