- The discovery mechanism is unicast by default and needs to be configured with discovery.zen.ping.unicast.hosts: If each node uses the default port, only the IP (["172.17.4.47", "172.17.4.48", ' 172.17.4.49 ']), if the default port is not used, configure the ip+ port (["172.17.4.47:9301", "172.17.4.48:9301", ' 172.17.4.49:9301 ')
- RESTAPI does not support dropping indexes, closing indexes, and cannot do this in head, if you want to remove the Use Curl command (Curl-xdelete http://172.17.4.47:9200/indexname)
Add Configuration entry: Http.cors.allow-origin: "*" to support API-based control functions in head plug-ins, such as deleting indexes, deleting aliases, adding aliases, etc.
- Service-wapper can not be used, according to the official website method, enter the Elasticsearch bin directory, execute "./elasticsearch-d" command background start es, need to stop, first find the process ID of es (ps-ef | grep elasticsearch), then kill
- Users who cannot start ES with root privileges need to create a new normal user (Esrun,useradd), set a password (passwd), and then assign the ES directory permissions to the new user (Chown-r esrun:esrun/home/ elasticsearch2.3.1), and then start es (su esrun) as Esrun
- IK installation: Download the source code (Zip package) from GitHub, unzip it, go to the directory, execute the MVN package, and then target\releases\ Elasticsearch-analysis-ik-1.9.1.zip extract to Directory IK, then copy the IK directory to es under plugin
- IK configuration: The type configuration is adjusted by Type:org.elasticsearch.index.analysis.IkAnalyzerProvider to Type:ik, example:
- IK configuration: IK's Thesaurus and config file directory, adjusted from config to plugin/ik/
- Gateway Configuration: Remove Gateway.type:local
- JVM Head Memory settings:
Bin/elasticsearch.in.sh (high priority, subject to this configuration):
Bin/service.bat (prevention mechanism):
- need to add configuration: http.cors.enabled:true, support batch CREATE index
- shutdown JSONP, security mechanism, do not configure: http.jsonp.enable:true
Elasticsearch Version Upgrade Memo (1.5.2 to 2.3.1)