cd /usr/local/elk wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.0-linux-x86_64.tar.gz tar xvf elasticsearch-7.6.0-linux-x86_64.tar.gz
修改配置文件
1 2 3 4 5 6 7 8 9 10
vim /usr/local/elk/elasticsearch-7.6.0/bin/elasticsearch-env # 把java查找改为elasiticSearch自带的jdk #now set the path to java if [ "$(uname -s)" = "Darwin" ]; then # macOS has a different structure JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java" else JAVA="$ES_HOME/jdk/bin/java" fi JAVA_TYPE="bundled jdk"
1 2 3 4 5
cd /usr/local/elk/elasticsearch-7.6.0/config vim jvm.options # 修改内存 -Xms512m -Xmx512m
启动:
1 2
cd /usr/local/elk/elasticsearch-7.6.0/bin ./elasticsearch -d
测试安装完成:
1
curl 127.0.0.1:9200
3.安装kibana 7.6
1 2 3
cd /usr/local/elk wget https://artifacts.elastic.co/downloads/kibana/kibana-7.6.0-linux-x86_64.tar.gz tar xvf kibana-7.6.0-linux-x86_64.tar.gz
修改配置,能外网访问,配合为中文
1 2 3 4 5 6
cd /usr/local/elk/kibana-7.6.0-linux-x86_64/config vim kibana.yml 修改1. 改为外网可访问形式(不建议,最好限制ip) server.host: "0.0.0.0" 修改2. 最后一行增加 i18n.locale: "zh-CN"