我在一台服务器上使用 ssh 登录时遇到问题,连接时间太长。我之前在不同的服务器上遇到过同样的情况,并且重新启动 systemd-logind.service 有效。
\n\n我尝试在这台服务器上执行相同的操作,但在无法重新启动后却显示此消息。
\n\n# service systemd-logind status\nRedirecting to /bin/systemctl status systemd-logind.service\n\xe2\x97\x8f systemd-logind.service - Login Service\nLoaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static; \n vendor preset: disabled)\n Active: failed (Result: timeout) since Thu 2018-10-25 16:48:50 CST; 1min 16s ago\n Docs: man:systemd-logind.service(8)\n man:logind.conf(5)\n http://www.freedesktop.org/wiki/Software/systemd/logind\n http://www.freedesktop.org/wiki/Software/systemd/multiseat\n Process: 90429 ExecStart=/usr/lib/systemd/systemd-logind (code=exited, status=1/FAILURE)\n Main PID: 90429 (code=exited, status=1/FAILURE)\n Status: "Shutting down..."\n CGroup: /system.slice/systemd-logind.service\n \xe2\x94\x94\xe2\x94\x801037 /usr/lib/systemd/systemd-logind\n\nOct 25 16:42:49 HOST systemd[1]: Starting Login Service...\nOct 25 16:42:49 HOST systemd-logind[90429]: Failed to register name: File exists\nOct 25 16:42:49 …Run Code Online (Sandbox Code Playgroud)