SOLR and Project Integration-Java environment variables

Source: Internet
Author: User
Tags solr

1. Development Environment Integration

1) Integration in the myeclipse Environment

Add the following content to Windows-properties-Tomcat-JDK-optional Java VM arguments:

-Dsolr. SOLR. Home = D:/myprojects/Central/src/config/SOLR-dorg. Apache. tomcat. util. Buf. udecoder. allow_encoded_slash = true

 

2) Integration in the ecipse Environment

Find java_opts In the tomcat/bin/Catalina. BAT file and add the red content to it:

 

Java_opts = '-xms512m-xmx512m-XX: maxnewsize = 512 M-XX: maxpermsize = 512 m-Dsolr. SOLR. Home =/var/www/SVN/Central/src/config/SOLR-dorg. Apache. tomcat. util. Buf. udecoder. allow_encoded_slash = true-DCOM. sun. management. jmxremote. authenticate = false-DCOM. sun. management. jmxremote. SSL = false-DCOM. sun. management. jmxremote. port = 7080-DCOM. sun. management. jmxremote'

 

 

2. Deployment environment integration

 

Find java_opts In the tomcat/bin/Catalina. Sh file and add the red content to it:

 

 

Java_opts = '-xms512m-xmx512m-XX: maxnewsize = 512 M-XX: maxpermsize = 512 m-Dsolr. SOLR. Home =/var/www/SVN/Central/src/config/SOLR-dorg. Apache. tomcat. util. Buf. udecoder. allow_encoded_slash = true-DCOM. sun. management. jmxremote. authenticate = false-DCOM. sun. management. jmxremote. SSL = false-DCOM. sun. management. jmxremote. port = 7080-DCOM. sun. management. jmxremote'

Note:/Var/www/SVN/Central/src/config/SOLR is the installation path of SOLR, which has two directories: conf and data,

Schedual. conf exists. XML and solrconfig. xml configuration file, where solrconfig. the <datadir>/var/www/webapps/Fulltext/Data </datadir> label in XML indicates the disk path of the SOLR index file.

That is, the index directory file in/var/www/webapps/Fulltext/data is the generated index file.

/Var/www/SVN/Central/src/config/SOLR is the main directory of SOLR

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.