如何从php重新启动服务器以杀死长脚本?

时间:2019-05-23 13:28:25

标签: php apache windows-server-2016

我需要通过php脚本在Windows Server 2016上重新启动Apache 2.4。

我尝试了该代码,但是它只能从命令行使用。

passthru('powershell -command "Restart-Service Apache2.4 -Force"');

0 个答案:

没有答案