ysrc / yulong-hids-archived

[archived] 一款实验性质的主机入侵检测系统
Other
2.16k stars 581 forks source link

server启动报错 #13

Closed djhighman closed 6 years ago

djhighman commented 6 years ago

centos7.2.15系统,web正常配置启动之后。启动./server -db mongodbIP:27017 -es elasticIP:9200 报错: 2018/04/09 17:33:19 Get Config 2018/04/09 17:33:19 {false false {[] [] [] []} {[] [] [] []} {false } {false false}} 2018/04/09 17:33:19 Start Task Thread 2018/04/09 17:33:19 cert error!

neargle commented 6 years ago

证书错误了 配置也没拉下来 而且报错的类型比较早期 建议:

djhighman commented 6 years ago

1.mongodb可以连接上,查看mongodb的表,web已经把配置写入了。2.下载版本是yulong-0.4.2的,还有更新的吗?

djhighman commented 6 years ago

找到问题原因了,程序里面是获取mongo的agent数据库,配置文件里面配的yulong,所以获取不到对应的配置信息数据。

neargle commented 6 years ago

是的 数据库名不可以更改

dundun99 commented 6 years ago

我也遇到类似问题 server启动报错: 2018/04/11 16:07:53 Start Task Thread 2018/04/11 16:07:53 Start Scan Thread 2018/04/11 16:07:53 Start Health Check Thread 2018/04/11 16:07:53 Start heartbeat thread 2018/04/11 16:07:53 cert error! 前述问题是怎么修改解决的呢?

neargle commented 6 years ago

@dundun99 看一下讨论记录啊

dundun99 commented 6 years ago

web正常启动无报错,在mongo里写入的是agent库。mongo和es可以正常连接。前述说的配置文件里配的库名不一致 配置文件是指哪个文件?