Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
檀越@新空间
Coding Tree
提交
5ccb0a46
C
Coding Tree
项目概览
檀越@新空间
/
Coding Tree
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Coding Tree
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
5ccb0a46
编写于
6月 10, 2022
作者:
彭世瑜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
上级
d0d495e5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
98 addition
and
2 deletion
+98
-2
_sidebar.md
_sidebar.md
+1
-0
blog/elasticsearch/install.md
blog/elasticsearch/install.md
+92
-2
doc/chrome.md
doc/chrome.md
+3
-0
index.html
index.html
+1
-0
static/js/prism-yaml.min.js
static/js/prism-yaml.min.js
+1
-0
未找到文件。
_sidebar.md
浏览文件 @
5ccb0a46
...
@@ -34,3 +34,4 @@
...
@@ -34,3 +34,4 @@
-
其他
-
其他
-
[
其他
](
doc/index.md
)
-
[
其他
](
doc/index.md
)
-
[
chrome
](
doc/chrome.md
)
\ No newline at end of file
blog/elasticsearch/install.md
浏览文件 @
5ccb0a46
...
@@ -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
doc/chrome.md
0 → 100644
浏览文件 @
5ccb0a46
# Chrome
插件下载:
[
https://crxdl.com/
](
https://crxdl.com/
)
\ No newline at end of file
index.html
浏览文件 @
5ccb0a46
...
@@ -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>
...
...
static/js/prism-yaml.min.js
0 → 100644
浏览文件 @
5ccb0a46
!
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录