尝试shell_exec在本地服务器上使用 php 执行 aws cli 命令(用于测试)。我正在使用 xampp、windows 操作系统、Laravel 和 php,我在 windows 上安装了 aws cli。
Windows cmd 可以识别 aws 命令,但是当我尝试执行 aws 命令时shell_exec出现错误:“aws is not Recognized as an internal or external command”。
尝试了这个简单的脚本:
$exec = shell_exec('aws --version');
$exec return null.
感谢任何帮助。
POPMUISE
守候你守候我