linux数据库ps命令,Linux ps命令

问题描述

NFS服务故障, ps到的进程显示状态为D, 无法使用 kill 杀掉.

了解ps

ps是process status的缩写, 用于列出系统中当前运行的进程快照.

root@kub3:/home/nfs# ps -aux | grep nfs

root 1937 0.0 0.0 0 0 ? S< Jul16 0:00 [nfsd4_callbacks]

root 1940 0.0 0.0 0 0 ? D Jul16 0:00 [nfsd]

root 1941 0.0 0.0 0 0 ? D Jul16 0:00 [nfsd]

root 1942 0.0 0.0 0 0 ? D Jul16 0:01 [nfsd]

root 1943 0.0 0.0 0 0 ? D Jul16 0:02 [nfsd]

root 1944 0.0 0.0 0 0 ? D Jul16 0:03 [nfsd]

root 1945 0.0 0.0 0 0 ? D Jul16 0:06 [nfsd]

root 1946 0.0 0.0 0 0 ? D Jul16 0:50 [nfsd]

root 1947 0.0 0.0 0 0 ? D Jul16 4:25 [nfsd]

root 3080 0.0 0.0 0 0 ? S< Jul16 0:00 [nfsiod]

root 10578 0.0 0.0 14224 920 pts/18 S+ 11:57 0:00 grep --color=auto nfs

root 13380 0.0 0.2 37648 16904 ? Ssl Jul26 8:48 /nfs-client-provisioner

root 24271 0.0 0.0 16300 892 ? D Sep28 0:00 ls --color=auto /home/nfs/admin-d2069c-storage-mysql-2-pvc-ce20ad71-c2f4-11e8-b599-0050568eef9f/mysql/

root 25956 0.0 0.0 7316 700 pts/17 D+ 10:55 0:00 rm -rf /home/nfs/admin-d2069c-storage-mysql-2-pvc-ce20ad71-c2f4-11e8-b599-0050568eef9f/

ps进程状态码

ps出的进程状态码共有5种:

R 运行 runnable :运行(正在运行或在运行队列中等待)

D uninterruptible sleep (usually IO), 不可中断(收到信号不唤醒和不可运行, 进程必须等待直到有中断发生)

S sleeping, 中断(休眠中, 受阻, 在等待某个条件的形成或接受到信号)

T traced or stopped, 停止(进程收到SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU信号后停止运行运行)

Z a defunct (”zombie”) process, 僵死(进程已终止, 但进程描述符存在, 直到父进程调用wait4()系统调用后释放)

ps命令参数

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值