Mac安装Elasticsearch时提示:No Java runtime present, requesting install.
没有安装java的童鞋可以先去安装一下,地址:https://www.java.com/zh_CN/
安装之后还是提示如下错误:
➜ elasticsearch-2.4.3 bin/elasticsearch
No Java runtime present, requesting install.
➜ elasticsearch-2.4.3 java -version
No Java runtime present, requesting install.
执行如下解决方案:
# 首先 cd elasticsearch-2.4.3(此处是指进入你下载并解压后的elasticsearch文件)
➜ Downloads cd elasticsearch-2.4.3
➜ elasticsearch-2.4.3
➜ elasticsearch-2.4.3 vim .bash_profile
# 在文件中添加如下两句:
# export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home"
# export PATH=${JAVA_HOME}/bin:$PATH
➜ elasticsearch-2.4.3 source .bash_profile
➜ elasticsearch-2.4.3 java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
至此,该问题解决。
继续执行2步,即可验证Elasticsearch是否安装成功:
第1步:运行elasticsearch文件,如下:
➜ elasticsearch-2.4.3 bin/elasticsearch
[2017-11-27 14:10:49,539][INFO ][node ] [Googam] version[2.4.3], pid[18853], build[d38a34e/2016-12-07T16:28:56Z]
[2017-11-27 14:10:49,539][INFO ][node ] [Googam] initializing ...
[2017-11-27 14:10:50,102][INFO ][plugins ] [Googam] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
[2017-11-27 14:10:50,132][INFO ][env ] [Googam] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable_space [185.6gb], net total_space [232.5gb], spins? [unknown], types [hfs]
[2017-11-27 14:10:50,132][INFO ][env ] [Googam] heap size [990.7mb], compressed ordinary object pointers [true]
[2017-11-27 14:10:50,133][WARN ][env ] [Googam] max file descriptors [10240] for elasticsearch process likely too low, consider increasing to at least [65536]
[2017-11-27 14:10:51,924][INFO ][node ] [Googam] initialized
[2017-11-27 14:10:51,924][INFO ][node ] [Googam] starting ...
[2017-11-27 14:10:51,989][INFO ][transport ] [Googam] publish_address {127.0.0.1:9300}, bound_addresses {[fe80::1]:9300}, {[::1]:9300}, {127.0.0.1:9300}
[2017-11-27 14:10:51,993][INFO ][discovery ] [Googam] elasticsearch/TxOmRFiySBWHhJAAr8N59g
[2017-11-27 14:10:55,026][INFO ][cluster.service ] [Googam] new_master {Googam}{TxOmRFiySBWHhJAAr8N59g}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2017-11-27 14:10:55,039][INFO ][http ] [Googam] publish_address {127.0.0.1:9200}, bound_addresses {[fe80::1]:9200}, {[::1]:9200}, {127.0.0.1:9200}
[2017-11-27 14:10:55,039][INFO ][node ] [Googam] started
[2017-11-27 14:10:55,060][INFO ][gateway ] [Googam] recovered [0] indices into cluster_state
第2步:打开浏览器访问:http://localhost:9200/,看到如下json结果集,表明安装成功:
{
"name" : "Googam",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "lqQ7DANKR3C3skh1JKJBdA",
"version" : {
"number" : "2.4.3",
"build_hash" : "d38a34e7b75af4e17ead16f156feffa432b22be3",
"build_timestamp" : "2016-12-07T16:28:56Z",
"build_snapshot" : false,
"lucene_version" : "5.5.2"
},
"tagline" : "You Know, for Search"
}
Mac安装Elasticsearch时提示:No Java runtime present, requesting install.的更多相关文章
- ubuntu myeclipse 启动时提示 A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail ....
jdk已经安装过但是启动eclipse时提示“A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be avail ...
- Mac安装软件时提示已损坏的解决方法
问题描述 最近安装从网上下载的软件,安装完之后打开提示xxx已损坏,打不开,软件无法打开. 其实,这是新系统(macOS Sierra 10.12.X)新安全机制的锅,它默认不允许用户自行下载安装应用 ...
- Mac 安装软件时,提示已损坏解决
"xxx.app已损坏,打不开.你应该将它移到废纸篓",并非你安装的软件已损坏,而是Mac系统的安全设置问题,因为这些应用都是破解或者汉化的,那么解决方法就是临时改变Mac系统安全 ...
- Mac安装Vue-cli时 提示bash: vue: command not found问题
1: 首先执行sudo npm install --global vue-cli 2: 复制的路径地址为添加环境变量的地址 3:添加环境变量 export PATH="$PATH:( ...
- Mac安装软件时 提示已损坏的解决方法
进入终端: sudo spctl --master-disable
- ubuntu安装vim时提示 没有可用的软件包 vim,但是它被其它的软件包引用了 解决办法
ubuntu安装vim时提示 没有可用的软件包 vim-gtk3,但是它被其它的软件包引用了 解决办法 本人在ubuntu系统安装vim 输入 sudo apt-get install vim 提示 ...
- Loadrunner:安装LR11时提示缺少vc2005_sp1_with_atl_fix_redist
[问题现象] 安装LR11时提示缺少vc2005_sp1_with_atl_fix_redist: [解决办法] 手动安装缺少的组件,LR安装包中已自带该组件,为何不自动捕捉异常去获取该自带的组件去安 ...
- 记录Linux下安装elasticSearch时遇到的一些错误
记录Linux下安装elasticSearch时遇到的一些错误 http://blog.sina.com.cn/s/blog_c90ce4e001032f7w.html (2016-11-02 22: ...
- 部署testlink报错,安装wampserver时提示丢失MSVCR110.dll
安装wampserver时提示丢失MSVCR110.dll(在windows server上可用)对于32位系统,安装Wampserver 后启动的时候提示系统错误:MSVCR110.dll丢失.于是 ...
随机推荐
- 数据结构与算法--从平衡二叉树(AVL)到红黑树
数据结构与算法--从平衡二叉树(AVL)到红黑树 上节学习了二叉查找树.算法的性能取决于树的形状,而树的形状取决于插入键的顺序.在最好的情况下,n个结点的树是完全平衡的,如下图"最好情况&q ...
- Hadoop(十四)MapReduce原理分析
前言 上一篇我们分析了一个MapReduce在执行中的一些细节问题,这一篇分享的是MapReduce并行处理的基本过程和原理. Mapreduce是一个分布式运算程序的编程框架,是用户开发“基于had ...
- [mysql使用(3)] 使用mysql的时候遇到的一些错误
1.Err1055,出现这个问题往往是在执行sql语句时候,在最后一行会出现这个问题. [Err] 1055 - Expression #1 of ORDER BY clause is not in ...
- [mysql使用(2)] mysql的一些语法与Oracle的差别
一.表空间 mysql的表空间有共享表空间和独占表空间,独占表空间,其实就是一张表一个表空间,其实也就是一张表一个数据文件,共享表空间似乎有点类似oracle的表空间,不同的表可以保存在同一个数据文件 ...
- Mongodb的mongostat命令
Mongodb的mongostat命令可实时(1秒钟刷新一次)显示Mongodb数据库的运行情况,可视为性能监视器. 1.启动命令:authenticationDatabase表示用户认证证书所在的数 ...
- 【ASP.NET MVC 学习笔记】- 18 Bundle(捆绑)
本文参考:http://www.cnblogs.com/willick/p/3438272.html 1.捆绑(Bundle),一个在 View 和 Layout 中用于组织优化浏览器请求的 CSS ...
- LeetCode 617. Merge Two Binary Tree (合并两个二叉树)
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of t ...
- eclipse项目中引入shiro-freemarker-tags会jar包冲突
maven项目中引入了这个依赖. <dependency> <groupId>net.mingsoft</groupId> <artifactId>sh ...
- Setup and Configure the vsftpd server in CentOS 7 operation system
############################################################################## 1. close the firewall ...
- Leetcode题解(三)
8.String to Integer (atoi) 题目 这道题目关键是要考虑清楚各种输入用例.针对每一种情况,函数都能处理,也就是函数鲁棒性很高.代码如下: class Solution { pu ...