1.關於如何殺死linux中的所有php進程?
[wz@supportserver-51 jd]$ ps -ef | grep 純ftpd | grep -v grep | grep -v awk '{print $2" "$3}' | '{print $2" "$3}' | xargs Kill -9 = pkill php
kill: 找不到進程"="
kill: 找不到進程"pkill"
[2] 已殺死 php dingdan_money.php >> jd.csv
[3] 已殺 php dingdan_money.php >>> jd.csv
[4] 已殺 php dingdan_money.php.bak >>> jd [6] 已殺死php test1.php (wd: /usr/local/webdata/yewu/yewu)
(wd 現在: /usr/local/webdata/job/jd)
[7] 已殺死 (wd: /usr/local/webdata/yewu/yewu)
(wd 現在: /usr/local/webdata/job/jd)
[8] 已殺 1 已殺 .殺 php dingdan_money.php >>> jd.log
[10] 已殺 php dingdan_money.php >>> jd.log 2>&1
[12]已殺 php dingdan_money.php >>> jd.log
[13] 已殺 php -q dingdan_money.php>> jd.log
[15] 已殺 php -f dingdan_money.php>> jd.log
[16] 已殺 php -q dingdan_money.php>> .log
[wz@supportserver- 51 jd]$ ps -ef|grep php
root 6561 6549 0 19:29 pts/0 00:00:00 php dingdan_money.php 0:00 sudo php dingdan_money. php
root 7902 7901 0 19:36 分/0 00:00:00 php dingdan_money.php
wz 0:12713 690 php
[ 18]+ 已殺 php dingdan_money.php >> jd.log
2.關於php腳本運行時總是掛掉的解決方法:
[wz@supportserver-51 jd]$ php dingdan_money.php >> jd.log &
[wz@supportserver-51 jd]$ ll總計3760-rwxrwxrwx 1 tuangouadmin 操作 1524 12 月22 日20:04 dingdan_monw.十二月22 20:14 jd .log
[2]+ 已停止 php dingdan_money.php>> jd.log
[wz@supportserver-51
[wz@supportserver-51
[wz@supportserver-51
[wz@supportserver-51
[wz@supportserver-51
[wz@supportserver-51
== 🎜&🎜🎜🎜🎜🎜可以用