嘗試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.感謝任何幫助。
如何使用 shell_exec 執行 aws cli 命令?
慕的地6264312
2022-07-09 16:56:24