Fargate中的日志:/usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted)

0

【以下的问题经过翻译处理】 我正尝试在Fargate服务中运行容器中的Apache 2.4.41 x86_64,但它无法启动。服务日志中的错误为: ‘/usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted) Setting ulimit failed. See README.Debian for more information.’

当我从Dockerfile在本地机器上构建和运行时,容器构建和运行正常,Apache服务器也可以启动,因此我认为这与Fargate /任务/容器设置有关,但不确定是哪个设置。我在互联网上找到了一篇文章,介绍了在ECS中设置限制的方法,但即使在我的容器配置中设置了这些限制,我仍然遇到了错误。有什么想法吗?

“ulimits”:[

{

“name”:“nofile”,

“softLimit”:2048,

“hardLimit”:2048

}

],

profile picture
전문가
질문됨 6달 전39회 조회
1개 답변
0

【以下的回答经过翻译处理】 通过在容器中设置 NOFILE 为 10485876,并在 /etc/apache2/envvars 中明确配置相同内容来解决这个问题

profile picture
전문가
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠