更新时间:2023-02-22 21:38:08
您可以使用
nohup php myscript.php &
&
将您的进程置于后台.
the &
puts your process in the background.
是的,有一些缺点,但无法控制吗?那是错误的.
一个简单的kill processid
将停止它.而且它仍然是***和最简单的解决方案.
Yes, there are some drawbacks, but not possible to control? That's just wrong.
A simple kill processid
will stop it. And it's still the best and simplest solution.