Centos6.5 install ElasticSearch
Select ElasticSearch-RTF
Previously, all of the downloaded versions were released on the official website, but he did not do a good job in Chinese word segmentation. You need to install the Chinese word divider. Even if you have installed the ik word divider, it cannot be well supported. You need to install some plug-ins and configure them. Fortunately, there is a lazy package of RTF on the Internet.
What is ElasticSearch-RTF? RTF is the abbreviation of Ready To Fly. In the aerial model, it indicates that you can directly use the flying aviation model without assembling parts by yourself. elasticsearch-RTF is a release version for Chinese, use the latest and stable elasticsearch version, and help you download and test the corresponding plug-ins, such as the Chinese word segmentation plug-in. It will also help you with some default configurations, the purpose is to allow you to download and use it directly (although es is already very simple, many new users still need to spend time looking for configuration, and the process in the middle is actually very painful ), of course, after you are familiar with these features, you can start diy on your own, just like the many releases of linux. Elasticsearch Chinese release, integrated with relevant plug-ins for Chinese
Change configuration
Modify the configuration information in the elasticsearch. yml file in the config folder as follows:
Cluster. name: Cluster name node. name: "node name" path. data:/data/elastic/data if there is a mounted data disk, it is best to put it in the data disk path. logs:/data/elastic/log if there is a mounted data disk, it is best to put it in the data disk
Redis support
RTF needs Redis support, redis installation, see: http://blog.csdn.net/qq_27575627/article/details/50164129
HTTP Basic Authentication for Elasticsearch
Our server has been under DDOS attacks since it was not long before ElasticSearch was launched. The reason is that the head plug-in can be accessed without http authentication. We chose to install HTTP Basic Authentication for Elasticsearch and it will never be attacked again.
Installation Steps
Create an http-basic folder to download the jar package under the plug-ins directory of ElasticSearch, copy it to the http-basic folder, and add the following code under the config folder elasticsearch. yml:
Http. basic. enabled: truehttp. basic. user: "username to be filled in" http. basic. password: "password to be filled in"
Start the service
Enter the bin directory and enter the following command to start the service.-d means to run the service in the background. Otherwise, the service will be terminated once the window is closed.
./elasticsearch -d