0
嘗試使用下面的代碼從我的本地虛擬主機innitialize通過PHP集羣/ KUBE-起來後發現gcloud工具:廣東話使用甲基苯丙胺
$old_path = getcwd();
chdir('/Users/username/kubernetes');
$output = shell_exec('cluster/kube-up.sh');
chdir($old_path);
print_r("<pre>$output</pre>") ;
我收到以下錯誤:
Can't find gcloud in PATH. Do you wish to install the Google Cloud SDK? [Y/n]
我在我的bash_profile中有gcloud。我也運行MAMP,並在/ Applications/MAMP/Library/bin/envvars_ *和envvars-std中包含了路徑變量 -
我仍然收到此提示。有任何想法嗎?
如果你運行'shell_exec('gcloud version')'是否在你的路徑中找到gcloud? –
嗨羅伯特,我收到的輸出: 「sh:gcloud:command not found」 – Cipher