Solr群集的搭建

 

 

Zookeeper集群搭建

 参照这个链接:https://blog.csdn.net/FullStackDeveloper0/article/details/86573724

搭建的过程比较简单!

solr集群搭建

【注意】在搭建solr集群前,建议最好有一个solr服务是已经搭建好的,可以简化大量重复的配置操作。

 单机solr服务搭建过程参看:https://blog.csdn.net/FullStackDeveloper0/article/details/86570999

 

./zkcli.sh 
-zkhost 192.168.25.128:2181,192.168.25.128:2182,192.168.25.128:2183 
-cmd upconfig 
-confdir /usr/local/solr-cloud/solrhome01/configsets/sample_techproducts_configs/conf 
-confname myconf

zkhost:  代表zookeeper集群的ip和端口号列表(搭建zookeeper集群的时候配置过的)
confdir: solr的conf目录,solr7.x的conf路径与solr4.x的conf路径不一样的
confname: 上传到zookeeper集群的配置文件的名字,文件名是可以自定义的!

 

 

 

 

 

猜你喜欢

转载自blog.csdn.net/FullStackDeveloper0/article/details/86573746