Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每当我在 PHP 中通过 shell_exec() 执行命令时,它都会自动启动新进程。执行命令时 PHP 会自动终止该进程吗?
谢谢!
一旦命令完成执行,PHP 将自动终止他启动的新进程,并且您的脚本将继续(它可以在 exec() 命令运行时继续,但您需要将输出重定向到文件)