behavior of relying on the SOLR home being in the current working directory (. /SOLR) You can alternately Add the SOLR. SOLR. home System property to your JVM settings before starting tomcat...
Export java_opts = "$ java_opts-dsolr. SOLR. Home =/My/custom/
, say this need to configure a lot of XML files in Tomcat, actually with the code is actually very little, Most of SOLR's stuff is in the configuration, and then the programmer almost gives up on SOLR, and after that, it's just a few words to the end of the conversation.In the first section, we will explain the installation and configuration of SOLR (this basic is the same as everyone else)Because
-tomcat-8.5.4/webapps/solr/solrhome/demo/conf/solrconfig. in the xml file, change lines-85 to the following content. Because we copied the content and the path changed, I will use the absolute path here.
Finally, start tomcat and remember to open port 8080. You can modify/etc/sysconfig/iptables, add-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 8080-j ACCEPT, and then enter service ipta
Window7
Jdk1.6.0 _ 14
Solr-4.7.2
Tomcat-6.0.37
The installation and configuration of SOLR home in SOLR mainly introduces the configuration based on JNDI. For other methods, refer to SOLR wiki.Configuration Based on JNDI
1: first create a SOLR running directory.
C: \
be run in Tomcat, so the first step is to install the JDK (the jdk1.7 i installed here), with Tomcat (the choice is TOMCAT7), these two installations are not here to talk about, online a lot of1. Download Tomcat and SOLR and unzip (install the JDK before installing)After Tomcat decompression, the disk path is C:/Program Files/apache software foundation/tomcat 7.0 (path arbitrary).2. Start the Tomcat serverBrowser input: http://localhost:8080This is d
-dataimportschedort-. jar and put it in C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ solr \ conf. Create
4. Restart tomcat.
Dataimport. properties configuration item description
######################################## ########### Dataimport schedort properties ######################### ########################### to sync or not to sync #1-active; anything else-inactivesyncEnabled = 1 # wh
set up. (there is only one core. solr supports multicore. Do not talk about it for the time being, but we will talk about it later.) The following describes how to import data:
(1) Open F: \ SOLR_HOME \ collection1 \ conf and you can see solrconfig under this folder. open the file, and add the following code in the middle of
(2) The data-config.xml file is introduced here, so you need to create a data-c
configure SOLR single core and multicore mode (multi-core mode means to configure multiple SOLR under the same server), the above is the single core mode, no need to make any changes (multi-core needs to be modified), he default to match the folder under the Collection1 folder, The other configuration files are in this folder, this section we mainly explain the single core mode, the single core mode unders
. sh:Export java_opts = "$ java_opts-dsolr. SOLR. Home =/opt/SOLR-Tomcat/SOLR"
Configuration Based on JNDI
Mkdir-P/opt/tomcat/CONF/Catalina/localhostTouch/opt/tomcat/CONF/Catalina/localhost/SOLR. XML, the content is as follow
. variable name: CATALINA_HOME value: C: \ apache-tomcat-8.0.28
2. variable name: TOMCAT_HOME value: C: \ apache-tomcat-8.0.28 \ bin
3. variable name: CLASS_PATH value:.; % JAVA_HOME % \ lib; % TOMCAT_HOME % \ BIN; % CATALINA_HOME % \ common \ lib \ servlet. jar
4. variable name: Path value:; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin;
The value between % and % is the address that references the existing variable name.
PS: CATALINA_HOME and TOMCAT_HOME should be the reason why the version is
content is commented out in the initial state):
12345
Change the contents of This configuration is primarily to establish the relationship between Tomcat and SOLR, and its role is to have Tomcat find the SOLR directory you have configured.6. Restart Tomcat and the admin interface of SOLR will appear in the browser input HTTP://LO
In the previous article, we first met Solr and learned about the startup mode of jetty, and looked at SOLR's management interface, which we implemented to deploy on Tomcat to run SOLR.Deployment environment:Window7Jdk1.6.0_14Solr-4.7.2tomcat-6.0.37SOLR's installation configuration, SOLR home, mainly describes the Jndi-based configuration, and other ways to refer to the
.5, The last step configuration solr.home, there can be three ways.1) method based on the current pathThis situation needs to be started in the c:/solr-tomcat/directory TOMCAT,SOLR find./SOLR, so you need to switch to c:/solr-tomcat/at boot time2) based on environment variablesWindows establishes solr.home in environme
Tags: nal definition view copy des create keep Enter cloud1 Import the SOLR jar package into Linux and unzip TAR-ZXVF solr-4.10.3.tgz.tgz2 Go to file CD Solr-4.10.3/bin run SOLR./SOLR start-p 8080 ps-ef|grep solr view
Solr (6) Cluster and solr ClusterPreface
As the number of users increases, the amount of space and concurrency increases, leading to the failure of a solr server. At this time, the solr cluster must be under.Cluster Architecture
Indexing and searching tasks are performed by multiple servers.
The solution is to split
Solr.war.
4 "Create a new Solr-tomcat folder, I am to put this folder in the C packing directory, you can use the same way, you can not, where you decide." After setting up the folder, put it under the set up a SOLR folder and put all the files under the EXAMPLE/SOLR folder inside the SOLR package into
Administration page:Core.properties in the core directory in addition to the name attribute, you can also configure some other properties that function as follows:Name:core's name, requiredConfig:core configuration file storage path, default is Conf\solrconfig.xmlDataDir: The directory where the index and updatelog are stored, the default is dataUlogdir: The directory where the updatelog is stored, the default is Data\tlogSchema: Configuration file f
First, installation environmentFigure 1-1 Tomcat and SOLR versionsI am currently using the Java version of JDK 1.8 because SOLR 4.9 requires a Java version of 1.7 +, please note.Ii. SOLR deployment to the Tomcat processFigure 1-2 Tomcat installation directory1, 1-2, for the directory of Tomcat decompression;Figure 1-3 Tomcat Home 2, in the directory E:\apache-to
commented out in the initial state):Change the contents of This configuration is primarily to establish the relationship between Tomcat and SOLR, and its role is to have Tomcat find the SOLR directory you have configured.6. Restart Tomcat and the admin interface of SOLR will appear in the browser input HTTP://LOCALHOST:8080/SOLRNote: I just started http://localh
Solr installation steps,I. Solr Overview 1. What is Solr?
Solr is a top-level open-source project under Apache developed using Java. It is a full-text search Server Based on Lucene. Solr provides a richer query language than Lucene, supports configuration and scalability, an
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.