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] 主站蜘蛛池模板: 辉南县| 唐河县| 灵台县| 长宁县| 东光县| 罗田县| 甘孜县| 印江| 福鼎市| 嵩明县| 克山县| 浠水县| 绥滨县| 永和县| 甘德县| 东乡县| 临湘市| 普陀区| 新邵县| 贵定县| 木兰县| 永胜县| 托克逊县| 富阳市| 长岛县| 南投县| 高碑店市| 高青县| 淮滨县| 襄樊市| 公安县| 汾西县| 陈巴尔虎旗| 哈巴河县| 蕉岭县| 诸暨市| 广德县| 阿瓦提县| 花莲市| 大理市| 德庆县|