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
看到如上打印输出,表示安装成功。恭喜!!!