Mig*_*ler 6 plugins frontend head elasticsearch
我正在尝试在我的服务器上运行elasticSearch-head插件,但我只能通过服务器终端访问它.如果我尝试通过浏览器访问它,它会尝试连接,直到显示"此页面不可用"浏览器消息.
如果我输入"curl -v http://localhost:9200/_plugin/head/"
终端,我明白了
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 9200 (#0)
> GET /_plugin/head/ HTTP/1.1
> User-Agent: curl/7.36.0
> Host: localhost:9200
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/html
< Content-Length: 1077
<
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>elasticsearch-head</title>
<link rel="stylesheet" href="dist/base/reset.css">
<link rel="stylesheet" href="dist/vendor.css">
<link rel="stylesheet" href="dist/app.css">
<script src="dist/i18n.js" data-baseDir="dist/lang" data-langs="en,fr,pt"></script>
<script src="dist/vendor.js"></script>
<script src="dist/app.js"></script>
<script>
window.onload = function() {
if(location.href.contains("/_plugin/")) {
var base_uri = location.href.replace(/_plugin\/.*/, '');
}
var args = location.search.substring(1).split("&").reduce(function(r, p) {
r[decodeURIComponent(p.split("=")[0])] = decodeURIComponent(p.split("=")[1]); return r;
}, {});
new app.App("body", {
id: "es",
base_uri: args["base_uri"] || base_uri,
auth_user : args["auth_user"] || "",
auth_password : args["auth_password"],
dashboard: args["dashboard"]
});
};
</script>
<link rel="icon" href="dist/base/favicon.png" type="image/png">
</head>
<body></body>
</html>
* Connection #0 to host localhost left intact
Run Code Online (Sandbox Code Playgroud)
但是,如果我去浏览器,我输入:XXXX:9200/_plugin/head /它只是没有显示任何东西.
我在这里失踪了什么?有什么猜测?
先感谢您.
看起来您需要创建一个端口隧道才能在本地计算机上访问它 - 您可以使用 putty 来完成此操作。
http://howto.ccs.neu.edu/howto/windows/ssh-port-tunneling-with-putty/
归档时间: |
|
查看次数: |
6089 次 |
最近记录: |