# yum install java-1.8.0-openjdk
JAVA_HOME=/usr/lib/jvm/jre-1.8.0 CLASSPATH=.:$JAVA_HOME/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME CLASSPATH PATH
source /etc/profile
# vi /etc/elasticsearch/elasticsearch.yml
修改配置項server.host
,使外部能夠訪問:server:9200:java
server.host: 0.0.0.0
# vi /etc/kibana/kibana.yml
使外部能夠訪問:server:5601git
server.host: "0.0.0.0"
下載elasticsearch-analysis-ik-6.2.3.zip 下載地址github
解壓到目錄 /usr/share/elasticsearch/plugins
下,更名爲analysis-ik
.jvm
3.重啓elasticsearch服務.elasticsearch
yum install logstach-6.2.3.rpm
# cd /usr/share/logstach/bin # ./logstash-plugin list --verbose
# cd /usr/share/logstash/bin # ./logstash-plugin install logstash-input-jdbc
./logstash-plugin prepare-offline-pack --overwrite --output logstash-input-jdbc-4.3.5.zip logstash-input-jdbc
./logstash-plugin install file:///root/logstash-input-jdbc-4.3.5.zip
注意這裏和github上下載的zip文件不是同一個包哦。插件