【发布时间】:2013-08-26 07:27:34
【问题描述】:
我有问题。我想用 php 代码重新启动 ubuntu,但我不能。我已经尝试了来自互联网的所有代码,例如
<?php
shell_exec("/usr/sbin/reboot");
exec("/usr/sbin/reboot");
system("/usr/sbin/reboot");
?>
和
<?php
shell_exec("shutdown -r");
exec("shutdown -r");
system("shutdown -r");
?>
但他们都什么都不做。请帮我。我需要这个代码。
【问题讨论】: