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/_sources/manual-install.md.txt

38 lines
1.1 KiB
Plaintext

6 years ago
手动安装Arthas
===
6 years ago
1. 下载最新版本
6 years ago
**最新版本**[![Arthas](https://img.shields.io/maven-central/v/com.taobao.arthas/arthas-packaging.svg?style=flat-square "Arthas")](http://search.maven.org/classic/#search%7Cga%7C1%7Cg%3A%22com.taobao.arthas%22%20AND%20a%3A%22arthas-packaging%22)
6 years ago
在`Download`栏下载最新的 `bin.zip` 包。
6 years ago
如果下载速度比较慢,可以尝试用[阿里云的镜像仓库](https://maven.aliyun.com/),比如要下载`3.x.x`版本(替换`3.x.x`为最新版本下载的url是
https://maven.aliyun.com/repository/public/com/taobao/arthas/arthas-packaging/3.x.x/arthas-packaging-3.x.x-bin.zip
6 years ago
2. 解压缩arthas的压缩包
6 years ago
```
unzip arthas-packaging-bin.zip
```
6 years ago
6 years ago
3. 安装Arthas
安装之前最好把所有老版本的Arthas全都删掉
6 years ago
```
sudo su admin
rm -rf /home/admin/.arthas/lib/*
cd arthas
./install-local.sh
```
> 注意这里根据你需要诊断的Java进程的所属用户进行切换
6 years ago
4. 启动Arthas
启动之前请确保老版本的Arthas已经`shutdown`.
6 years ago
```
./as.sh
```