diff --git a/site/src/site/sphinx/arthas-properties.md b/site/src/site/sphinx/arthas-properties.md index 17fbbd642..f6f49c7c1 100644 --- a/site/src/site/sphinx/arthas-properties.md +++ b/site/src/site/sphinx/arthas-properties.md @@ -32,6 +32,21 @@ arthas.sessionTimeout=1800 > 如果是防止一个机器上启动多个 arthas端口冲突。可以配置为随机端口,或者配置为 -1,并且通过tunnel server来使用arthas。 + +### 禁止指定命令 + +> since 3.5.2 + +比如配置: + +``` +arthas.disabledCommands=stop,dump +``` + +也可以在命令行配置: `--disabled-commands stop,dump` 。 + +> 默认情况下,arthas-spring-boot-starter会禁掉`stop`命令。 + ## 配置的优先级 配置的优先级是:命令行参数 > System Env > System Properties > arthas.properties 。 diff --git a/site/src/site/sphinx/en/arthas-properties.md b/site/src/site/sphinx/en/arthas-properties.md index c56deb4ff..9f3a5a7f7 100644 --- a/site/src/site/sphinx/en/arthas-properties.md +++ b/site/src/site/sphinx/en/arthas-properties.md @@ -30,6 +30,22 @@ arthas.sessionTimeout=1800 > If you want to prevent multiple arthas port conflicts on a machine. It can be configured as a random port, or configured as -1, and use arthas through the tunnel server. + +### disable specify commands + +> since 3.5.2 + +Such as configuration: + +``` +arthas.disabledCommands=stop,dump +``` + +It can also be configured on the command line: `--disabled-commands stop,dump`. + +> By default, arthas-spring-boot-starter will disable the `stop` command. + + ## Configured order The order of configuration is: command line parameters > System Env > System Properties > arthas.properties. diff --git a/site/src/site/sphinx/en/spring-boot-starter.md b/site/src/site/sphinx/en/spring-boot-starter.md index d9f7207f3..d4b711f02 100644 --- a/site/src/site/sphinx/en/spring-boot-starter.md +++ b/site/src/site/sphinx/en/spring-boot-starter.md @@ -29,6 +29,8 @@ arthas.tunnel-server=ws://47.75.156.201:7777/ws All supported configuration: [Reference](https://github.com/alibaba/arthas/blob/master/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java) +> By default, arthas-spring-boot-starter will disable the `stop` command. + Reference: [Arthas Properties](arthas-properties.md) ### View Endpoint Information diff --git a/site/src/site/sphinx/spring-boot-starter.md b/site/src/site/sphinx/spring-boot-starter.md index 5e0213fa7..a3c623e8b 100644 --- a/site/src/site/sphinx/spring-boot-starter.md +++ b/site/src/site/sphinx/spring-boot-starter.md @@ -31,6 +31,8 @@ arthas.tunnel-server=ws://47.75.156.201:7777/ws 全部支持的配置项:[参考](https://github.com/alibaba/arthas/blob/master/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java) +> 默认情况下,arthas-spring-boot-starter会禁掉`stop`命令。 + 参考:[Arthas Properties](arthas-properties.md) ### 查看Endpoint信息