我用下面的命令安装了tomcat9
sudo su
yum install tomcat9
但是在tomcat9目录下/usr/share/tomcat9/bin
,startup.sh
找不到该文件。下面只有3个文件:
$ls /usr/share/tomcat9/bin/
bootstrap.jar catalina-tasks.xml tomcat-juli.jar
我尝试运行tomcat9也报错:
/usr/sbin/tomcat9 start
Failed to start tomcat.service: Unit tomcat.service not found.
汤姆猫版本:
$java -cp /usr/share/tomcat9/lib/catalina.jar org.apache.catalina.util.ServerInfo
Server version: Apache Tomcat/9.0.71
Server built: Apr 13 2023 00:00:00 UTC
Server number: 9.0.71.0
OS Name: Linux
OS Version: 6.1.25-37.47.amzn2023.x86_64
Architecture: amd64
JVM Version: 17.0.7+8-LTS-224
JVM Vendor: Oracle Corporation
操作系统是 Amazon Linux 2023
$cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01"
我如何修复它才能运行?