I currently use the background of the app is Yii2 write, do push the use of the BEANSTALKD queue
The listener queue process has never been hung during local development
php yii worker
Or./yii worker
But the Local has 终端
never been shut down.
I've developed it on openSUSE before, and it's okay to switch to WIN10 later.
But put on the server on worker
a variety of hanging, basically a push to hang, initially suspected, push the log output to the terminal problem, output output to the buffer, the result is still hanging, in the later is the content redirection, ./yii worker > push.log&
also did not solve the problem,
So consult your predecessors, have no experience of learning
Reply content:
I currently use the background of the app is Yii2 write, do push the use of the BEANSTALKD queue
The listener queue process has never been hung during local development
php yii worker
Or./yii worker
But the Local has 终端
never been shut down.
I've developed it on openSUSE before, and it's okay to switch to WIN10 later.
But put on the server on worker
a variety of hanging, basically a push to hang, initially suspected, push the log output to the terminal problem, output output to the buffer, the result is still hanging, in the later is the content redirection, ./yii worker > push.log&
also did not solve the problem,
So consult your predecessors, have no experience of learning
./yii worker > push.log 2>&1 &
The standard error is also redirected.
No more, see if the script will touch the exit die or something;
No more, use valgrind php yii worker to try to see if PHP itself or the extension has a segment error
If you are disconnecting, add nohup