> For the complete documentation index, see [llms.txt](https://book.gxd88.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.gxd88.cn/kubernetesri-zhi-xi-tong-pian/64-elasticsearchan-zhuang-bu-shu/enable-xpack/x-pack-on-kibana.md).

# 6.4.6.3 X-Pack on Kibana

![](https://1785474312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lvt5boAx3hwVzQ2DCNd%2F-M2WOs6_DdVcq9_1S4az%2F-M2WOsbcK14mD__38Qam%2FKibanaFlow.jpg?generation=1584329628425168\&alt=media)

Run `bin/kibana-plugin` in your Kibana installation directory.

```
bin/kibana-plugin install x-pack
```

The plugin install scripts require direct internet access to download and install X-Pack. If your server doesn’t have internet access, specify the location of the X-Pack zip file that you downloaded to a temporary directory.

```bash
bin/kibana-plugin install file:///path/to/file/x-pack-6.2.4.zip
```

## [Configuring Security in Kibana](https://www.elastic.co/guide/en/kibana/6.2/using-kibana-with-security.html)

* **`xpack.security.enabled`**

  Set to `true` (default) to enable X-Pack security.

  If set to `false` in `kibana.yml`, the user and role management options are hidden in this Kibana instance. If `xpack.security.enabled` is set to `true` in `elasticsearch.yml`, however, you can still use the X-Pack security APIs. To disable X-Pack security entirely, see the [Elasticsearch Security Settings](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/security-settings.html).
* **`elasticsearch.username:` and `elasticsearch.password:`**

  If your Elasticsearch is protected with basic authentication, these settings provide the username and password that the Kibana server uses to perform maintenance on the Kibana index at startup. Your Kibana users still need to authenticate with Elasticsearch, which is proxied through the Kibana server.

```
xpack.security.enabled: true
elasticsearch.username: "kibana"
elasticsearch.password: "S2Q0eACh2IvMLLqrutzK"
```
