我有个问题。我想用 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");
?>
但他们都什么都不做。请帮我。我需要这个代码。