欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 家装 > Logstash安装插件失败的问题

Logstash安装插件失败的问题

2025/5/2 16:11:36 来源:https://blog.csdn.net/weixin_44121790/article/details/140211478  浏览:    关键词:Logstash安装插件失败的问题

Logstash安装插件失败的问题

安装 logstash-output-jdbc 失败
报错为:

Unable to download data from https://rubygems.org - Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/latest_specs.4.8.gz)
ERROR: Installation aborted, verification failed for logstash-output-jdbc 

原因是官方镜像源不可用
修改为清华镜像:
https://mirrors.tuna.tsinghua.edu.cn/rubygems
在logstash目录下编辑文件Gemfile,将source改为清华镜像源:

root@IT-DMS-U0001:/usr/local/logstash-8.14.1# vim Gemfile

在这里插入图片描述
保存后执行命令

./bin/logstash-plugin install --no-verify logstash-output-jdbc

在这里插入图片描述
看到如上打印输出,表示安装成功。恭喜!!!

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com