
私はCentOs-6.7(Java最新バージョンをインストール)を使用しておりsolr-5.3.2.tgz
、http://a.mbbsindia.com/lucene/solr/5.3.2/. その後、自分のディレクトリに解凍し
/opt/solr-5.3.2
、コマンドを使用してSolrを起動しました。
bin/solr スタート -e クラウド -noprompt
その後、Solr は問題なく正常に起動し、ポートが正常にリッスンされ、確立されていることを確認しました。以下は、Solr を起動した後の印刷物です。
Welcome to the SolrCloud example!
Starting up 2 Solr nodes for your example SolrCloud cluster.
Creating Solr home directory /opt/solr-5.3.2/example/cloud/node1/solr
Cloning /opt/solr-5.3.2/example/cloud/node1 into
/opt/solr-5.3.2/example/cloud/node2
Starting up Solr on port 8983 using command:
bin/solr start -cloud -p 8983 -s "example/cloud/node1/solr"
Waiting up to 30 seconds to see Solr running on port 8983 [\]
Started Solr server on port 8983 (pid=8560). Happy searching!
Starting up Solr on port 7574 using command:
bin/solr start -cloud -p 7574 -s "example/cloud/node2/solr" -z localhost:9983
Waiting up to 30 seconds to see Solr running on port 7574 [\]
Started Solr server on port 7574 (pid=8776). Happy searching!
Connecting to ZooKeeper at localhost:9983 ...
Uploading /opt/solr-5.3.2/server/solr/configsets/data_driven_schema_configs/conf for config gettingstarted to ZooKeeper at localhost:9983
Creating new collection 'gettingstarted' using command:
http://localhost:8983/solr/admin/collections?action=CREATE&name=gettingstarted&numShards=2&replicationFactor=2&maxShardsPerNode=2&collection.configName=gettingstarted
{
"responseHeader":{
"status":0,
"QTime":22130},
"success":{"":{
"responseHeader":{
"status":0,
"QTime":20693},
"core":"gettingstarted_shard2_replica2"}}}
Enabling auto soft-commits with maxTime 3 secs using the Config API
POSTing request to Config API: http://localhost:8983/solr/gettingstarted/config
{"set-property":{"updateHandler.autoSoftCommit.maxTime":"3000"}}
Successfully set-property updateHandler.autoSoftCommit.maxTime to 3000
SolrCloud example running, please visit: http://localhost:8983/solr
問題は、Solrコンソールを開こうとしたときですhttp://localhost:8983/solrまたはhttp://localhost:8983、エラーが発生しています
"SolrCore Initialization Failures"
また、接続が失われることもあります。
注記:チェックリスト
ポートは聞いています
コアはコマンドを使用して作成されます
何度も再起動
答え1
ファイアウォールに IP アドレスを追加する必要があります (例: CentOS マシンの iptables)。そのテーブルで IP を構成すると、マシンにアクセスできるようになります。