查看tomcat的版本

tomcat的版本可以通过执行bin下的 version.sh 或 version.bat获取到,如

# sh version.sh 
Using CATALINA_BASE:   /home/test/tomcat
Using CATALINA_HOME:   /home/test/tomcat
Using CATALINA_TMPDIR: /home/test/tomcat/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /home/test/tomcat/bin/bootstrap.jar:/home/test/tomcat/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.77
Server built:   Mar 28 2017 16:01:48 UTC
Server number:  7.0.77.0
OS Name:        Linux
OS Version:     2.6.32-696.3.1.el6.x86_64
Architecture:   amd64
JVM Version:    1.7.0_141-mockbuild_2017_05_09_14_20-b00
JVM Vendor:     Oracle Corporation

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
英文高清原版,本人资源全部免费,更多资源请查看我的上传资源 =================================================== 书 名:Apache Tomcat 7 作 者:Aleksa Vukotic,JamesGoodwill 出 版 社:Apress; 1 edition 出版时间:2011年9月5日 ISBN:9787111173199 纸书页数:294页 定 价:$44.99 内容简介: Apache Tomcat is the most popular open-source de-facto Java Web application server, standard for today's Web developers using JSP/Servlets. Apache Tomcat 7 covers details on installation and administration of Apache Tomcat 7. It explains key parts of the Tomcat architecture, and provides an introduction to Java Servlet and JSP APIs in the context of the Apache Tomcat server. In addition to basic concepts and administration tasks, Apache Tomcat 7 covers some of the most frequently used advanced features of Tomcat, including security, Apache web server integration, load balancing, and embedding Tomcat server in Java applications. Finally, through a practical primer, it shows how to integrate and use some of the most popular Java technologies with Apache Tomcat. In summary, Apache Tomcat 7 offers both novice and intermediate Apache Tomcat users a practical and comprehensive guide to this powerful software. What you’ll learn Install and set up Tomcat 7 on Windows and Unix platforms Manage and deploy application deployed on Tomcat 7 using Manager Application Secure Tomcat 7 server using security realms or HTTPS protocol Embed Tomcat 7 server into your desktop Java application Efficiently configure Tomcat 7 with Apache Web server Configure data sources and mail sessions using JNDI in Tomcat Configure logging for web applications deployed on Tomcat server Who this book is for This book is for those Web developers and/or Java programmers new to the open-source Apache Tomcat Web server. It's also for those new to the latest release, version 7. 作者简介: Aleksa Vukotic is a keen agile practitioner, with experience in team and project management using agile, which has brought success even in the most challenging environments. He has a track record of success with large companies, communicating the value of agile to high-level business stakeholders with little technical knowledge and transforming business requirements into easily understandable and implementable user stories. Turning to technology, Aleksa has been involved with the Spring Framework since early days, becoming an expert in enterprise Java development with Spring, along with other open-source technologies. In addition to his Java EE expertise, Aleksa often utilizes his problem-solving skills to tackle the most complex issues arising within the projects. The combination of high-level management skills and technical knowledge has made Aleksa invaluable in motivating software teams�to bring the best out the themselves and make rapid progress toward successful project delivery. His experience includes working with large and small teams on all levels�from high level management, planning, and architecture to low-level technical implementation. Aleksa has co-authored Pro Spring 2.5, published by Apress, and has had several articles published in respectable open-source publications. Outside of the working environment, Aleksa enjoys following football and�exploring the latest technology gadgets. James Goodwill is the co-founder and chief architect at Virtuas Solutions, LLC, located in Denver, Colorado. He has extensive experience in designing and architecting e-business applications. James authored the bestselling Java titles Developing Java Servlets and Pure JavaServer Pages. James is also a regular columnist on the Java community website OnJava.com and has recently been elected to JSR 152, the JSP 2.0 Expert Group.
这个Docker Compose文件看起来很不错,您已经正确地将Tomcat容器映射到主机端口8888和本地的server.xml、logs和webapps目录。但是,您的server.xml配置文件可能有问题,因此Tomcat容器可能无法正常启动。您可以检查server.xml文件是否正确配置了Tomcat实例。以下是一个示例server.xml文件的示例配置: ``` <?xml version="1.0" encoding="UTF-8"?> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> <Context path="" docBase="ROOT" debug="0" reloadable="true"/> </Host> </Engine> </Service> </Server> ``` 如果您的server.xml文件类似于上面的示例,并且正确配置了Tomcat实例,那么您的Docker Compose文件应该能够正常工作了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值