在从服务器的solrconfig.xml中
<requestHandler name="/replication" class="solr.ReplicationHandler">
下添加 <str name="httpBasicAuthUser">admin</str>
<str name="httpBasicAuthPassword">12345</str>
admin和12345分别为主服务的用户名和密码。
在从服务器的solrconfig.xml中
<requestHandler name="/replication" class="solr.ReplicationHandler">
下添加 <str name="httpBasicAuthUser">admin</str>
<str name="httpBasicAuthPassword">12345</str>
admin和12345分别为主服务的用户名和密码。
本文标题:Solr5设置权限后的主从同步
本文链接:https://www.haomeiwen.com/subject/jscclttx.html
网友评论