V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
hanlin85
V2EX  ›  Linux

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

  •  
  •   hanlin85 · Aug 1, 2022 · 3402 views
    This topic created in 1374 days ago, the information mentioned may be changed or developed.

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

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

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

    last -f /var/log/wtmp-xxx
    hanlin85
        4
    hanlin85  
    OP
       Aug 2, 2022
    @tomychen
    @awbaidu
    感谢,确实是被归档了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5957 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:36 · PVG 09:36 · LAX 18:36 · JFK 21:36
    ♥ Do have faith in what you're doing.