Install ElasticSearch on CentOS

Source: Internet
Author: User
Tags solr

Install ElasticSearch on CentOS

Elasticsearch is an open-source search engine based on Apache Lucene (TM). It is similar to Solr, but it has excellent performance and Solr in real time. Here is a comparison between the two.
Another blog posted by Daniel: http://blog.csdn.net/laigood12345/article/category/1113868
Here is the Chinese translation of official documents
Here is another Getting Started Guide

Install

The only requirement for installing Elasticsearch is Java. You can download the latest version from the official website, including zip, tar, deb, rpm, and other versions.

# curl -L -O https://download.elastic.co/elasticsearch/***/elasticsearch-***.rpm

Install

# rpm -ivh elasticsearch-***.rpm
Start the service

After the installation is successful, you will be prompted to usesystemctl start elasticsearch.serviceStart the service and usesystemctl status elasticsearch.serviceView service status

In this case, use "localhost: 9200" as prompted to access the service.

Configure Remote Access

If remote access is added (1) modify the configuration file

vi /etc/elasticsearch/elasticsearch.yml 

Modify network. host to the server IP address. If you need to customize the port, you can modify the http. port parameter.

(2) Add port access

Firewall-cmd -- list-all (view rules) firewall-cmd -- add-port = 6379/tcp -- permanentfirewall-cmd -- reload

Now you can use the address and port number for remote access.

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.