美文网首页
Solr https

Solr https

作者: 炼心之旅 | 来源:发表于2018-09-05 22:51 被阅读0次

    https://lucene.apache.org/solr/guide/6_6/enabling-ssl.html

    打开solr.ini.cmd,释放注释
    REM Enables HTTPS. It is implictly true if you set SOLR_SSL_KEY_STORE. Use this config
    REM to enable https module with custom jetty configuration.
    set SOLR_SSL_ENABLED=true
    REM Uncomment to set SSL-related system properties
    REM Be sure to update the paths to the correct keystore for your environment
    set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
    set SOLR_SSL_KEY_STORE_PASSWORD=secret
    set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
    set SOLR_SSL_TRUST_STORE_PASSWORD=secret
    REM Require clients to authenticate
    set SOLR_SSL_NEED_CLIENT_AUTH=false
    REM Enable clients to authenticate (but not require)
    set SOLR_SSL_WANT_CLIENT_AUTH=false
    SSL Certificates contain host/ip "peer name" information that is validated by default. Setting
    REM this to false can be useful to disable these checks when re-using a certificate on many hosts
    set SOLR_SSL_CHECK_PEER_NAME=true
    REM Override Key/Trust Store types if necessary
    set SOLR_SSL_KEY_STORE_TYPE=JKS
    set SOLR_SSL_TRUST_STORE_TYPE=JKS

    Solr Cloud:
    ./zkcli.sh -zkhost zooserver01:2181,zooserver02:2181,zooserver03:2181 -cmd clusterprop -name urlScheme -val https

    相关文章

      网友评论

          本文标题:Solr https

          本文链接:https://www.haomeiwen.com/subject/tmozwftx.html