Elasticsearch-head-master配置 (与es连接)

1.修改Gruntfile.js(根目录下)

connect: {
			server: {
				options: {
					hostname:'*',
					port: 9100,
					base: '.',
					keepalive: true
				}
			}
		}

2.修改_site目录下的app.js

this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://192.168.148.133:9200";
#将原来的localhost改为服务器ip

3.修改es中conf目录下elasticsearch.yml文件

#追加内容
http.cors.enabled: true
http.cors.allow-origin: "*"
node.master: true
node.data: true

基本搞定!

猜你喜欢

转载自blog.csdn.net/m0_67390963/article/details/126717022