How to see system log - Linux

Table of Contents

如題 小弟在設定vnc時出現錯誤訊息如下 請問system log 要在哪裡看?

[root@ linux]# vi /lib/systemd/system/[email protected]
[root@ linux]# cp /lib/systemd/system/[email protected]
/etc/systemd/system/vncserver@:1.service
cp: overwrite ??etc/systemd/system/vncserver@:1.service??
y
[root@ linux]# systemctl
daemon-reload
[root@ linux]# vi
/etc/systemd/system/vncserver@:1.service
[root@ linux]# systemctl
daemon-reload
[root@ linux]# systemctl start
vncserver@:1.service
Failed to start vncserver@:1.service: Unit is not loaded properly: Bad
message.
See system logs and 'systemctl status vncserver@:1.service' for details. :

--

All Comments

Agatha avatarAgatha2018-04-06
less /var/log/syslog
Bennie avatarBennie2018-04-08
messages
Victoria avatarVictoria2018-04-11
/var/log/message
Sierra Rose avatarSierra Rose2018-04-15
systemctl status daemon
John avatarJohn2018-04-18
最後一句see 'systemctl status [email protected]'