directory of the application Conta Iner. In the case of Tomcat, you are need to where the SOLR WAR file in Tomcat's WebApps directory. If you are installed Tomcat with SOLR, take a look in Tomcat/webapps:you ' ll-the Solr.war file is already there.
Point SOLR to the SOLR home directory, that contains
/web-inf/lib/C. LogsThe SOLR version that is currently in use does not itself provide the class storage path under Web-inf, and once created, you can add a log profile to that path:# cd/usr/local/tomcat/webapps/solr/web-inf/ # lib weblogic.xml mkdirThen go to solr-5.1.0 to find a name called log4j file, with the first found, put under the classes path:# cd/usr/
-6.0.20/CONF/Catalina/localhost directory.
Create the SOLR. xml file and add the following content:
Here we have created three solrcore instances: Forum, space, and group. Copy the SOLR. xml file to/usr/local/Apache-Tomcat-6.0.20/webapps/solrusr/local/Apache-Tomcat-6.0.20/webapps/SOLR.
Create folders Forum, space, and
Modify/etc/resolv. conf and restore it to the original state, etcresolv. conf
Ping: unknown host www.baidu.com ???
Modify/etc/resolv. conf. After the network adapter is restarted,/etc/resolv. conf is restored to the original state.
You cannot directly modify/etc/resolv. co
will use it as an example of solr. Download: solr-1.3.0, such as: extract to N:/OpenSource/apache-solr-1.3.0. For details about how to install solr in tomcat, refer to: Introduction to Solr usage. Here, we will search for Forum posts for examples, such as
Apache-tomcat-7.0.72\webapps\solr\web-inf\lib directory.Step two: Copy the prepared data-config.xml files to the solrhome\simple\conf directory, and schema.xml the same directory.Step three: Locate the Solrconfig.xml file in the solrhome\simple\conf directory and add the following to the file:Step four: Locate the Schema.xml file in the solrhome\simple\
SOLR Study Notes (2) Examples of SOLR
The database I use here is mysql. First, integrate MySQL
1. Create a table
-- ------------------------------ Table structure for `documents`-- ----------------------------DROP TABLE IF EXISTS `documents`;CREATE TABLE `documents` ( `id` int(11) NOT NULL auto_increment, `date_added` datetime NOT NULL, `title` varchar(255) NOT NULL, `content` text NOT NULL, PRIMARY KE
example. conf In the conf directory:
# example.conf: A single-node Flume configuration# Name the components on this agenta1.sources = r1a1.sinks = k1a1.channels = c1# Describe/configure the sourcea1.sources.r1.type = org.apache.flume.clients.log4jappender.Log4jAppendera1.sources.r1.bind = localhosta1.sources.r1.port = 44444# Describe the sinka1.sinks.k1.type = logger# Use a channel which buffers events in
in the browser? Command = Full-import, you can see the output
Ii. Test the MySQL databaseEnvironment and the created folderSteps:1. Create the mysqltest folder under D:/tomcat6.0.29/SOLR, Copy D:/tomcat6.0.29/SOLR/dB to D:/tomcat6.0.29/SOLR/mysqltest2. Modify the D:/tomcat6.0.29/SOLR. xml file3, modify D:/tomcat6.0.29
First, downloadApache solr6.1.0 Latest Version zip, unzip to generate a solr6.1.0 folderSecond, installation1. Create a new SOLR under the D:/projects2, copy the SOLR6.1.0/SERVER/SOLR to d:/projects/solr/, and change the folder to home, that is, d:/projects/solr/home.3. Copy a Tomcat folder under d:/projects/and rename
Where does thinkphp read Conf/conf. the database configuration information in the PHP file has been studied in thinkphp nbsp; framework for several days, but the database configuration information obtained during Database instantiation cannot be found. nbsp; nbsp; 'DB _ type' = gt; 'mysql', nbsp; n where does thinkphp read Conf/
when testing.
The following is a description of the Linux under Installation configuration SOLR, similar to Windows.
wget Http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.zip
Unzip Apache-tomcat-6.0.16.zip
MV Apache-tomcat-6.0.16/opt/tomcat
chmod 755/opt/tomcat/bin/*
wget http://apache.mirror.phpchina.com/lucene/solr/1.2/apache-solr
First, why blog write "LUCENE/SOLR Search engine Development Series" I graduated in 2011, 2011-2014 of the three years, in Shenzhen, the top 50 enterprises, engaged in the field of industrial control machine vision direction, the main use of language for C + +; now working in a large state-owned enterprise owned e-commerce company, mainly using language as Java, Responsible for the development of the company's next-generation search engine, so open th
Tomcat service and then visit http://127.0.0.1:8080/solr/The following page appears, indicating a successful configuration7, the configuration of Chinese word segmentation, the mmseg4j directory under a jar to copy to the solr/web-inf/lib/directory for SOLR to use, here must run again before the SOLR folder will be ge
, all its features are not listed in this article. this guy collects it easily.
First download the latest version from the official website. Solr is an application written in the Java language. you need a Java Runtime environment to run it.
$ cd solr-4.1.0/example/$ java -jar start.jar
In a few seconds, you can see the following information:
2013-03-09 18:47:41.177:INFO:oejs.AbstractConnector:Started Socke
/$ Java-jar Start.jar
In a few seconds you can see the following message:
2013-03-09 18:47:41.177:info:oejs. Abstractconnector:started socketconnector@0.0.0.0:8983
SOLR has a web interface that works under 8983 ports and opens a browser to access http://localhost:8983/solr/.
On the left-hand side of the navigation area you will find "Collection1″." In SOLR, colle
Where does thinkphp read Confconf. the database configuration information in the PHP file has been studied in the thinkphp framework for several days, but the database configuration information obtained during Database instantiation cannot be found. nbsp; DB_TYPE gt; mysql, nbsp; DB_HOST gt; localhost, nbsp; DB_NAME gt; where does thinkphp read Conf/conf. database configuration information in the PHP
Where does thinkphp read Confconf. the database configuration information in the PHP file has been studied in thinkphp nbsp; framework for several days, but the database configuration information obtained during Database instantiation cannot be found. nbsp; nbsp; DB_TYPE gt; mysql, nbsp; DB_HOST gt; Conf/conf where thinkphp reads data. database configuration information in the PHP file
I have been stu
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.