I currently use yii2 in the app background, and the beanstalkd queue is used for pushing. During local development, the listening queue process has never been connected to phpyiiworkeror. yiiworker, however, has never been related to local terminals. I developed it on opensuse, and later switched to wi... I currently use yii2 in the app background. beanstalkd queue is used for pushing.
During local development, the listening queue process never goes down.
php yii workerOr./yii worker
However, the localTerminalNever been involved
I developed it on opensuse before, and it's okay to switch to win10 later.
But put it on the server.workerBasically, the push fails. Initially, I suspected that the output of the push log to the terminal would output the output content to the buffer zone, later, content was redirected,./yii worker > push.log&This problem has not been solved,
Therefore, I would like to ask your predecessors if they have any experience to learn from.
Reply content:
I currently use yii2 in the app background. beanstalkd queue is used for pushing.
During local development, the listening queue process never goes down.
php yii workerOr./yii worker
However, the localTerminalNever been involved
I developed it on opensuse before, and it's okay to switch to win10 later.
But put it on the server.workerBasically, the push fails. Initially, I suspected that the output of the push log to the terminal would output the output content to the buffer zone, later, content was redirected,./yii worker > push.log&This problem has not been solved,
Therefore, I would like to ask your predecessors if they have any experience to learn from.
./yii worker > push.log 2>&1 &
Standard errors are also redirected.
No more. Check whether the script will encounter exit die or something;
No, try valgrind php yii worker to see If PHP itself or the extension has a segment error.
If the connection is disconnected, add nohup