mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 21:05:09 +08:00
调试 elastic
Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
a31c2165d7
commit
d22f540d57
@ -29,10 +29,24 @@ additionalProperties:
|
||||
labelEn: Kibana password (kibana_system)
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
- default: "-Xms1g -Xmx1g"
|
||||
edit: true
|
||||
envKey: ES_JAVA_OPTS
|
||||
labelZh: Elasticsearch Java 配置 (可选)
|
||||
labelEn: Elasticsearch Java configuration (optional)
|
||||
required: false
|
||||
type: text
|
||||
- default: "elasticsearch"
|
||||
edit: true
|
||||
envKey: ES_SETTING_CLUSTER_NAME
|
||||
labelZh: 集群名称
|
||||
labelEn: Cluster name
|
||||
required: true
|
||||
type: text
|
||||
- default: "es-node"
|
||||
edit: true
|
||||
envKey: ES_SETTING_NODE_NAME
|
||||
labelZh: 节点名称
|
||||
labelEn: Node name
|
||||
required: true
|
||||
type: text
|
||||
|
@ -27,10 +27,10 @@ services:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||
- ${ELASTICSEARCH_ROOT_PATH}/data:/usr/share/elasticsearch/data
|
||||
- ${ELASTICSEARCH_ROOT_PATH}/backup:/usr/share/elasticsearch/backup
|
||||
- ${ELASTICSEARCH_ROOT_PATH}/plugins:/usr/share/elasticsearch/plugins
|
||||
environment:
|
||||
- LICENSE=basic
|
||||
- ES_SETTING_BOOTSTRAP_MEMORY__LOCK=true
|
||||
- ES_SETTING_PATH_REPO=/usr/share/elasticsearch/backup
|
||||
|
@ -79,3 +79,29 @@ sysctl -p
|
||||
+ `注册令牌 (节点)` 配置
|
||||
|
||||
用于加入集群的注册令牌。在集群中的节点中生成,用于加入集群验证。每个注册令牌有效时长30分钟。
|
||||
|
||||
## 快捷操作
|
||||
|
||||
> 重置密码
|
||||
|
||||
```sh
|
||||
cd /usr/share/elasticsearch/bin
|
||||
./elasticsearch-reset-password -u elastic
|
||||
```
|
||||
|
||||
> 创建 `kibana` 注册令牌
|
||||
|
||||
```sh
|
||||
cd /usr/share/elasticsearch/bin
|
||||
./elasticsearch-create-enrollment-token -s kibana
|
||||
```
|
||||
|
||||
> 导出证书
|
||||
|
||||
<容器名称> 为容器名称或容器 ID,可以通过 `docker ps` 命令查看。
|
||||
|
||||
导出 `http_ca.crt` 证书到当前目录
|
||||
|
||||
```sh
|
||||
docker cp <容器名称>:/usr/share/elasticsearch/config/certs/http_ca.crt .
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user