ElasticSearch(三)mac安装

1.首先要安装jdk

2.到官网或是用brew下载ElasticSearch 安装包,这边我们选择在官网下载对应的安装包 https://www.elastic.co/cn/downloads/elasticsearch

3.解压缩到对应的目录下,我们解压缩到了 /usr/local/elasticsearch-6.5.2

解压缩后的相关目录如下:

4.快速启动

1).进入到bin目录下,执行elasticsearch脚本,sh elasticsearch 或 ./elasticsearch

2).我们可以看到started关键字,表示已经启动成功,绑定端口为9200

[2018-12-12T09:36:45,853][INFO ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [PX7a_3A] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}

[2018-12-12T09:36:45,854][INFO ][o.e.n.Node ] [PX7a_3A] started

3).查看es jvm进程

? ~ jps -l |grep Elasticsearch
1052 org.elasticsearch.bootstrap.Elasticsearch

4).或是我们可以用curl http://localhost:9200/?pretty检查是否启动成功

? ~ curl http://localhost:9200/\?pretty
{
"name" : "PX7a_3A",
"cluster_name" : "elasticsearch",  //集群名称(默认的集群名称就是elasticsearch)
"cluster_uuid" : "mnnG3X4aSpakShysGdqy0w",
"version" : {
"number" : "6.5.2",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "9434bed",
"build_date" : "2018-11-29T23:58:20.891072Z",
"build_snapshot" : false,
"lucene_version" : "7.5.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}

5).我们发现control+c停止了Elasticsearch,有closed关键字,所以要进行后台启动

[2018-12-12T09:48:36,732][INFO ][o.e.n.Node ] [PX7a_3A] stopped
[2018-12-12T09:48:36,732][INFO ][o.e.n.Node ] [PX7a_3A] closing ...
[2018-12-12T09:48:36,747][INFO ][o.e.n.Node ] [PX7a_3A] closed

6).后台启动Elasticsearch

执行命令 sh elasticsearch -d

原文地址:https://www.cnblogs.com/ql211lin/p/10106723.html

时间: 2025-01-11 05:45:56

ElasticSearch(三)mac安装的相关文章

Mac安装composer安装Yii2项目

[注释:]本人原创,如需转载请注明来源链接! 通过安装Composer方式安装Yii 如果还没有安装 Composer,你可以按 getcomposer.org 中的方法安装. 在 Linux 和 Mac OS X 中,你可以运行如下命令: curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer 步骤: 一.打开终端 二.安装composer: 1.终端输入:curl -s

mac安装mysql及终端操作mysql与pycharm的数据库可视化

一.Mac安装mysql 首先下载mysql,地址:https://dev.mysql.com/downloads/mysql/ 然后已知安装就好了,会出现让你记住密码的提示,然后就安装好了.... 更改密码,可以参考:http://blog.csdn.net/soft2buy/article/details/50223373 二.终端操作mysql 首先在系统偏好里面找到mysql,如下图左一,然后点开,运行mysql,使其呈现running,如下图右一.     然后打开终端,输入mysql

elasticsearch linux下安装及head插件

/** * 系统环境: vm12 下的centos 7.2 * 当前安装版本: elasticsearch-2.4.0.tar.gz */ 安装和学习可参照官方文档: 1, 安装 # 下载, 获取不成功可直接从官网下载 curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.0/elasticsearch-2.4.0.tar.

Mac安装mysqldb

一. 安装mysql (一)下载地址 https://pan.baidu.com/s/1slw50LZ 安装成功后,在系统偏好设置里有MySQL图标,可以启动或关闭MySQL 二. Mysql root用户密码重置 如果安装时生成的默认密码不可用,可以重置密码,步骤如下: 1.停止mysql服务 系统偏好设置 > MySQL > 停止. 2.启动mysqld_safe ,跳过启动授权表.启动时加上skip-grant-tables参数目的是在启动mysql时不启动grant-tables,授权

mac安装phpstorm

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; line-height: 24.0px; font: 14.0px Times; color: #003884 } p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; line-height: 24.0px; font: 14.0px Times; color: #000000 } p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; line-height: 2

Elasticsearch介绍及安装部署

本节内容: Elasticsearch介绍 Elasticsearch集群安装部署 Elasticsearch优化 安装插件:中文分词器ik 一.Elasticsearch介绍 Elasticsearch是一个分布式搜索服务,提供Restful API,底层基于Lucene,采用多shard的方式保证数据安全,并且提供自动resharding的功能,加之github等大型的站点也采用 Elasticsearch作为其搜索服务. 二.Elasticsearch集群安装部署 1. 环境信息 主机名

Flask第三篇——安装Flask

现在我们来安装Flask: Windows系统安装Flask 如果你的系统是Windows,那安装起来非常方便--pip install flask Mac系统安装Flask Mac安装Flask一般为了不影响Python本身的功能会先下载一个虚拟环境,命令如下: 第一步:macbookdeMBP-2:~ macbook$ sudo easy_install virtualenv 第二步:macbookdeMBP-2:~ macbook$ virtualenv venv 会看到: New pyt

【Mac安装uiautomator2】之安装步骤

Mac系统下安装uiaotumator2: 参考网址:<uiautomator2>以及参考github官方文档 1.安装uiaotumator2命令: pip install --upgrade --pre uiautomator2 提示报错: Could not install packages due to an EnvironmentError: [Errno 1] Operation not permitted: '/usr/local/bin/chardetect' pip inst

Elasticsearch 插件head安装

本次安装在win7下,linux操作差不多. Elasticsearch的版本是6.5.1 一.前置条件 1.安装nodejs,如果已经安装了,检查一下版本,最好大于6以上,不然后面会失败,官网上已经到10了 https://nodejs.org/en/download/ 2.安装grunt Grunt 是基于 Node.js 的项目构建工具 npm install -g grunt-cli 验证一下: 二.下载head包 https://github.com/mobz/elasticsearc

Mac 安装Mysql 详细步骤方法

Mac 安装Mysql 详细步骤方法 第一步: 登陆官网:https://www.mysql.com 进入, 点击下方的DOWNLOADS -> Community->MySQL Community Server下载dgm文件,选择不登陆直接下载,下载后常规安装,设置自己的mysql密码 记住密码 第二步: 安装好mysql后直接终端是不可以运行的,可以在偏好设置里面启动以及停止mysql服务 第三步: 配置路径打开终端 输入:vim ~/.bash_profile 在图中添加 mysql路径