Amazon Linux 2023 - tomcat versions available

0

Hello,

I would like to ask if tomcat10 available in the official repo of Amazon Linux 2023, or at least is there any way to install tomcat10 using yum?

Thanks

Maan
質問済み 1年前4371ビュー
2回答
2

By upgrading to AML2023 we lose automation for installing tomcat, creating the tomcat user, and adding the tomcat service? How is is this an improvement?

回答済み 1ヶ月前
-1

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.

  1. I always like to update the package system:

sudo dnf update

  1. 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.

  1. Check that Java successfully installed by checking version:

java -version

  1. Use **dnf ** to install wget. It should already be there on Amazon Linux 2023 but just to make sure:

sudo dnf -y install wget

  1. Change to a directory to which you have write permissions, such as /usr/tmp.

  2. Do a wget to download Tomcat 10:

wget https://archive.apache.org/dist/tomcat/tomcat-10/v10.0.23/bin/apache-tomcat-10.0.23.tar.gz

NOTE: again, if you are unsure which version you need, see Apache Tomcat Versions.

  1. 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.

AWS
回答済み 1年前
  • These instructions don't seem to install tomcat using DNF - they install it by downloading tomcat from apache.org using wget, then extracting it. This is as manual as it gets. What happens when there's an update to tomcat? Everyone needs to repeat the process? Are there plans to have tomcat10 available in the repos using DNF?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ