![](https://img-blog.csdnimg.cn/img_convert/68b5007fd27e4d91ee97c0e8be08381b.png)
其实具体操作步骤建议按照官网(中文且详细且最新)(。・ω・。)ノ
但但但是~这里需要提到使用过程中碰到的一个坑坑
![](https://img-blog.csdnimg.cn/img_convert/23eae7539d713ae95211d64cac60185d.png)
在执行第一行代码
curl -O https://arthas.aliyun.com/math-game.jar
的时候会出现三行警告
![](https://img-blog.csdnimg.cn/img_convert/1d0abf2367749a411d7359a3d561562d.png)
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
大致翻译下
警告:二进制输出会弄乱你的终端。需要使用"--output -"来告诉无论如何curl都要把它输出到你的终端,或者考虑使用"--output <FILE>“来保存到一个文件。
简单理解就是两个处理方式,一个强制输出到终端,另一个指定个文件作为输出文件
第一个(不推荐)
curl -0 https://arthas.aliyun.com/math-game.jar --output -
![](https://img-blog.csdnimg.cn/img_convert/c8cc5974b75c800919833ae78a1d4965.png)
第二个
curl -0 https://arthas.aliyun.com/math-game.jar --output math-game.jar
![](https://img-blog.csdnimg.cn/img_convert/a7e675fa0783f241e994579fe718e735.png)
下载完成后就可以使用java -jar启动下载好的jar进行测试啦
![](https://img-blog.csdnimg.cn/img_convert/41c32af1c67ac307303bf9f322f63011.png)
输入2(选择想要连接的程序号)
![](https://img-blog.csdnimg.cn/img_convert/a17f0ede80d87ea5d9b668afb3afaf8c.png)
连接成功
输入dashboard,回车显示详情
![](https://img-blog.csdnimg.cn/img_convert/d58b8709700e441a87bb1d6f94001490.png)