如何为弹性beanstalk tomcat提供配置 [英] How do I supply configuration to elastic beanstalk tomcat

查看:258
本文介绍了如何为弹性beanstalk tomcat提供配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本地部署到tomcat时,我将此更改(如下所示)发送到server.xml,有没有办法可以将其提供给Elastic Beanstalk?

when deploying locally to tomcat, I make this change (below) to server.xml, is there a way I can supply this to Elastic Beanstalk?

<Connector connectionTimeout="20000" port="8080" 
       protocol="org.apache.coyote.http11.Http11NioProtocol" 
       redirectPort="8443"/>'

谢谢
'

推荐答案

您可以在不提供自定义AMI的情况下立即执行此操作。按照以下说明操作: http://aws.typepad.com/ aws / 2012/10 / customize-elastic-beanstalk-using-configuration-files.html

You can do it now without providing custom AMI. Follow instructions in: http://aws.typepad.com/aws/2012/10/customize-elastic-beanstalk-using-configuration-files.html

为了提供自定义服务器xml create .ebextensions文件夹webapp,放置自定义 server.xml 文件并添加一个文件: server-update.config ,内容为:

In order to provide custom server xml create .ebextensions folder in webapp, put there custom server.xml file and add one more file: server-update.config with content:

container_commands:
  replace-config:
  command: cp .ebextensions/server.xml /etc/tomcat7/server.xml

这篇关于如何为弹性beanstalk tomcat提供配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆