Linux踢掉远程登录用户
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
Linux踢掉远程登录用户
安装psmisc
yum install -y psmisc
查看远程登录用户
who
得到以下结果
[root@centos7 ~]# w
10:58:13 up 0 min, 2 users, load average: 0.12, 0.03, 0.01
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
lhz pts/0 192.168.126.1 10:58 5.00s 0.05s 0.05s -bash
root pts/1 192.168.126.1 10:58 3.00s 0.12s 0.01s w
[root@centos7 ~]#
踢掉用户lhz
fuser -k /dev/pts/0
得到以下结果
[root@centos7 ~]# w
10:58:13 up 0 min, 2 users, load average: 0.12, 0.03, 0.01
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
lhz pts/0 192.168.126.1 10:58 5.00s 0.05s 0.05s -bash
root pts/1 192.168.126.1 10:58 3.00s 0.12s 0.01s w
[root@centos7 ~]# fuser -k /dev/pts/0
/dev/pts/0: 2301
[root@centos7 ~]# w
11:00:41 up 2 min, 1 user, load average: 0.01, 0.02, 0.01
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/1 192.168.126.1 10:58 1.00s 0.14s 0.02s w
[root@centos7 ~]#
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献20条内容
所有评论(0)