SimplePostTool:致命错误:连接错误(Solr在http:// localhost:8983/solr/update?运行?)

Che*_*ven 0 apache tomcat solr

我是索尔的初学者.我在Windows 7上的Tomcat 7上安装了Solr 1.4.1.安装成功我可以访问http:// localhost:8080/solr/admin / page.

但是当我试图发布一些测试XML时,我有这个奇怪的错误.

C:\Users\Bohdan\Downloads\apache-solr-1.4.1\apache-solr-1.4.1\example\exampledocs>java -jar post.jar solr.xml
SimplePostTool: version 1.2
SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file solr.xml
SimplePostTool: FATAL: Connection error (is Solr running at http://localhost:8983/solr/update ?): java.net.ConnectException: Connection refused: connect

C:\Users\Bohdan\Downloads\apache-solr-1.4.1\apache-solr-1.4.1\example\exampledocs>
Run Code Online (Sandbox Code Playgroud)

不幸的是我无法在互联网上找到答案.可能有人知道.

Mau*_*fer 7

仔细查看错误消息.预期的端口是8983,但您的端口是8080,因此无法连接.

如果要发布到端口8080,可以通过定义来实现 -Durl="http://localhost:8080/solr/update"