arthas部署安装

arthas运行需要有jdk;
一、下载arthas安装包
1.有网络环境只需要下载arthas-boot.jar包,运行时会自动下载依赖
2.无网络环境可在本地下载全量包,上传到服务器;官网下载:https://arthas.aliyun.com/doc/download.html

在这里插入图片描述
在这里插入图片描述
二、解压缩

unzip arthas-packaging-3.6.4-bin.zip -d ./arthas

在这里插入图片描述
在这里插入图片描述
三、运行arthas
进入arthas解压后目录

cd arthas/
ll

在这里插入图片描述
启动

java -jar ./arthas-boot.jar

在这里插入图片描述
此处输入运行中的java进程;
这里只有一个java进程,直接选择输入1,回车
出现pid、time就表示arthas成功启动并监听了指定的java程序
在这里插入图片描述
启动后自动进入arthas终端,在arthas终端就可以执行arthas命令;exit退出arthas终端
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44835704/article/details/126486999