我新安装的 Ubuntu 20.04 在正常活动期间经常崩溃。这些是var/log/syslog崩溃前的最后几行:
Jul 2 01:23:16 ubuntu1 kernel: [363076.136396] RIP: 0010:kmem_cache_alloc_node+0x121/0x260
Jul 2 01:23:16 ubuntu1 kernel: [363076.136397] Code: 75 0e 4d 89 f9 41 f6 47 0b 04 0f 84 4b ff ff ff 4c 89 ff e8 51 ff 01 00 49 89 c1 e9 3b ff ff ff 41 8b 41 20 49 8b 39 4c 01 e0 <48> 8b 18 48 89 c1 49 33 99 70 01 00 00 4c 89 e0 48 …Run Code Online (Sandbox Code Playgroud) 在向文件夹添加新服务时/etc/systemd/system/,我不小心编辑了该syslog.service文件并丢失了其原始内容。
有人可以帮我将原始文件内容粘贴到这里吗?
或者有人知道如何恢复吗?我找到了这个答案,但我不知道应该重新安装哪个包,并且无法通过https://packages.ubuntu.com上的文件找到它。
非常感谢您的帮助!
Oct 1 13:17:01 tilaprimera /USR/SBIN/CRON[5710]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Run Code Online (Sandbox Code Playgroud) 乌班图22.04。
我按照/var/log/syslog命令执行tail -f。这是通过 ssh 连接。它将跟踪系统日志的输出几天,然后停止更新。它就坐在那里。如果我Ctrl+C终止 tail 命令并重新发出它,它会获取最新结果,这些结果晚于tail -f. IOW,它停止跟随。如何让它继续跟踪 syslog,而不必终止命令并重新发出它?谢谢你!
无论我删除什么,我的 syslog 文件都会填满。现在高达 165GB。我跟踪了它,这是输出??哇:
Please type y to accept, n otherwise: Please type y to accept, n otherwise:
Please type y to accept, n otherwise: Please type y to accept, n otherwise:
Please type y to accept, n otherwise: Please type y to accept, n otherwise:
Please type y to accept, n otherwise: Please type y to accept, n otherwise:
Please type y to accept, n otherwise: Please type y to accept, n otherwise:
Please type y
May 24 07:12:57 …Run Code Online (Sandbox Code Playgroud)