提交 5ccb0a46 编写于 作者: 彭世瑜's avatar 彭世瑜

fix

上级 d0d495e5
...@@ -34,3 +34,4 @@ ...@@ -34,3 +34,4 @@
- 其他 - 其他
- [其他](doc/index.md) - [其他](doc/index.md)
- [chrome](doc/chrome.md)
\ No newline at end of file
...@@ -222,6 +222,97 @@ Kibana server is not ready yet ...@@ -222,6 +222,97 @@ Kibana server is not ready yet
## 4、安装ElasticSearch-Head插件 ## 4、安装ElasticSearch-Head插件
### 4.1、安装Node.js
下载地址:[https://nodejs.org/zh-cn/download/](https://nodejs.org/zh-cn/download/)
推荐使用: [nvm](https://github.com/nvm-sh/nvm) 来管理node.js版本
```bash
# 查看版本
node -v
v16.14.0
```
### 4.2、下载 elasticsearch-head
- [http://mobz.github.io/elasticsearch-head/](http://mobz.github.io/elasticsearch-head/)
- [https://github.com/mobz/elasticsearch-head](https://github.com/mobz/elasticsearch-head)
clone 代码
```bash
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
```
或者下载elasticsearch-head-master.zip 压缩包
```bash
wget https://github.com/mobz/elasticsearch-head/archive/refs/heads/master.zip -O elasticsearch-head-master.zip
# 解压
unzip elasticsearch-head-master.zip
cd elasticsearch-head-master
```
修改配置(可以略过)
```js
// Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
connect: {
server: {
options: {
// 添加配置项,可以外网访问
hostname: '*',
port: 9100,
base: '.',
keepalive: true
}
}
}
});
};
```
```bash
# 安装依赖
pnpm i
# 启动服务, 需要提前启动 elasticsearch
npm run start
```
查看地址:http://localhost:9100/
### 4.3、问题:
如果无法发现ES节点,尝试修改ES配置文件,允许跨域
```yaml
# config/elasticsearch.yml
# 允许跨域
http.cors.enabled: true
http.cors.allow-origin: "*"
```
### 4.4、从Chrome应用商店安装
- ElasticSearch Head 0.1.4: [elasticsearch-head-chrome](https://github.com/TravisTX/elasticsearch-head-chrome)
- ElasticSearch Head v0.1.5: [https://crxdl.com/](https://crxdl.com/) 搜索:ffmkiejjmecolpfloofpjologoblkegm
备用地址:[https://github.com/mouday/ElasticSearch-Head.crx](https://github.com/mouday/ElasticSearch-Head.crx)
## 5、不同编程语言的客户端 ## 5、不同编程语言的客户端
https://www.elastic.co/guide/en/elasticsearch/client/index.html https://www.elastic.co/guide/en/elasticsearch/client/index.html
...@@ -274,5 +365,4 @@ server { ...@@ -274,5 +365,4 @@ server {
} }
``` ```
https://www.bilibili.com/video/BV1LY4y167n5?p=3&spm_id_from=pageDriver https://www.bilibili.com/video/BV1LY4y167n5?p=5&spm_id_from=pageDriver&vd_source=efbb4dc944fa761b6e016ce2ca5933da
\ No newline at end of file
# Chrome
插件下载:[https://crxdl.com/](https://crxdl.com/)
\ No newline at end of file
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
<script src="static/js/prism-python.min.js"></script> <script src="static/js/prism-python.min.js"></script>
<script src="static/js/prism-less.min.js"></script> <script src="static/js/prism-less.min.js"></script>
<script src="static/js/prism-json@1.26.0.min.js"></script> <script src="static/js/prism-json@1.26.0.min.js"></script>
<script src="static/js/prism-yaml.min.js"></script>
<script src="static/js/search@4.12.2.min.js"></script> <script src="static/js/search@4.12.2.min.js"></script>
<script src="static/js/docsify-copy-code@2.1.1.min.js"></script> <script src="static/js/docsify-copy-code@2.1.1.min.js"></script>
......
!function(e){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,t="(?:"+r.source+"(?:[ \t]+"+n.source+")?|"+n.source+"(?:[ \t]+"+r.source+")?)",a="(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g,(function(){return"[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"})),d="\"(?:[^\"\\\\\r\n]|\\\\.)*\"|'(?:[^'\\\\\r\n]|\\\\.)*'";function o(e,n){n=(n||"").replace(/m/g,"")+"m";var r="([:\\-,[{]\\s*(?:\\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\\]|\\}|(?:[\r\n]\\s*)?#))".replace(/<<prop>>/g,(function(){return t})).replace(/<<value>>/g,(function(){return e}));return RegExp(r,n)}e.languages.yaml={scalar:{pattern:RegExp("([\\-:]\\s*(?:\\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\\S[^\r\n]*(?:\\2[^\r\n]+)*)".replace(/<<prop>>/g,(function(){return t}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp("((?:^|[:\\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\\s*:\\s)".replace(/<<prop>>/g,(function(){return t})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+d+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),lookbehind:!0,alias:"number"},boolean:{pattern:o("false|true","i"),lookbehind:!0,alias:"important"},null:{pattern:o("null|~","i"),lookbehind:!0,alias:"important"},string:{pattern:o(d),lookbehind:!0,greedy:!0},number:{pattern:o("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)","i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册