获取 systemd 的默认限制

Get systemd's default limits

有没有办法找出在/etc/systemd/system.conf 文件中设置的参数的默认值?

systemd-system.conf 的手册页只是说:

When run as system instance systemd reads the configuration file
system.conf, otherwise user.conf. These configuration files contain a
few settings controlling basic manager operations.

变量被取消注释(在 user.conf + system.conf 中)并且文件 /etc/security/limits.conf 被 systemd 忽略。

那么,默认值是多少?都设置成无限制了吗?

答案是:

systemctl show

:)