Solr, what is solr, is what you want to eat is “rotten” and can’t be eaten, out of date~
Well. . . Just kidding, the pronunciation is “search”, an open source framework dedicated to search, lunce will not say, it is not easy to use, trouble
Let’s talk about solr
At present, the latest update is 6.0, which was updated on April 7-8. Brother doesn’t like to use the new version, there will be more or less bugs. After centos7 came out, I have been using 6.5 so far (I can’t bear 7. .West)
6.0 I also tried to install, but it will report an error, the log file can’t be found, and I can’t create a new one by myself. I went to the official jira and found that there is indeed such a bug, but it’s already Close status, it is estimated to be fixed
Then abandon 6.0, let’s talk about the previous version 5.5 first.
First you have to download this version of the package
< div> Address:
http://archive.apache.org/dist/lucene/solr/5.5.0/
Download and upload (chuang) to your linux
As follows, I put it in this folder and unzip it here
< div>
The name is too complicated~! Change the door!
Okay, let’s get to the main topic
After solr5, it comes with jetty as a server, so you can do it yourself Start, the built-in one is a bit more convenient than using tomcat in solr4.
cd solr5 after entering
Run like this:
Start solr…
Start successfully, happy searching! (Why did I suddenly think of HHKB? I beg to give it away~~~)
Then 8983 is the port of the search service.
See the wood Yes, the startup was successful… I won’t say anything about this logo. My first reaction was Huawei
Here is some version information:
< div> Okay, the above is jetty. It’s simple.
So some children’s shoes like to use tomcat deployment. That certainly has his reason.
Unzip tomcat7 to this directory and rename it
< di v> Copy the webapp folder under the solr5\server\solr-webapp directory to the webapps under tomcat7, and rename it to solr
< /div>
in the solr5/server/lib/ext directory
Add all jar packages to the solr project
Remember this directory
Modify the solr web.xml just put in tomcat7
Let go Comment, and replace the white part of the second line with the directory just now
:wq save and exit
Copy the log file to the solr classes under tomcat7
< div> The last step:
Start tomcat
Log:
< /div>
Screenshot:
Version information, tomcat7 oh~
The next article will introduce and explain in detail the solr cluster, zookeeper, etc. Welcome to follow and subscribe to my headline number and WeChat official account, let’s learn and make progress together~
Solr, what is solr, is what you want to eat is “rotten” and can’t be eaten, out of date~
Well. . . Just kidding, the pronunciation is “search”, an open source framework dedicated to search, lunce will not say, it is not easy to use, trouble
Let’s talk about solr
At present, the latest update is 6.0, which was updated on April 7-8. Brother doesn’t like to use the new version, there will be more or less bugs. After centos7 came out, I have been using 6.5 so far (I can’t bear 7. .West)
6.0 I also tried to install, but it will report an error, the log file can’t be found, and I can’t create a new one by myself. I went to the official jira and found that there is indeed such a bug, but it’s already Close status, it is estimated to be fixed
Then abandon 6.0, let’s talk about the previous version 5.5 first.
First you have to download this version of the package
< div> Address:
Let’s talk about solr
Currently, the latest update is 6.0, which will be updated on April 7-8. I don’t like to use the new ones. The version of, there will be more or less bugs. After centos7 came out, I have been using 6.5 (it’s unbearable 7… West it)
I put it in this folder as follows, and unzip it here
After downloading, upload (chuang) to your linux
Put it in this folder and unzip it here
The name is too complicated~! Change the door!
Okay, let’s get to the main topic
After solr5, it comes with jetty as a server, so you can Start, the built-in one is a bit more convenient than using tomcat in solr4.
cd solr5 after entering
Run like this:
Okay, let’s get to the topic
After solr5, jetty is included as a server, which can be started by itself. The built-in one is a bit more convenient than the previous solr4 using tomcat
After cd solr5 enters< /p>
Run like this:
Start solr…
Start successfully, happy searching! (Why did I suddenly think of HHKB? I beg to give it away~~~)
Then 8983 is the port of the search service.
See the wood Yes, the startup was successful… I won’t say anything about this logo. My first reaction was Huawei
Start solr…
Startup successfully , Happy searching! (Why did I suddenly think of HHKB? I beg to give it away~~~)
Then 8983 is the port of the search service
Yes, the startup was successful… I won’t say anything about this logo. My first reaction was Huawei
Here is some version information:
OK, The above is jetty, it’s simple
So some children’s shoes like to use tomcat to deploy it. There is his reason.
Okay, the above is jetty, it’s simple.
So some children’s shoes like to use tomcat deployment.
Okay, it’s tomcat. Although it’s a bit troublesome, since the official use of jetty, there must be a reason for it.
Unzip tomcat7 to this directory and Rename
Set w in the solr5\server\solr-webapp directory Copy the ebapp folder to webapps under tomcat7 and rename it to solr
In solr5/server/lib/ ext directory
Add all jar packages to the solr project
< p>
Remember this directory
Modify the solr web.xml just put into tomcat7
Release the comment, and replace the white part in the second line with just now Directory
Remember this directory
Modify the solr web.xml just put into tomcat7
Let go of the comment and replace the second The white part is the directory just now
:wqSave and exit
Copy log files Go to the solr classes under tomcat7
The last step:
Start tomcat
Last step:
Start tomcat
Log:
Screenshot as a souvenir:
Version information, tomcat7~
< /p>
The next article will introduce and explain in detail the solr cluster, zookeeper, etc. Welcome to follow and subscribe to my headline number and WeChat official account, learn together and make progress~< /p>
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist] SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4595 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC