黄乾

个人信息

Personal information

副教授     硕士生导师
性别:男
主要任职:大气物理系主任
在职信息:在岗
所在单位:大气物理学院
学科:大气科学

办公地点:气象楼1001

教师博客

[服务器管理] 服务器莫名连接缓慢问题解决
发布时间:2021-07-22  点击次数:

症状:ssh 连接院服,连接奇慢,每次登陆需等待20秒以上,忍无可忍,查!

         ssh -v aaa@bbb


确认原因

● systemd-logind.service - Login Service

   Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static; vendor preset: disabled)

   Active: active (running) since Thu 2020-12-10 19:08:06 CST; 5 months 12 days ago

     Docs: man:systemd-logind.service(8)

           man:logind.conf(5)

           http://www.freedesktop.org/wiki/Software/systemd/logind

           http://www.freedesktop.org/wiki/Software/systemd/multiseat

 Main PID: 57120 (systemd-logind)

   Status: "Processing requests..."

    Tasks: 1

   CGroup: /system.slice/systemd-logind.service

           └─57120 /usr/lib/systemd/systemd-logind


May 13 12:56:45 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 12:56:45 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 12:56:45 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 13:02:06 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 13:10:59 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 13:10:59 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 13:10:59 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 13:13:26 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 13:13:26 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

May 13 13:14:18 admin2 systemd-logind[57120]: Failed to abandon session scope: Transport e...ed

Hint: Some lines were ellipsized, use -l to show in full.
解决:重启 systemd-logind服务

sudo systemctl restart systemd-logind
问题解决