Hướng dẫn Installing Solr 4.6 on Windows

Hướng dẫn Installing Solr 4.6 on Windows

The steps below are a guide to help you install Solr versions 4.1 to 4.6.  Here, I tested Solr 4.6 installation on Windows 7 and Windows 8.1.

1. Download and install Java SDK (I installed jdk-7u45-windows-x64.exe).

Hướng dẫn Installing Solr 4.6 on Windows

2. Download and install Apache Tomcat (I installed apache-tomcat-8.0.0-RC5.exe). Usually, Tomcat is installed on port 8983 (but this is optional- you can specify your own port).

raghu2

3. Test the Tomcat server in your browser. You should see the following screen:

raghu3

4. You can configure the Tomcat server by going to Windows > Start > Monitor Tomcat

raghu4

5. Stop the Tomcat server by going to Windows > Start > Monitor Tomcat > General Tab> Stop

raghu5

6. Download Solr-4.6.0 and unzip it in your local directory i.e. C:\ Solr-4.6.0 (download zip file).

7. Go to downloaded Solr folder above (step 6) and Copy solr.war file to Apache webapps folder. I.e. Copy C:\solr-4.6.0\dist\solr-4.6.0.war file  to  C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps folder (rename solr-4.6.0.war to solr.war).

8. Create an empty Solr home folder. i.e. C:\solr

9. Go to downloaded Solr folder above (step 6). Copy all files from C:\solr-4.6.0\solr-4.6.0\example\solr folder to C:\solr (Solr home folder). This will be your Solr home folder.

10. Look into C:\solr and you will see two folders with name collection1 and bin.

11. Copy the jars from C:\solr-4.6.0\example\lib\ext (all jars) into C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib (this is your Tomcat server main library directory).

12. Set the Java system property solr.solr.home to your Solr Home. Go to Windows > Start > Monitor Tomcat > Java Tab > Java Options. Enter the following entry at the end (see below screenshot): -Dsolr.solr.home=c:\solr

raghu11

13. Restart Tomcat by going to Windows > Start > Monitor Tomcat > General Tab > Start

raghustart

14. Test Solr by going to http://localhost:8983/solr/ in your browser. You should see the Solr admin page below.

raghu8

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Tạo chiến dịch email cho hoạt động bán hàng trên Drupal Commerce

Tạo chiến dịch email cho hoạt động bán hàng trên Drupal Commerce

Having the ability to send a targeted email to all purchasers of ‘product X’ can be priceless.

Làm sao để Lion không tự động sửa lỗi từ khi gõ?

Làm sao để Lion không tự động sửa lỗi từ khi gõ?

Gõ đúng nhưng lại bị Lion "autocorrect"? Giải pháp đây!

Thêm một máy tính bảng “đình đám” giá rẻ

Thêm một máy tính bảng “đình đám” giá rẻ

Ngay sau khi Amazon.com tung ra phiên bản máy tính bảng Kindle giá rẻ 199 USD và cháy hàng, mới đây Barnes & Noble quyết định tung ra máy tính bảng có tên Nook với cấu hình và dung lượng ấn tượng hơn.

Công ty diệt chuột T&C

 

Diet con trung