我使用SSH连接到专用服务器。 接下来我试图在php -d max_execution_time [= 0] -f index.php中执行。 我怎么closures(甚至closures)我的本地机器,但我的PHP脚本在远程服务器应该继续工作?
或者用屏幕http://en.wikipedia.org/wiki/GNU_Screen
screen -A -m -d -S whatever ./yourphpscriptlauncher.sh
酷+,与:
screen -r whatever
你再次在你的脚本;)
像这样运行你的PHP脚本: ssh user@machine "nohup php -d max_execution_time[=0] -f index.php &"