我使用的是 Mac M1,刚刚升级到 Node 14.17.6LTS。
我尝试使用电子构建器(22.11.7)重建better_sqlite3(7.4.3),但出现以下错误:
“v8::ArrayBuffer”中没有名为“GetContents”的成员
有什么想法如何解决这个问题吗?提前致谢!
Run Code Online (Sandbox Code Playgroud)gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o In file included from ../fsevents.cc:6: In file included from ../../nan/nan.h:2884: ../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer' data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
我在IBM Softlayer中运行的apache Web服务器+ php在60秒后遇到超时。
这些是我的设置(这些设置后,httpd服务器重新启动)
httpd.conf
TimeOut 300
Timeout 300
Run Code Online (Sandbox Code Playgroud)
*同时尝试了这两项,也只尝试了一次TimeOut和Timeout。
php.ini
max_execution_time = 300
Run Code Online (Sandbox Code Playgroud)
PHP代码:
<?php
set_time_limit(10000); //Just to make sure
sleep(70);
echo "Successful";
?>
Run Code Online (Sandbox Code Playgroud)
php test.php
Run Code Online (Sandbox Code Playgroud)
结果成功
http://mysite/test.php
Run Code Online (Sandbox Code Playgroud)
结果:恰好在60秒后超时!
php_error.log和httpd error_log
没有错误!
我找到了与此相关的类似文章,但每个人都指向max_execution_time和Timeout。到目前为止,没有帮助。
非常感谢!