Ubuntu 安装 Elasticsearch
1.安装java
注意:最新版本的elasticsearch(5.6.2)要求安装java8
1、sudo apt-add-repository ppa:webupd8team/java
2、sudo apt-get update
3、sudo apt-get install oracle-java8-installer
注意:如果之前有安装老版本的java或者opensdk的,在安装之后,最好重新设置以下环境变量:export JAVA_HOME=/usr/lib/jvm/java-8-oracle 和 export CLASSPATH=/usr/share/java,最后source
/etc/profile使变量生效。
2. 下载elasticsearch
zip安装:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.2.zip
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.2.zip.sha512
shasum -a 512 -c elasticsearch-5.6.2.zip.sha512
unzip elasticsearch-5.6.2.zip
cd elasticsearch-5.6.2/
rpm安装:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.rpm
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.rpm.sha512
shasum -a 512 -c elasticsearch-6.5.4.rpm.sha512
sudo rpm --install elasticsearch-6.5.4.rpm
注意:需要为elasticsearch分配一个新的用户(因为不允许以root账号启动)
groupadd elsearch
useradd elsearch -g elsearch -p elasticsearch
创建新用户后,将解压后的elasticsearch的拥有者更换为elsearch:chown -R elsearch:elsearch elasticsearch
3. 运行elasticsearch
切换到elsearch用户,切换到elasticsearch目录,使用命令启动:./bin/elasticsearch
另开一个终端,使用curl访问如下地址即可验证是否成功安装:curl 'http://localhost:9200?pretty'
技巧1:变更配置内存
新版的elasticsearch配置内存要使用如下指令:ES_JAVA_OPTS="-Xms30g –Xmx30g" ./bin/elasticsearch
Ubuntu 安装 Elasticsearch的更多相关文章
- ubuntu安装elasticsearch及head插件
1.安装elasticsearch,参考http://www.cnblogs.com/hanyinglong/p/5409003.html就可以了 简单描述下: mkdir -p /usr/local ...
- ubuntu 安装elasticsearch
elasticsearch简介 环境准备 elasticsearch:7.0.0 kibana :7.0.0 安装 1.新创建普通用户 elasticsearch不能用root账号 ...
- ubuntu安装elasticsearch
0x00安装jdk ElasticSearch需要安装jdk1.8以上版本的支持,所以需要先安装jdk.linux下如何安装可以查看另一篇博客 0x01 下载elasticsearch 在es官网下载 ...
- ubuntu安装elasticSearch及插件
原文地址:http://www.niu12.com/article/18 前提 1.安装好Java1.8以上环境并配置好JAVA_HOME(elasticsearch运行环境) 2.node环境6.5 ...
- ubuntu 安装 JVM 与 ElasticSearch
测试环境: Ubuntu x86_64 3.13.0-35-generic 安装jre: $ sudo apt-get install software-properties-common $ sud ...
- 如何在 Ubuntu 14.04 上安装 Elasticsearch,Logstash 和 Kibana
介绍 在本教程中,我们将去的 Elasticsearch 麋鹿堆栈安装 Ubuntu 14.04 — — 那就是,Elasticsearch 5.2.x,Logstash 2.2.x 和 Kibana ...
- Ubuntu 16.04安装Elasticsearch,Logstash和Kibana(ELK)Filebeat
https://www.howtoing.com/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-16-04 ...
- ubuntu安装配置elasticSearch(vagrant)
安装jdk sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java s ...
- ubuntu 安装Elasticsearch5.0(Debian包)
通过Debian包安装Elasticsearch Elasticsearch的Debian包可以从downloaded from our website或APT repository 它可以用于在任何 ...
随机推荐
- php 5.2.17 升级到5.3.29
修改php.ini配置文件 register_globals =On include_path = ".;d:/testoa/webroot" error_reporting = ...
- bzoj1042硬币购物
题目:http://www.lydsy.com/JudgeOnline/problem.php?id=1042 dp预处理+容斥原理. 先预处理求出无限制的各面值的组成方案数 f (完全背包). 求s ...
- Java Web Service 学习笔记
一.服务端 1. 创建Java工程 2. 创建接口HostipalServiceInterface package ws_server; import javax.jws.WebMethod; imp ...
- 禁止HTML页面缓存
head标签里增加: <meta http-equiv="X-UA-Compatible" content="IE=8"> <meta htt ...
- win xp firefox,chrome 在浏览网页时字体发虚,可以设置为新宋体
firefox,chrome 在浏览网页时字体发虚,比如:驱动之家.可以设置为新宋体.
- WPF Demo4
<Window x:Class="Demo4.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/ ...
- 【刷题】Search in a Big Sorted Array
原题戳我. 题目 Description Given a big sorted array with positive integers sorted by ascending order. The ...
- Unity3D SerialPort处理
using UnityEngine; using System.Collections; using System; using System.Threading; using System.Coll ...
- python3+selenium3.13的简单操作
1.浏览器 1.1 浏览器窗口大小位置 driver.set_window_size(self, width, height, windowHandle) 将某个窗口设置为固定大小 driver.se ...
- 深度优先搜索DFS(二)
总结下图里面的常用模板: DFS(u){ vis[u]=true; for(从u出发能到达的所有顶点v){ if(vis[v]==false){ DFS(v); } } } DFSTrave(G){ ...