如何在AWS ECS中传递JVM参数? [英] how to pass JVM arguments in AWS ECS?

查看:218
本文介绍了如何在AWS ECS中传递JVM参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Amazon ECS中设置微服务.如何配置JVM参数并将其传递给微服务?

I am trying to set up a microservice in Amazon ECS. How can JVM arguments be configured and passed to the microservice?

推荐答案

我们通过在任务上将它们作为env变量传递来完成这种事情.在任务中编辑容器时,向下滚动到Env Variables部分:

We do this sort of thing by passing them as env variables on the task. When you edit your container in your task, scroll down to the Env Variables section:

然后,当您启动应用程序时,可以在命令行上将它们作为普通的env变量引用.

You can then reference these as normal env variables on the command line when you launch your application.

这篇关于如何在AWS ECS中传递JVM参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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