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

查看:30
本文介绍了我如何为弹性 beantalk 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,在webapp中创建.ebextensions文件夹,在那里放置自定义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

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

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