linux 命令備忘

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命令提供了運(yùn)行中系統(tǒng)的動(dòng)態(tài)實(shí)時(shí)視圖

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 系統(tǒng)操作 #使用shutdown命令馬上重啟系統(tǒng) [root@H32 ~]# shutdown –r now #使...
    歡醉閱讀 759評(píng)論 1 7
  • 1. 系統(tǒng)相關(guān) 查看手冊(cè)命令 man 只查看當(dāng)前下一級(jí)目錄占用大小 du --max-depth=1 -h 查看某...
    iamsea閱讀 373評(píng)論 0 0
  • t>本文說(shuō)明:文章主要用于自己備忘,記錄的是在日常工作娛樂(lè)中用到的一些命令及軟件包,并不一定都是常用命令?;A(chǔ)命令...
    不要叔叔閱讀 761評(píng)論 0 1
  • 1.netstat常用命令 -a:查看所有端口的占用-t:只列出 TCP 或 UDP 協(xié)議的連接-u:列出 UDP...
    o動(dòng)感超人o閱讀 610評(píng)論 0 51
  • linux資料總章2.1 1.0寫(xiě)的不好抱歉 但是2.0已經(jīng)改了很多 但是錯(cuò)誤還是無(wú)法避免 以后資料會(huì)慢慢更新 大...
    數(shù)據(jù)革命閱讀 13,275評(píng)論 2 33

友情鏈接更多精彩內(nèi)容