V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wzw
V2EX  ›  问与答

虚拟机里面安装的 debian 启动 ssh.service 居然要 42s, 为什么呀?

  •  1
     
  •   wzw · 2018-11-13 11:09:05 +08:00 · 915 次点击
    这是一个创建于 2155 天前的主题,其中的信息可能已经有所发展或是发生改变。
    systemd-analyze blame
    结果:


    大家帮忙查查原因?

    我找了好一会了

    `journalctl -u ssh -b`
    发现
    `Nov 13 11:16:26 d systemd[1]: Failed to start OpenBSD Secure Shell server.`

    第二次就成功了
    1 条回复    2018-11-13 11:22:46 +08:00
    wzw
        1
    wzw  
    OP
       2018-11-13 11:22:46 +08:00
    已经无法编辑了

    Nov 13 11:14:56 d systemd[1]: Starting OpenBSD Secure Shell server...
    Nov 13 11:16:26 d systemd[1]: ssh.service: Start-pre operation timed out. Terminating.
    Nov 13 11:16:26 d systemd[1]: ssh.service: Failed with result 'timeout'.
    Nov 13 11:16:26 d systemd[1]: Failed to start OpenBSD Secure Shell server.
    Nov 13 11:16:26 d systemd[1]: ssh.service: Service RestartSec=100ms expired, scheduling restart.
    Nov 13 11:16:26 d systemd[1]: ssh.service: Scheduled restart job, restart counter is at 1.
    Nov 13 11:16:26 d systemd[1]: Stopped OpenBSD Secure Shell server.
    Nov 13 11:16:26 d systemd[1]: Starting OpenBSD Secure Shell server...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2273 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:29 · PVG 18:29 · LAX 03:29 · JFK 06:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.