首先先安裝好ElasticSearch 、kibana、logstashhtml
x-pack插件安裝順序不能變 1.ElasticSearchjava
2.kibanaoracle
3.logstashelasticsearch
官方地址:https://www.elastic.co/guide/en/x-pack/current/installing-xpack.htmlide
提示:不能用root用戶操做,必定要先切換到es用戶操做,不然安裝過程會報錯,就須要從新安裝ui
1.進到elasticsearch目錄下 運行 bin/elasticsearch-plugin install x-pack 進行安裝.net
-> Downloading x-pack from elastic
[=================================================] 100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.io.FilePermission \\.\pipe\* read,write
* java.lang.RuntimePermission accessClassInPackage.com.sun.activation.registries
* java.lang.RuntimePermission getClassLoader
* java.lang.RuntimePermission setContextClassLoader
* java.lang.RuntimePermission setFactory
* java.net.SocketPermission * connect,accept,resolve
* java.security.SecurityPermission createPolicy.JavaPolicy
* java.security.SecurityPermission getPolicy
* java.security.SecurityPermission putProviderProperty.BC
* java.security.SecurityPermission setPolicy
* java.util.PropertyPermission * read,write
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.插件
Continue with installation? [y/N]yhtm
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin forks a native controller @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
This plugin launches a native controller that is not subject to the Java
security manager nor to system call filters.ip
Continue with installation? [y/N]y
以後會提示安裝成功,
// 運行,根據提示設置密碼
bin/x-pack/setup-passwords interactive
此時記得會配置出elk的密碼,記不太清操做需加註意
運行配置kibana bin/kibana-plugin install x-pack
Transferring 269812281 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
在這裏當時等了有一段時間,不要終止
安裝後配置kibana.yml文件
elasticsearch.username: "elastic"
elasticsearch.password: "es"
配置logstash 運行: bin/logstash-plugin install x-pack
安裝後配置logstash.yml文件
xpack.monitoring.elasticsearch.username: "elastic"
xpack.monitoring.elasticsearch.password: "es"
完成