简体   繁体   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 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

Long story short, we used to run a linux 'sed' command on the Tomcat server.xml file but it seems like it has been moved somewhere else.长话短说,我们曾经在 Tomcat 服务器上运行 linux 'sed' 命令。xml 文件似乎已移至其他地方。 Does anyone know where it might be now?有谁知道它现在可能在哪里?

I just installed tomcat on an ec2 AL2 instance, and I saw that the server.xml file is located in /etc/tomcat我刚刚在一个 ec2 AL2 实例上安装了 tomcat,我看到 server.xml 文件位于 /etc/tomcat

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

[ec2-user@ip- ~]$ java -version openjdk version "17.0.1" 2021-10-19 LTS OpenJDK Runtime Environment Corretto-17.0.1.12.3 (build 17.0.1+12-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.1.12.3 (build 17.0.1+12-LTS, mixed mode, sharing) [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,混合模式,共享)

the

Are you looking for the location of Corretto on AL2?您在寻找 AL2 上 Corretto 的位置吗?

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

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

I think the server.xml file resides in /etc/tomcat and this directory is sof-linked to /usr/share/tomcat/conf我认为server.xml文件位于/etc/tomcat中,该目录软链接到/usr/share/tomcat/conf

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

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