我正在Ubuntu 16.04 LTS中运行用户级服务。例如,我的test.service位于〜/ .config / systemd / user / test.service
我能够通过运行服务
systemctl --user start test.target
但是,当我尝试使用journalctl读取其日志时,出现以下错误消息:
journalctl --user -u test.service
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
如何将journalctl用于用户的特定单位?