我在日志中看到此错误:
/usr/sbin/apachectl: 99: ulimit: error setting limit (Operation not permitted) /usr/sbin/apachectl: 99: ulimit: error setting limit (Operation not permitted)
Setting ulimit failed. See README.Debian for more information.
首先,有人知道为什么 apache/apachectl 试图调用 ulimit?
其次,假设它是合法的,我怎么能让这个操作起作用?我以 root 用户身份调用 apachectl,所以我不明白为什么这会成为一个问题。尽管默认情况下 apachectl 可能以与 root 不同的用户身份运行?
最佳答案
看起来您必须像这样在 ECS 配置中设置 ulimits:
https://www.infoworld.com/article/3067303/how-to-configuring-linux-usage-limits-with-docker-and-aws-ecs.html
"containerDefinitions": [
{
...
"ulimits": [
{
"softLimit": 2048,
"hardLimit": 2048,
"name": "nofile"
}
]
...
}
]
关于apache - ulimit : error setting limit - Operation not permitted - (using apachectl in container on ECS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57486473/