官方粗略教程
Running with built in server
enable cors by adding http.cors.enabled: true in elasticsearch configuration. Don’t forget to also set http.cors.allow-origin because no origin allowed by default. http.cors.allow-origin: "*" is valid value, however it’s considered as a security risk as your cluster is open to cross origin from anywhere.
Check Elasticsearch documentation on this parameter:
git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch-head
npm install
grunt server
open http://localhost:9100/
This will start a local webserver running on port 9100 serving elasticsearch-head
Best option if you are likely to connect to several different clusters
部署5.0版本的ES
5.0版本的ES跟之前的版本最大的不同之處就是多了很多環(huán)境的校驗,比如jdk,max-files等等。
設(shè)置內(nèi)核參數(shù)
vi /etc/sysctl.conf
# 增加下面的內(nèi)容
fs.file-max=65536 vm.max_map_count=262144
設(shè)置資源參數(shù)
vi /etc/security/limits.conf # 修改 <