gpt4 book ai didi

ruby-on-rails - 从命令提示符运行 Rails 应用程序时出错

转载 作者:行者123 更新时间:2023-12-02 15:28:23 26 4
gpt4 key购买 nike

我在 Windows 8 中安装了 ruby​​ 版本为“ruby 2.1.5p273(2014-11-13 修订版 48405)[i386-mingw32]”的 rails 4.1.8。我按照本教程在 rails- 上安装了 ruby​​-“http://installfest.railsbridge.org/installfest/windows ”。现在,每当我运行任何 Rails 应用程序时,我都会收到此错误-

Fetching source index from https://rubygems.org/
Retrying source fetch due to error (2/3):Bundler::Fetcher::CertificateFailureError
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying source fetch due to error (3/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.

我要把 https 改成 http 吗?安全吗?

最佳答案

如错误信息所述:

For information about OpenSSL certificates, see bit.ly/ruby-ssl.

bit.ly/ruby-ssl 指向 http://railsapps.github.io/openssl-certificate-verify-failed.html其中有对正在发生的事情的解释,以及如何解决它的建议。

source 'http://rubygems.org' 中的 https 更改为 http 是推荐的解决方法之一。

底部有windows专用解决方案,推荐下载a cacert.pem for RailsInstaller

关于ruby-on-rails - 从命令提示符运行 Rails 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29183830/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com