簡體   English   中英

無法使用dev_appserver.py在mac上運行本地開發服務器

[英]unable to use dev_appserver.py to run the local development server on mac

我在Google雲平台上按照教程運行hello-world應用程序的本地服務器,然后使用dev_appserver.py命令終端抱怨如下消息:

$ dev_appserver.py .
INFO     2016-10-22 21:59:53,084 devappserver2.py:769] Skipping SDK update check.
INFO     2016-10-22 21:59:53,129 api_server.py:205] Starting API server at: http://localhost:56857
INFO     2016-10-22 21:59:53,133 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO     2016-10-22 21:59:53,137 admin_server.py:116] Starting admin server at: http://localhost:8000
ERROR    2016-10-22 21:59:54,141 php_runtime.py:348] The PHP runtime is not available
Traceback (most recent call last):
  File "/Users/Dale/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 344, in new_instance
    self._check_binaries(php_executable_path, gae_extension_path)
  File "/Users/Dale/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 265, in _check_binaries
    raise _PHPBinaryError('The development server must be started with the '
_PHPBinaryError: The development server must be started with the --php_executable_path flag set to the path of the php-cgi binary.

抱怨是什么意思? php_runtime.py有什么問題嗎? 我該如何直接設置? 非常感謝。

如果您使用的是Mac,則需要運行以下命令:

gcloud組件安裝app-engine-php-darwin

如果您使用的是Linux,則需要提供--php_executable_path作為錯誤消息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM