MQ

Last Edited Time
Feb 9, 2022 06:50 AM
date
Jan 3, 2018
slug
mq
status
Published
tags
Bash
Command
Notebook
summary
早期 MQ 工作常用命令记录
type
Post

check_status.sh

ps -fp $(pgrep  -f Qworker)

restart_worker.sh

pgrep -f Qworker.php |xargs kill -9
/home/goopter/start_worker.sh

start_worker.sh

cd /var/www/qa/goopter_common/mq/receiver
nohup php Qworker.php > worker.log &

stop_worker.sh

pgrep -f Qworker.php |  xargs kill -9