hanlin85
V2EX  ›  Linux

今天奇怪了,我几个服务器登上去 last 历史都没有了

By hanlin85 at 2022 年 8 月 1 日 · 3783 次点击

不同云服务商的云服务器,今天登上去时我 last 看了一下登陆成功的历史,发现都是没有了。 有的服务器已经运行了 100 多天,有的几十天了,期间我登陆过不少次。 诡异了,我是不是被黑了还不知道。 last 后 wtmp 的生成时间都是我登陆前一分钟

4 条回复  •  2022-08-02 09:40:06 +08:00
hanlin85
   1
hanlin85  
OP
   2022 年 8 月 1 日
history 里也没删除过的痕迹
arrhenius
   2
arrhenius  
   2022 年 8 月 1 日
新手? wtmp 的日志被系统按月分割或者删除了,具体看系统 logrotate 配置信息
tomychen
   3
tomychen  
   2022 年 8 月 1 日
看看 /var/log/wtmp 下是不是归档了

centos 一般是 wtmp-归档日期
deb 应该是 wtmp.1

last -f /var/log/wtmp-xxx
hanlin85
   4
hanlin85  
OP
   2022 年 8 月 2 日
@tomychen
@awbaidu
感谢,确实是被归档了。
Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
© 2026 V2EX · 26ms · 3.9.8.5