1. 基础配置与安装
1.1 基础环境
node110.202.20.191
node210.202.20.192
node310.202.20.193
node410.202.20.194
node510.202.20.195
node610.202.20.196
node710.202.20.197
node810.202.20.198
以上服务器基于现在的云平台(32核,96G内存),OS:centos6.6
1.1.1 安装JAVA
yum -y installjdk-8u51-linux-x64.rpm
rm /usr/bin/java
ln -s /usr/java/jdk1.8.0_51/bin/java/usr/bin/java
1.1.2 OS环境配置
在/etc/sysctl.conf中添加以下三行:
vm.zone_reclaim_mode=0
vm.max_map_count = 262144
vm.swappiness = 1
执行sysctl –p让配置生效
在/etc/security/limits.conf 中添加以下四行:
* soft nofile 65536
* hard nofile 65536
* soft nproc 65536
* hard nproc 65536
在/etc/hosts加入以下信息:
10.202.20.191 ras1.novalocal
10.202.20.192 ras2.novalocal
10.202.20.193 ras3.novalocal
10.202.20.194 ras4.novalocal
10.202.20.195 ras5.novalocal
10.202.20.196 ras6.novalocal
10.202.20.197 ras7.novalocal
10.202.20.198 ras8.novalocal
1.1.3 添加用户
useradd elastic<