You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/01/02 07:06:51 UTC

[incubator-skywalking-website] branch master updated: Delete 2019-01-12-skywalking-elasticsearch-basic.md

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 548c67f  Delete 2019-01-12-skywalking-elasticsearch-basic.md
548c67f is described below

commit 548c67fa135806e9eba6a8d0e5cb82802883ebd1
Author: 吴晟 Wu Sheng <wu...@foxmail.com>
AuthorDate: Wed Jan 2 15:06:48 2019 +0800

    Delete 2019-01-12-skywalking-elasticsearch-basic.md
---
 .../2019-01-12-skywalking-elasticsearch-basic.md   | 61 ----------------------
 1 file changed, 61 deletions(-)

diff --git a/docs/zh/blog/2019-01-12-skywalking-elasticsearch-basic.md b/docs/zh/blog/2019-01-12-skywalking-elasticsearch-basic.md
deleted file mode 100644
index a739dcb..0000000
--- a/docs/zh/blog/2019-01-12-skywalking-elasticsearch-basic.md
+++ /dev/null
@@ -1,61 +0,0 @@
-### 关于使用elasticsearch,需要basic认证问题
-
-skywalking依赖elasticsearch集群,如果elasticsearch安装有x-pack插件的话,那么就会存在一个Basic认证,导致skywalking无法调用elasticsearch,解决方法是使用nginx做代理,让nginx来做这个Basic认证,那么这个问题就自然解决了。
-
-方法如下:
-
-1.安装nginx
-
-> yum install -y nginx
-
-
-2.配置nginx
-
-```xml
-
-
-server {
-        listen       9200 default_server;
-        server_name  _;
-        
-        location / {
-                 proxy_set_header Host $host;
-                 proxy_set_header X-Real-IP $remote_addr;
-                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-                 proxy_pass http://localhost:9200;
-                 #Basic字符串就是使用你的用户名(admin),密码(12345)编码后的值
-                 #注意:在进行Basic加密的时候要使用如下格式如:admin 123456 注意中间有个空格,如果使用其它格式,那么结果我们是无法预知的,最起码笔者使用上诉格式没有出现问题。
-                 proxy_set_header Authorization "Basic YWRtaW4gMTIzNDU2";
-        }
-    }
-
-
-```
-
-3.验证
-
-> curl localhost:9200
-
-```xml
-{
-  "name" : "Yd0rCp9",
-  "cluster_name" : "es-cn-4590xv9md0009doky",
-  "cluster_uuid" : "jAPLrqY5R6KWWgHnGCWOAA",
-  "version" : {
-    "number" : "6.3.2",
-    "build_flavor" : "default",
-    "build_type" : "tar",
-    "build_hash" : "053779d",
-    "build_date" : "2018-07-20T05:20:23.451332Z",
-    "build_snapshot" : false,
-    "lucene_version" : "7.3.1",
-    "minimum_wire_compatibility_version" : "5.6.0",
-    "minimum_index_compatibility_version" : "5.0.0"
-  },
-  "tagline" : "You Know, for Search"
-}
-
-
-```
-
-## 看到如上结果那么恭喜你成功了。