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.service
Start the service and usesystemctl status elasticsearch.service
View 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.