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

2018-11-13 11:09:05 +08:00
 wzw
systemd-analyze blame
结果:


大家帮忙查查原因?

我找了好一会了

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

第二次就成功了
915 次点击
所在节点    问与答
1 条回复
wzw
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...

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/507307

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX