CentOS 8 部署Elasticsearch-head

参考:linux(centos 7)下安装elasticsearch - head插件(端口占用,防火墙关闭)

修改配置
  1. 修改head的连接地址 elasticsearch-head/_site/app.js
this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://localhost:9200";

localhost改为自己的ip,比如我的是192.168.52.129

  1. 修改服务器的监听地址elasticsearch-head/Gruntfile.js
# 导航到elasticsearch-head目录下
vi gruntfile.js
# 如下图位置,增加
hostname: '*'

部署中碰到的问题
  1. Warning: Task "server" not found. Use --force to continue.
grunt server

猜你喜欢

转载自www.cnblogs.com/cndota2/p/13162861.html