考虑需要安装elasticsearch-head作为web展示,先安装nodejs
nodejs下载
提取码:xna7
PS:博主喜欢将文件放在/opt/下
1.cd /opt/
2.wget https://npm.taobao.org/mirrors/node/v11.0.0/node-v11.0.0.tar.gz
(如果没有wget工具先yum install -y wget)
注意:此处若下载有误建议自行寻找,然后通过xftp放入文件夹中
3.tar -zxvf node-v11.0.0.tar.gz
4.cd node-v11.0.0
5.yum install gcc gcc-c++
6…/configure
7.make && make install
8.unzip elasticsearch-head-master.zip
9.mv elasticsearch-head-master soft/elastichead
10.cd soft/elastichead
11.npm config set registry https://registry.npm.taobao.org(此处通过淘宝镜像源下载)
注:这里如果出现ERROR,请反复执行11步和12步
12.npm install
看到这里显示安装成功
13.npm run start
14然后启动elasticsearch数据库
15.cd /opt/elasticsearch622/bin/
16.su [用户名]
17…/elasticsearch
18.通过浏览器192.168.56.99:9100连接(这里IP填自己的)
在下面窗口填自己虚拟机的IP以连接
连接成功