我安装了新的CentOS 7,并注意到我的/ var / log / messages文件中充满了这样的消息
Mar 6 08:40:01 myhostname systemd: Started Session 2043 of user root.
Mar 6 08:40:01 myhostname systemd: Starting Session 2043 of user root.
Mar 6 08:40:01 myhostname systemd: Created slice user-1001.slice.
Mar 6 08:40:01 myhostname systemd: Starting user-1001.slice.
Mar 6 08:40:01 myhostname systemd: Started Session 2042 of user userx.
Mar 6 08:40:01 myhostname systemd: Starting Session 2042 of user userx.
Mar 6 08:40:01 myhostname systemd: Started Session 2041 of user root.
Mar 6 08:40:01 myhostname systemd: Starting Session 2041 of user root.
Mar 6 08:40:31 myhostname systemd: Removed slice user-1001.slice.
Mar 6 08:40:31 myhostname systemd: Stopping user-1001.slice.
Mar 6 08:41:01 myhostname systemd: Created slice user-1001.slice.
Mar 6 08:41:01 myhostname systemd: Starting user-1001.slice.
Mar 6 08:41:01 myhostname systemd: Started Session 2044 of user userx.
Mar 6 08:41:01 myhostname systemd: Starting Session 2044 of user userx.
Mar 6 08:41:21 myhostname systemd: Removed slice user-1001.slice.
Mar 6 08:41:21 myhostname systemd: Stopping user-1001.slice.
这些都是什么意思,为什么它们在那里?如果这是正常的背景噪音,它们似乎是对资源的极大浪费,无法记录下来……
if $programname contains "systemd"
由于声明了程序名称而不得不更改语句systemd-logind