ELK实验(七)Elasticsearch集群管理-创新互联

Head 插件

为禅城等地区用户提供了全套网页设计制作服务,及禅城网站建设行业解决方案。主营业务为成都网站建设、成都网站制作、禅城网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

head插件是一个elasticsearch的集群管理工具,它是完全由html5编写的独立网页程序。

Github:

https://github.com/mobz/elasticsearch-head

git clone https://github.com/mobz/elasticsearch-head.git

安装

./elasticsearch plugin -install /usr/elasticsearch-head

ELK 实验(七)Elasticsearch 集群管理

新版本不支持plugin 直接安装

安装nodejs

yum install nodejs -y

居然还没有nodejs

去官网下一个

https://nodejs.org/en/download/package-manager/

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -

ELK 实验(七)Elasticsearch 集群管理

再来

yum install -y nodejs

yum install -y gcc-c++ make

就有了,17M

ELK 实验(七)Elasticsearch 集群管理

ELK 实验(七)Elasticsearch 集群管理

验证下安装

node -v

npm -v

ELK 实验(七)Elasticsearch 集群管理

使用国内淘宝源安装grunt

cd elasticsearch-head/

npm install -g grunt --registry=https://registry.npm.taobao.org

ELK 实验(七)Elasticsearch 集群管理

ELK 实验(七)Elasticsearch 集群管理

npm install grunt --save

看看安装好了么

ls -d node_modules/grunt

ELK 实验(七)Elasticsearch 集群管理

npm install -g grunt-cli --registry=https://registry.npm.taobao.org

ELK 实验(七)Elasticsearch 集群管理

npm install --registry=https://registry.npm.taobao.org

ELK 实验(七)Elasticsearch 集群管理

出错鸟,连接被拒绝了,容我修个错误

PhantomJS not found on PATH 目录下没找到,去下载的时候在github被拒绝了,伟大的墙。习主席说什么来着,智者造桥,愚者造墙。

代码分支了

https://www.npmjs.com/package/phantomjs-prebuilt

npm install phantomjs-prebuilt

node ./install.js

ELK 实验(七)Elasticsearch 集群管理

/usr/elasticsearch-6.2.3/plugins/elasticsearch-head

vi Gruntfile.js

hostname: '*', #增加此行

ELK 实验(七)Elasticsearch 集群管理

vi _site/app.js

更新这句

this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://192.168.209.168:9200";

启动服务

[root@ELK_001 elasticsearch-head]# grunt server

ELK 实验(七)Elasticsearch 集群管理

有文件头

curl -i localhost:9100

ELK 实验(七)Elasticsearch 集群管理

http://192.168.209.168:9100/

ELK 实验(七)Elasticsearch 集群管理

但是集群显示未连接

vi /usr/elasticsearch-6.2.3/config/elasticsearch.yml

http.cors.enabled: true

http.cors.allow-origin: "*"

加两句在启动下就好了

ELK 实验(七)Elasticsearch 集群管理

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

网页标题:ELK实验(七)Elasticsearch集群管理-创新互联
本文路径:https://www.cdcxhl.com/article22/cogsjc.html

成都网站建设公司_创新互联,为您提供网站维护商城网站自适应网站虚拟主机动态网站品牌网站设计

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

微信小程序开发