You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/tutorials/katacoda/arthas-advanced-cn/arthas-boot-details.md

31 lines
698 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

`arthas-boot.jar` 支持很多参数,可以执行 `java -jar arthas-boot.jar -h`{{execute T2}} 来查看。
## 允许外部访问
默认情况下, arthas server侦听的是 `127.0.0.1` 这个IP如果希望远程可以访问可以使用`--target-ip`的参数。
`java -jar arthas-boot.jar --target-ip`{{execute T2}}
## 列出所有的版本
`java -jar arthas-boot.jar --versions`{{execute T2}}
使用指定版本:
`java -jar arthas-boot.jar --use-version 3.1.0`{{execute T2}}
## 只侦听Telnet端口不侦听HTTP端口
`java -jar arthas-boot.jar --telnet-port 9999 --http-port -1`{{execute T2}}
## 打印运行的详情
`java -jar arthas-boot.jar -v`{{execute T2}}