ossec启动报ossec-remoted(1206): ERROR: Unable to Bind port错误解决方法

125 阅读1分钟

今天部署ossec,启动时ossec-remoted一直都无法启动,日志出现如下错误

2017/10/20 16:43:53 ossec-remoted: INFO: Started (pid: 2699).
2017/10/20 16:43:53 getaddrinfo: Name or service not known
2017/10/20 16:43:53 ossec-remoted(1206): ERROR: Unable to Bind port '1514'


在确认端口没有占用的情况下,开debug没有明确的提示,dns也是没有问题的,后来翻到了https://groups.google.com/forum/#!topic/ossec-list/TDDtCei9Qp4

按里面说的编辑/etc/sysctl.conf文件,注释掉

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1\

我的系统里只有第一个,注释掉重启系统后ossec-remoted正常启动