进程的一些知识梳理

docker和进程的一些知识梳理

进程

今天只要是linux

  • 查看
    ps -ef
    ps -aux
    ps -ef | grep 123(进程号)
    kill -9 123

  • 查看是否有异常连接
    netstat -tlnp
    在这里插入图片描述

  • 根据进程号查找对用程序
    ps -ef | grep 585
    在这里插入图片描述

ps -ef | grep ssh
在这里插入图片描述

2 列出开机启动项

systemctl list-unit-files
systemctl list-unit-files > 1.txt

猜你喜欢

转载自blog.csdn.net/weixin_48776804/article/details/114233403
今日推荐