Yii2-ask questions about queue usage in php

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.