在 Debian 里“开启 message”通常可能指下面几种情况之一,我先分别说明,你可以对号入座:
Debian 默认使用 rsyslog 或 systemd-journald。
/var/log/messagessudo apt install rsyslog
sudo systemctl enable --now rsyslog
然后查看:
tail -f /var/log/messages
(有些 Debian 版本默认不写 messages,可编辑 /etc/rsyslog.conf)
dmesg
实时查看:
dmesg -w
journalctl -f
查看某服务:
journalctl -u nginx -f
sudo systemctl enable --now motd
编辑:
sudo nano /etc/motd
如果是 GUI:
sudo apt install libnotify-bin
notify-send "Hello"
如果你能补充说明:
我可以给你更精确的操作步骤。