Elasticsearch - 环境准备
2024-09-04 17:13:41
Precondition:
Ubuntu OS
环境准备:
1. JAVA_HOME
1.1 Download the jdk8 (jdk-8u25-linux-x64.tar.gz) from official website
1.1.1 check your pc's version: uname -m
if x86_64 printed, your pc is 64-bits
1.1.2 download the jdk8 (jdk-8u25-linux-x64.tar.gz) from official website and extract
1.2 Set JAVA_HOME
See also Java 环境变量
2. Elasticsearch
2.1 Download from official website and extract
2.2 Go to the directory
cd ~/Documents/App/elasticsearch-1.4.2/
2.3 Run elasticsearch
bin/elasticsearch -f (-f means running in front)
2.4 How to know if it is running
Access the url below in browser
http://localhost:9200
2.5 Stop elasticsearch
Ctrl + c
Note: if the service is not running in front, we can stop it from browser
http://localhost:9200/_cluster/nodes/_shutdown
Or we can stop it using curl
curl -XPOST http://localhost:9200/_cluster/nodes/_shutdown
最新文章
- 读<;<;领域驱动设计-软件核心复杂性应对之道>;>;有感
- Codis——分布式Redis服务的解决方案
- 三、BLE(上)
- 一道javascript面试题
- java web 学习 --第十天(Java三级考试)
- Java 对象序列化(Serialization Object)
- [iOS经典面试题]用变量a给出下面的定义
- Messages消息处理
- Web开发基础
- 单例模式——Singleton
- CF(437C)The Child and Toy(馋)
- silverlight游戏在坑内发展
- Java并发之底层实现原理学习笔记
- J.U.C JMM. pipeline.指令重排序,happen-before(续MESI协议)
- 我的Scala之路(1):列表List操作
- 微服务浪潮中,程序猿如何让自己 Be Cloud Native
- [dev][ipsec] netlink是什么
- [转]RPA简介
- C#高性能二进制序列化
- Icon cache rebuilding with Delphi(Delphi 清除Windows 图标缓存源代码)
热门文章
- Vue在HTML页面中的脚手架
- 15 Python 迭代器和生成器
- New Concept English three (50)
- myEclipse下Maven配置操作
- BZOJ2784: [JLOI2012]时间流逝
- OpenJudge9278:旅行
- 【转】深入剖析Java中的装箱和拆箱
- mysql之 共享表空间与独立表空间、frm,MYD,MYI.idb,par文件说明
- phoneGap入门教程
- [转]css讲解 font-weight:bold和bolder区别