centos7虛擬機安裝elasticsearch5.0.x-安裝篇
請預先安裝jdk詳細步驟請參考:http://www.jb51.net/softjc/193398.html
創建新用戶(非root用戶)
elasticsearch只能用非root啟動,這里我創建了一個叫seven的用戶
[root@localhost ~]# useradd seven[root@localhost ~]# passwd seven
下載elasticsearch
[root@localhost ~]# su seven[seven@localhost root]$ cd /home/seven[seven@localhost ~]$ mkdir download[seven@localhost ~]$ cd download[seven@localhost download]$ wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/5.0.0-alpha3/elasticsearch-5.0.0-alpha3.tar.gz
解壓并運行elasticsearch
解壓
[seven@localhost download]$ tar -zxvf elasticsearch-5.0.0-alpha3.tar.gz
移動到指定文件夾并重命名(方便管理)
[seven@localhost download]$ mv elasticsearch-5.0.0-alpha3 /usr/java/elasticsearch
修改訪問elasticsearch的IP及端口
[seven@localhost config]$ vim /usr/java/elasticsearch/config/elasticsearch.yml
找到如下代碼段,并取消network.host及http.port所在行的注釋,修改IP及端口
# ---------------------------------- Network -----------------------------------## Set the bind address to a specific IP (IPv4 or IPv6):#network.host: 192.168.0.155## Set a custom port for HTTP:#http.port: 9200## For more information, see the documentation at:# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
直接運行bin/elasticsearch文件啟動elasticsearch
[seven@localhost bin]$ cd /usr/java/elasticsearch/bin/[seven@localhost bin]$ ./elasticsearch
啟動時發現報錯了。。。
[seven@localhost bin]$ ./elasticsearch[2016-06-28 13:49:27,899][INFO ][node ] [Mondo] version[5.0.0-alpha3], pid[3671], build[cad959b/2016-05-26T08:25:57.564Z], OS[Linux/3.10.0-327.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1 .0_91/25.91-b14] 主站蜘蛛池模板: 孙吴县| 香港| 资源县| 和顺县| 逊克县| 土默特右旗| 榆中县| 肥乡县| 新乡市| 宝应县| 芦溪县| 加查县| 庆云县| 景泰县| 高平市| 河池市| 和静县| 普洱| 历史| 家居| 东乌珠穆沁旗| 宿州市| 准格尔旗| 基隆市| 绥德县| 桑日县| 衡山县| 宿松县| 仁布县| 留坝县| 绥宁县| 镇原县| 青龙| 客服| 阳东县| 桓台县| 招远市| 青河县| 鹿邑县| 宝鸡市| 永泰县|