美文网首页
linux 命令备忘

linux 命令备忘

作者: 青穗黄 | 来源:发表于2017-12-22 16:26 被阅读20次

sudo su 切换到root用户
ps -aux | grep python

tail -f nohup.out 打日志

pkill -f "celery worker"

查看
ps aux|grep 'celery worker'
杀掉

Try this in terminal

ps aux|grep 'celery worker'
You will see like this

username  29042  0.0  0.6  23216 14356 pts/1    S+   00:18   0:01 /bin/celery worker ...
Then kill process id by

sudo kill -9 process_id # here 29042
If you have multiple processes, then you have to kill all process id using above kill commmand

sudo kill -9 id1 id2 id3 ...
From the celery doc

ps auxww | grep 'celery worker' | awk '{print $2}' | xargs kill -9
OR if you are running celeryd

ps auxww | grep celeryd | awk '{print $2}' | xargs kill -9
Note

If you are running celery in supervisor, even though kill the process, it automatically restarts(if autorestart=True in supervisor script).

Hope this helps
https://stackoverflow.com/questions/29306337/how-to-stop-celery-worker-process

top命令提供了运行中系统的动态实时视图

相关文章

  • Linux 命令学习记录

    记录使用过的Linux命令,学习备忘(持续学习更新中)。 登录Linux系统 注意:命令后方要加个空格 常用的文件...

  • Linux命令备忘

    1. 系统相关 查看手册命令 man 只查看当前下一级目录占用大小 du --max-depth=1 -h 查看某...

  • linux 命令备忘

    sudo su 切换到root用户ps -aux | grep python tail -f nohup.out ...

  • Linux命令备忘

    t>本文说明:文章主要用于自己备忘,记录的是在日常工作娱乐中用到的一些命令及软件包,并不一定都是常用命令。基础命令...

  • linux命令备忘

    查看当前目录路径 创建文件夹并赋权限 清空文件内容 查看文件内容 查找文件 cd命令

  • linux命令备忘

    tar -c : 创建一个归档文件 -x : 解开一个归档文件 -t : 查看tar包中的文件 -v : 压缩过程...

  • (Linux五)Linux常用命令大全

    (linux基础命令入门到精通+实例讲解+持续更新+命令备忘录+面试复习) 前言 本文特点 授之以渔:了解命令学...

  • Linux GCC命令备忘

    hellodev——Linux GCC常用命令 简介 gcc(GNU-C-Compiler),但不局限于c语言,还...

  • Linux 命令大全备忘

    常用命令

  • 实用收藏Linux命令备忘

    系统操作 #使用shutdown命令马上重启系统 [root@H32 ~]# shutdown –r now #使...

网友评论

      本文标题:linux 命令备忘

      本文链接:https://www.haomeiwen.com/subject/ntdtgxtx.html