ElasticSearch集群安装配置
ElasticSearch-headmaster的安装配置
这里的headmaster是zip,要用unzip解压
-
如果linux是最小化安装的话要下载unzip命令,否则跳过此步
-
解压headmaster文件
-
为了方便管理,把这个文件移动到/opt/bigdata/elk文件夹下
-
进入移动的文件夹,可以看到文件名很长,为了方便使用重新命名
nodejs的安装与配置
- 先下载nodejs的安装包,然后执行解压命令
tar -xvf node-v8.11.1-linux-64.tar -C /opt/bigdata/elk如下图所示 - 到解压的路径,把原来的复杂名字改一下,方便以后操作
- 接下来配置nodejs的环境变量
vi /etc/profile进行操作
具体如下图所示,然后保存退出 - source /etc/profile 重新刷新环境变量,如果输入
node -v能出来下图说明成功 - 接下来要从淘宝的npm网站下载镜像源
npm config set registry https://registry.npm.taobao.org
验证镜像设置是否成功:npm config get registry
在eshm根目录下npm install
安装过程
- eshm目录下grunt工具包安装
安装grunt客户端工具:npm install --ignore scripts
检查当前目录下npm的安装情况:npm list --depth=0
- 启动grunt
在eshm根目录下:正常启动:npm run start
5、我们开启三个虚拟机,把每个虚拟机的elasticsearch开启,之后
访问http://192.168.60.100:9100,
这样整个elasticsearch集群环境搭建就完成了