Skip to content

Commit c4c9f17

Browse files
author
Cary Huang
committed
updates
1 parent df9347b commit c4c9f17

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

docs/en/monitoring/jmx_monitor.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ synchdb_del_jmx_conninfo(
5151
| **`jmx_ssl_truststore`** | *(text)*<br>Path to the truststore (JKS) that holds trusted CA certificates. Used to verify client identities if mutual TLS is configured. |
5252
| **`jmx_ssl_truststore_pass`** | *(text)*<br>Password for the truststore file. |
5353

54-
### **Password and Access Files for JMX Authentication**
54+
## **Password and Access Files for JMX Authentication**
5555

5656
When enabling JMX authentication in your JVM configuration (i.e., setting jmx_auth = true), you must provide two files:
5757

58-
**Password File**:
58+
### **Password File**:
5959

6060
This file stores valid JMX usernames and their corresponding passwords.
6161

@@ -76,7 +76,7 @@ controlRole anotherSecretPassword
7676

7777
monitorRole and controlRole are example usernames. Replace mySecretPassword and anotherSecretPassword with strong passwords of your choice. You can define multiple users.
7878

79-
**Access File**:
79+
### **Access File**:
8080

8181
This file defines what each user is allowed to do via JMX. Possible access levels:
8282

@@ -96,7 +96,9 @@ monitorRole readonly
9696
controlRole readwrite
9797
9898
```
99-
**File Permissions**:
99+
100+
### **File Permissions**:
101+
100102
Make sure both files are owned by the user running the JVM, and have restricted permissions:
101103

102104
```

docs/zh/monitoring/jmx_monitor.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ synchdb_del_jmx_conninfo(
4848
| **`jmx_ssl_truststore`** | *(text)*<br>保存受信任 CA 证书的信任库 (JKS) 的路径。如果配置了双向 TLS,则用于验证客户端身份。|
4949
| **`jmx_ssl_truststore_pass`** | *(文本)*<br>信任库文件的密码。
5050

51-
### **JMX 身份验证的密码和访问文件**
51+
## **JMX 身份验证的密码和访问文件**
5252

5353
在 JVM 配置中启用 JMX 身份验证(即设置 jmx_auth = true)时,您必须提供两个文件:
5454

55-
**密码文件**
55+
### **密码文件**
5656

5757
此文件存储有效的 JMX 用户名及其对应的密码。
5858

@@ -72,7 +72,28 @@ controlRole anotherSecretPassword
7272
7373
```
7474

75-
**文件权限**
75+
### **访问文件**
76+
77+
此文件定义了每个用户可以通过 JMX 执行的操作。可能的访问级别:
78+
79+
* readonly – 可以查看 MBean,但不能修改。
80+
* readwrite – 可以查看和修改 MBean。
81+
82+
格式:
83+
```
84+
# 格式:用户名 访问级别
85+
<用户名> <访问权限>
86+
87+
```
88+
89+
示例:
90+
```
91+
monitorRole readonly
92+
controlRole readwrite
93+
94+
```
95+
96+
### **文件权限**
7697

7798
确保两个文件均归运行 JVM 的用户所有,且具有受限的权限:
7899

0 commit comments

Comments
 (0)