简体   繁体   English

将罐子添加到EC2实例上的tomcat的lib文件夹中

[英]Adding jars to tomcat's lib folder on ec2 instance

How to add jar files to tomcat's lib folder running on ec2 linux instances? 如何将jar文件添加到在ec2 linux实例上运行的tomcat的lib文件夹中? I have already installed tomcat6 on ec2 instance. 我已经在ec2实例上安装了tomcat6。 I want to add jars for memcahed session manager jars into tomcat's lib folder. 我想将用于memcahed会话管理器jar的jar添加到tomcat的lib文件夹中。 Can any one tell me how to do this? 谁能告诉我该怎么做?

You have two options: 您有两种选择:

  1. Temporary : Just scp those jars to the tomcat folder. 临时的 :只需将这些罐子抓到tomcat文件夹中即可。 But if you instanciate a new machine, you will have to do it again. 但是,如果您要实例化一台新机器,则必须再次进行。

  2. Permanent : After step#1, make an image of the instance. 永久 :在步骤#1之后,制作实例的映像。 This will preserve the jar for all the instances that you launch from this image. 这将保留从该映像启动的所有实例的jar。

I suggest to have something like ant deployment script, which is deploying/copying your app. 我建议使用诸如ant部署脚本之类的东西来部署/复制您的应用程序。 It copies WEB-INF/lib/*.jars or common jars to Tomcat folder 它将WEB-INF / lib / *。jars或通用jars复制到Tomcat文件夹

You can also use Beanstalk (ec2+Tomcat) and manage it from Amazon console(uploading you app with jars). 您还可以使用Beanstalk(ec2 + Tomcat)并从Amazon控制台进行管理(使用jar加载应用程序)。

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

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