最近版本的log转速无法执行经过systemd启动时调用Java的旋转后操作。在我的日志里我看到:
logrotate[123]: Error occurred during initialization of VM
logrotate[123]: Failed to mark memory page as executable - check if grsecurity/PaX is enabled发布于 2022-11-12 14:40:42
以下提交强化选项添加到log转速的systemd脚本中:https://github.com/logrotate/logrotate/commit/1008bdf391e35684d8eeb2217c859f11e273ebb3
这些更改是在logCloudv3.14发布的(也包括在Debian 10中,发布于2019年7月)。
其中一个配置选项(MemoryDenyWriteExecute=true)导致执行Java程序失败。将此选项设置为false为我解决了这个问题,可能会降低系统的安全性/可靠性。
https://serverfault.com/questions/1115510
复制相似问题