Browse Source

es增加用户名密码

wangchuanjin 4 years ago
parent
commit
fb2f04cb14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/es_jydoc.md

+ 1 - 1
docs/es_jydoc.md

@@ -18,7 +18,7 @@
 
 #### 创建文库jydoc索引
 ```
-curl -XPUT http://localhost:9200/jydoc_v1 -H 'Content-Type:application/json' -d '{
+curl -XPUT http://localhost:9200/jydoc_v1 -u elastic:elastic -H 'Content-Type:application/json' -d '{
 	"mappings": {
 		"properties": {
 			"id": {