Bigdesk直接可以通过python提供的http服务器,
python -m SimpleHTTPServer
运行,服务器运行,端口号是8000,默认情况下linux系统下安装过了python,所以下载下来压缩包,直接运行服务就可以了。
下载地址
#官网地址
https://github.com/hlstudio/bigdesk
#百度链接
https://pan.baidu.com/s/1SGcZ8UEw35QSGKtPYep5Tw
提取码:wncm
#我的七牛地址
http://yellowcong.qiniudn.com/bigdesk-master.zip
安装
#下载
wget http://yellowcong.qiniudn.com/bigdesk-master.zip
#解压
unzip bigdesk-master.zip
#进入到sit目录
cd /bigdesk-master/_site
#启动web服务器
#监听端口号是 8000
python -m SimpleHTTPServer
#指定启动端口,并后台启动
nohup python -m SimpleHTTPServer 8888 >/dev/null 2>&1 &
web访问端口
web查看elastic节点下面的信息
配置elastic
#设定远程可以http访问elastic
vim config/elasticsearch.yml
#添加下面配置
#network.host 绑定ip
#http.cors.enabled 允许http
#http.cors.allow-origin 允许访问的ip * 表示任何ip都可以访问
network.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"
常见问题
Access to XMLHttpRequest at ‘http://192.168.1.221:9200/_cluster/health’ from origin ‘http://192.168.1.221:8000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
导致这个问题,是由于跨域了,解决得办法是配置elasticsearch.yml ,设定可以跨域操作
#设定远程可以http访问elastic
vim config/elasticsearch.yml
#添加下面配置
#network.host 绑定ip
#http.cors.enabled 允许http
#http.cors.allow-origin 允许访问的ip * 表示任何ip都可以访问
network.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"