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

 
Giới thiệu Warm Introduction to the Drupal Community

Giới thiệu Warm Introduction to the Drupal Community

The Drupal Community is an incredibly friendly, welcoming place. 

Facebook khắc phục lỗi bình luận ảnh trên iOS

Facebook khắc phục lỗi bình luận ảnh trên iOS

Theo Digital Trends, thời gian gần đây, người dùng ứng dụng Facebook trên nền tảng iOS đã đưa ra phàn nàn về việc một số hình ảnh của họ khi được bạn bè bình luận...

5 bài học Web Design từ hệ thống E-commerce Store

5 bài học Web Design từ hệ thống E-commerce Store

As a content writer, I never thought I'd be running an e-commerce store, but when a brilliant product – and the perfect branding concept - fell into my lap earlier this year, I had to take the plunge.

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

 

Diet con trung