выполните сценарий PHP в фоновом режиме

Я подозреваю, что это - установка удаленных соединений. См. это сообщение Larry от подобного вопроса: SQL Server не Может Соединиться - конкретно в конце его сообщения, где он показывает, как включить удаленные соединения. Я отправил бы все это здесь почему восстановление работа :).

1
задан 18 November 2012 в 16:18
4 ответа

Try nohup and disown:

nohup php5-cgi /var/www/script.php -q &
disown
2
ответ дан 3 December 2019 в 16:48

That because your process is not decoupled from the hangup signal. Use the following instead.

nohup php5-cgi /var/www/script.php -q 

You could also use a terminal multiplexer like screen or tmux if you want to be able to get back to the script output...

1
ответ дан 3 December 2019 в 16:48

Also bear in mind that PHP has a script timeout limit after which it will automatically terminate script execution. You can modify the max_execution_time setting in your /etc/php5/cli/php.ini (the default is 30 seconds).

1
ответ дан 3 December 2019 в 16:48

If screen is available, use that. Just start up a screen, run your command in it, detach the screen, and go on your merry way.

2
ответ дан 3 December 2019 в 16:48

Теги

Похожие вопросы