mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
support disabledCommands part 3. #1729
This commit is contained in:
@@ -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 。
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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信息
|
||||
|
||||
Reference in New Issue
Block a user