bat.info程序对接mysql、redis、mongodb
程序启动一直报错
配置文件
最后查明howie是一个副本集的名字,接收的信息是这个是库。所以引导错误。
配置副本集
mongodb配置文件
启动mongodb
mongod --nssize 500 --port 27017 --dbpath /data/db_a --replSet howie
进入mongo
创建副本集
cfg={_id:"howie", members:[{_id:0, host:'192.168.2.114:27017', priority:1}]};
rs.initiate(cfg);
最后启动程序
bat_info -config=./bat_config.yaml -etcd="http://127.0.0.1:2379"
启动成功