尝试下载Ruby 1.9.2时,RVM遇到证书错误.看起来好像curl有证书问题,但我不知道如何绕过它.我在下面列出了确切的错误信息.
$ rvm install 1.9.2
Installing Ruby from source to: /Users/willdennis/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)...
ruby-1.9.2-p180 - #fetching
ERROR: Error running 'bunzip2 '/Users/willdennis/.rvm/archives/ruby-1.9.2-p180.tar.bz2'', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/extract.log
ruby-1.9.2-p180 - #extracting ruby-1.9.2-p180 to /Users/willdennis/.rvm/src/ruby-1.9.2-p180
ruby-1.9.2-p180 - #extracted to /Users/willdennis/.rvm/src/ruby-1.9.2-p180
Fetching yaml-0.1.3.tar.gz to /Users/willdennis/.rvm/archives
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle" …Run Code Online (Sandbox Code Playgroud) 在我的php脚本中,我恢复了db2数据库备份.他们越来越大了.所以现在我在执行脚本后+ -30分钟后得到500服务器错误.(mod_fastcgi.c.3352) response not received, request sent: 634 on socket: tcp:127.0.0.1:9090 for /wrational/restoredb.php?mode=restore&database=RATIONAL, closing connection在php-errors.log文件中有这一行.
我认为设置`set_time_limit(6000); 1会解决问题,但事实并非如此.
增加default_socket_timeoutphp.ini文件就可以了.
有没有办法改变default_socket_timeoutPHP代码?