2010-12-04 19 views
0

Je suis débutant dans Solr. J'ai installé Solr 1.4.1 sur Tomcat 7 sous Windows 7. L'installation a réussi. Je peux atteindre la page http://localhost:8080/solr/admin/. Mais quand j'essaye de publier des tests XML, j'ai cette erreur bizarre.SimplePostTool: FATAL: Erreur de connexion (Solr est-il en cours d'exécution à http: // localhost: 8983/solr/update?)

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> 

Malheureusement je ne trouve pas de réponse sur internet. Peut-être que quelqu'un sait.

Répondre

7

Regardez bien le message d'erreur. Le port attendu est 8983, mais votre port est 8080, donc il ne peut pas se connecter.

Si vous souhaitez publier sur le port 8080, vous pouvez le faire en définissant -Durl="http://localhost:8080/solr/update"

+0

vous avez raison mais je ne sais pas comment le changer ... il n'y a qu'un seul fichier jar pour poster sans configuration . – Cherven

+1

voici la solution java -Durl = localhost: 8080/solr/update -jar post.jar solr.xml – Cherven

+1

Dans mon cas, il devait être: java -Durl = http: // localhost: 8080/solr/update -jar post.jar solr.xml monitor.xml – Rasmus