一、elasticsearch下载地址
1、官网:https://www.elastic.co/cn/
2、直接解压
三、进入bin目录双击.bat文件直接启动
3、报错:error downloading geoip database [GeoLite2-City.mmdb],elasticsearch.yml中增加:
ingest.geoip.downloader.enabled: false
4、访问地址http://localhost:9200/,无法访问;改成https://localhost:9200/,需要输入账号密码,改elasticsearch.yml
xpack.security.enabled: false
xpack.security.transport.ssl.enabled: false
xpack.security.http.ssl:
enabled: false
xpack.security.transport.ssl:
enabled: false
5、http://localhost:9200/访问成功:
二、elasticsearch-head-master安装
1、下载地址:https://github.com/mobz/elasticsearch-head
2、下载完成后直接解压;
3、如果需要使用elasticsearch-head-master话需要安装node.js,nideJS官网下载http://nodejs.cn/download/;
4、进入cmd命令窗口直接启动,
npm install 安装npm
npm run start 启动
报错:'grunt' is not recognized as an internal or external command, operable program or batch file.
解决:
全局安装grunt-cli:npm install -g grunt-cli
使用它的目录级别进行grunt:npm install grunt
npm run start,运行;
5、访问http://localhost:9100/;
三、ElasticSearch安装为Windows服务
1.elasticsearch的bin目录下有一个elasticsearch-service.bat
2.cmd 进入bin目录下执行: elasticsearch-service.bat install
3.查看电脑服务es已经存在了,启动es服务执行:elasticsearch-service.bat start
elasticsearch-service.bat后面还可以执行这些命令
install: 安装Elasticsearch服务
remove: 删除已安装的Elasticsearch服务(如果启动则停止服务)
start: 启动Elasticsearch服务(如果已安装)
stop: 停止服务(如果启动)
manager:启动GUI来管理已安装的服务
本文暂时没有评论,来添加一个吧(●'◡'●)