加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – Logstash无法启动.错误:“无法启动TCP服务器:正在使

发布时间:2020-12-14 01:19:48 所属栏目:Linux 来源:网络整理
导读:Logstash无法启动.它说: :message="Could not start TCP server: Address in use",:host="0.0.0.0",:port=1514,:level=:error}The error reported is: n Address already in use - bind - Address already in use"} 在logstash配置文件中,未指定端口1514.
Logstash无法启动.它说:

:message=>"Could not start TCP server: Address in use",:host=>"0.0.0.0",:port=>1514,:level=>:error}The error reported is: n  Address already in use - bind - Address already in use"}

在logstash配置文件中,未指定端口1514.当logstash停止时,没有服务正在侦听此端口.当我启动logstash并且虽然我没有在配置文件中指定此端口时,它开始侦听此端口.如果我将此端口放在logstash配置文件中并启动logstash,则会向我提供该地址正在使用的错误.我需要使用tcp / 1514端口,因为我的所有esxi管理程序都配置为将日志发送到此端口.

为什么当我启动logstash它开始监听这个端口,尽管我在配置文件中没有这个端口?

如何在配置文件中使用此端口成功启动logstash服务?

解决方法

问题是logstash使用了两个配置文件.

root@srv-syslog:~# locate central.conf
/etc/logstash/conf.d/central.conf
/etc/logstash/conf.d/central.conf.save

我删除了第二个,现在一切正常.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读