繁体   English   中英

AmazonLinux 2 上 Tomcat 8.5 的“server.xml”文件位置

[英]'server.xml' file location with Tomcat 8.5 on AmazonLinux 2

Hey I'm working on a service at work that we're trying migrate from Java JDK Amazon Linux to Corretto Amazon Linux 2. The service uses Tomcat 8.5

长话短说,我们曾经在 Tomcat 服务器上运行 linux 'sed' 命令。xml 文件似乎已移至其他地方。 有谁知道它现在可能在哪里?

我刚刚在一个 ec2 AL2 实例上安装了 tomcat,我看到 server.xml 文件位于 /etc/tomcat

[ec2-user@ip- ~]$ sudo find / -name server.xml /etc/tomcat/server.xml

[ec2-user@ip- ~]$ java -version openjdk 版本 "17.0.1" 2021-10-19 LTS OpenJDK 运行时环境 Corretto-17.0.1.12.3 (build 17.0.1+12-LTS) OpenJDK 64-Bit服务器 VM Corretto-17.0.1.12.3(build 17.0.1+12-LTS,混合模式,共享)

您在寻找 AL2 上 Corretto 的位置吗?

安装位置是 /usr/lib/jvm/java-11-amazon-corretto.<cpu_arch>。

参考站点: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/amazon-linux-install.html

我认为server.xml文件位于/etc/tomcat中,该目录软链接到/usr/share/tomcat/conf

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM