Cross-domain
elasticsearch-head连接es时会提示连接失败,有可能就是没有开启跨域
http.cors.enabled | Whether to support cross-domain, the default is false |
http.cors.allow-origin | When setting allows cross-domain, default is *, expressed support for all domain names, if we only allow access to certain sites, you can use regular expressions. For example, only allow local address. / Https:? \ / \ / Localhost (: [0-9] +)? / |
http.cors.max-age | Browser sends a "pre-screening" the OPTIONS request to determine CORS provided. The results define how long the maximum age should be cached. The default is 1728000 (20 days) |
http.cors.allow-methods | Backbones allowed to request the default OPTIONS, HEAD, GET, POST, PUT, DELETE |
http.cors.allow-headers | Allow cross-domain header information set, the default is X-Requested-With, Content-Type, Content-Length |
http.cors.allow-credentials | Whether to return the set of cross-domain Access-Control-Allow-Credentials head, if set to true, it will be returned to the client. |
x-pack
x-pack monitoring role
Features
Graphic shows xpack.graph.enabled only to kibana components
reporting statistics pack.reporting.enabled only to kibana components
alarm notification xpack.watcher.enabled applies only to elasticsearch components
safety certification xpack.security.enabled three components suitable for elk
the three components suitable for elk surveillance tracking xpack.monitoring.enabled of
equipment suitable for resource allocation xpack.ml.enabled elasticsearch components and kibana
# # Set description xpack.graph.enabled # Set to false to disable the X- - Pack graphics capabilities. xpack.ml.enabled # Set to false to disable the X- - Pack machine learning. xpack.monitoring.enabled # Set to false to disable the X- - Pack monitoring. xpack.reporting.enabled # Set to false to disable the X- - Pack reporting. xpack.security.enabled # Set to false to disable the X- - Pack security features. xpack.watcher.enabled # Set to false to disable Watche
Monitoring data collection
These settings xpack.monitoring.collection how to collect data from the control node Elasticsearch
xpack.monitoring.collection.enabled: true 启用
xpack.monitoring.collection.interval: 30s intervals,
https://segmentfault.com/a/1190000016824141?utm_source=tag-newest
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/monitoring-settings.html
Open ssl
xpack.ssl.key: elasticsearch/elasticsearch.key
xpack.ssl.certificate: elasticsearch/elasticsearch.crt
xpack.ssl.certificate_authorities: ca/ca.crt
xpack.security.transport.ssl.enabled: true
ES plug
Official website to download the installation package
https://www.elastic.co/cn/
Then install jdk node.js environment
https://www.cnblogs.com/wudequn/p/11147869.html
https://www.cnblogs.com/wudequn/p/11072561.html
Official Documents
https://www.elastic.co/cn/blog/security-for-elasticsearch-is-now-free
https://www.elastic.co/guide/cn/index.html
https://discuss.elastic.co
https://github.com/elastic
A, IK word
https://github.com/medcl/elasticsearch-analysis-ik/releases
After downloading, pressure, rename the folder ik, placed in the plugins directory.
Installation ES
First, modify the configuration file
Second, start the console ES or ES start the following services
Third, the ES installation or service
Or by nssm
Fourth, the test
V. Installation es-head
alsticsearch just provide a variety of back-end API, then how intuitive use it? Elasticsearch-head will be a specialized tool for the client in the Elasticsearch
Elasticsearch-head安装包包,下载地址:https://github.com/mobz/elasticsearch-head
修改es-head目录下面的Gruntfile.js文件,添加hostname:’*'
1、首先要安装node.js:安装教程
2、cmd执行 npm install -g grunt-cli 安装grunt ,安装完成后执行grunt -version查看是否安装成功,会显示安装的版本号
3、在es-head目录下cmd执行 grunt server 或者npm run start 运行head插件