-
Notifications
You must be signed in to change notification settings - Fork 235
常见问题
0x012FA733 edited this page Mar 16, 2020
·
5 revisions
程序启动时出现错误如下,
[202X-XX-XX XX:XX:XX] Log.WARNING CURl -> RETRY: 0 ERROR: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) ERRNO: 0
[202X-XX-XX XX:XX:XX] Log.WARNING 尝试重试第 0 次,等待网络恢复...
[202X-XX-XX XX:XX:XX] Log.WARNING CURl -> RETRY: 1 ERROR: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) ERRNO: 0
[202X-XX-XX XX:XX:XX] Log.WARNING 尝试重试第 1 次,等待网络恢复...
参见 https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html#verify
如下所示,修改配置文件 user.conf
中 VERIFY_SSL
参数为 false
# 验证SSL证书|请求时验证SSL证书行为
VERIFY_SSL=false
PHP Fatal error: Uncaught Dotenv\Exception\InvalidFileException: Failed to parse dotenv file due to invalid name. Failed at [#######################]. in .../vendor/vlucas/phpdotenv/src/Loader/Parser.php:77
配置文件 user.conf
中含有不能处理的参数
请检查配置文件 user.conf
是否有输入错误的地方,Windows 建议使用 Notepad++ 重新编辑保存配置文件
Warning: pcntl_signal_dispatch() has been disabled for security reasons in .../vendor/amphp/amp/lib/loop/NativeDriver.php on line 141
PHP Warning: pcntl_signal_dispatch() has been disabled for security reasons in .../vendor/amphp/amp/lib/loop/NativeDriver.php on line 141
基于安全理由 pcntl_signal_dispatch()
在 PHP 配置文件中被禁用
找到 PHP 的配置文件 php.ini
(通常位于 PHP 的安装目录下),搜索 disable_functions
或 pcntl_signal_dispatch
,然后把 disable_functions
等号后面的 pcntl_signal_dispatch,
删掉,或者在 disable_functions
前面加上 ;
(英文分号)
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
最新版本的 PHP 使用 VC15 或 VS16(分别使用 Visual Studio 2015、2017 或 2019 编译器)构建,并在性能和稳定性方面进行了改进
使用这些版本的 PHP 需要安装 Visual Studio 2015-2019 x64 或 x86 的 Visual C++ Redistributable 组件