/etc/security/limits.d/90-app.conf
/etc/security/limits.d/90-app.conf
appuser soft nofile 65535
appuser hard nofile 65535
* soft core 0验证
验证
su - appuser -c 'ulimit -n'
su - appuser # 完整登录后执行 ulimit -nlimits.conf 对 systemd 服务默认不生效(服务由 PID1 直接拉起,无 PAM 会话);服务限制用单元的 LimitNOFILE/LimitNPROC。