How to run Solr 4 in Tomcat locally?

后端 未结 6 1111
[愿得一人]
[愿得一人] 2021-02-07 09:58

I\'ve been trying to set up Solr 4.3 on my home PC (in Tomcat 7) but it doesn\'t run. I have set up Tomcat and deployed the solr.war file which both unpacks and sho

6条回答
  •  温柔的废话
    2021-02-07 10:43

    Here is instruction provided by Tony at Drupal for Windows with XAMPP installed:

    Preliminaries

    • Make yourself a nice cup of tea
    • Make sure you have the Windows Java environment installed. It's up to version 6 at the moment.
    • I assume you use XAMPP to run Apache and MySQL and latest version of PHP5

    Installing Tomcat

    1. If you installed XAMPP with Tomcat, go to your Service Tray, stop XAMPP services and remove the Tomcal directory from within your XAMPP installation. Then restart your XAMPP again. The reason is that you want to be able to configure Tomcat easily from Services Tray in Windows. If Tomcat runs under XAMPP, it does not show up in the Services Tray.
    2. Before you install Tomcat, copy the file c:\windows\microsoft.net\framework\v1.1.4322\msvcr71.dll to c:\windows\system32\msvcr71.dll If you don't do this, Tomcat won't start up.
    3. Now install Tomcat 6.x. Start it running. You should get a page showing at http://localhost:8080 if Tomcat is working.
    4. Have a peek at the file structure of Tomcat. It is very straightforward. Note the directory called webapps.
    5. Now have a nice cup of tea.

    If you're on Linux, check: Apache Solr 4.6.0 installation.

提交回复
热议问题