我正在使用 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://本地主机:8983,我收到错误
"SolrCore Initialization Failures"
并且还失去连接。
笔记:清单
端口正在侦听
核心是使用命令创建的
重启了很多次
答案1
您需要在防火墙中添加IP地址(例如CentOS机器中的iptables)。在该表中配置 IP 后,您就可以访问该计算机。