• Solr后台管理界面配置


    配置来源
    https://stackoverflow.com/questions/28043957/how-to-set-apache-solr-admin-password

    注意:配置用户名密码后 集群连接也要设置 用户名 密码 1.配置Solr后台管理界面登录权限 cd /opt/solr-6.1.0/server/etc vi jetty.xml 在标签</Configure> 配置如下: <Call name="addBean"> <Arg> <New class="org.eclipse.jetty.security.HashLoginService"> <Set name="name">Test Realm</Set> <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set> <Set name="refreshInterval">0</Set> </New> </Arg> </Call> 创建文件:realm.properties 追加内容: admin: woaixiaotian,core-role 2.编辑 webdefault.xml 在标签</web-app>前追加 vi webdefault.xml <security-constraint> <web-resource-collection> <web-resource-name>Solr authenticated application</web-resource-name> <url-pattern>/</url-pattern> </web-resource-collection> <auth-constraint> <role-name>core-role</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>Test Realm</realm-name> </login-config>

      

  • 相关阅读:
    调试与分析
    GCC
    汇编
    数据恢复
    TCP/IP
    shell
    vmstat、top
    计算程序运行时间的封装
    protobuf
    c++模板
  • 原文地址:https://www.cnblogs.com/shoutn/p/8631752.html
Copyright © 2020-2023  润新知