ES集群
1.部署jdk
/etc/profile.d/java.sh
export JAVA_HOME=/usr/local/java/jdk1.8.0_121
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
2.下载安装
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.rpm
rpm -ivh elasticsearch-5.2.2.rpm
chkconfig --add elasticsearch
3.集群配置
cat /etc/elasticsearch/elasticsearch.yml |egrep -v '^#|$^'
cluster.name: ccq_logsearch
node.name: es02
path.data: "/data/elasticsearch"
path.logs: "/data/logs/elasticsearch"
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 192.168.2.74
http.port: 9200
discovery.zen.ping.unicast.hosts: ["es01", "es02"]
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 2
action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
cat /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
cat /etc/security/limits.d/90-nproc.conf
* soft nproc 2048
root soft nproc unlimited
es-head插件
1.部署node
wget https://nodejs.org/dist/v6.10.0/node-v6.10.0-linux-x64.tar.xz
cat /etc/profile.d/node.sh
export NODE_HOME=/usr/local/node
export PATH=$PATH:$NODE_HOME/bin
2.下载安装
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head/
npm install
cd node_modules/grunt/bin
./grunt server
1.部署jdk
/etc/profile.d/java.sh
export JAVA_HOME=/usr/local/java/jdk1.8.0_121
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
2.下载安装
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.rpm
rpm -ivh elasticsearch-5.2.2.rpm
chkconfig --add elasticsearch
3.集群配置
cat /etc/elasticsearch/elasticsearch.yml |egrep -v '^#|$^'
cluster.name: ccq_logsearch
node.name: es02
path.data: "/data/elasticsearch"
path.logs: "/data/logs/elasticsearch"
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 192.168.2.74
http.port: 9200
discovery.zen.ping.unicast.hosts: ["es01", "es02"]
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 2
action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
cat /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
cat /etc/security/limits.d/90-nproc.conf
* soft nproc 2048
root soft nproc unlimited
es-head插件
1.部署node
wget https://nodejs.org/dist/v6.10.0/node-v6.10.0-linux-x64.tar.xz
cat /etc/profile.d/node.sh
export NODE_HOME=/usr/local/node
export PATH=$PATH:$NODE_HOME/bin
2.下载安装
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head/
npm install
cd node_modules/grunt/bin
./grunt server