mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 15:33:59 +00:00
update doc
This commit is contained in:
1 parent
86a9e46e45
commit
609c5ba94e
4 files changed
+23
-21
No files matched your search
@@ -9,14 +9,14 @@ Install Arthas
|
|||||||
Download`arthas-boot.jar`,Start with `java` command:
|
Download`arthas-boot.jar`,Start with `java` command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://alibaba.github.io/arthas/arthas-boot.jar
|
$ wget https://alibaba.github.io/arthas/arthas-boot.jar
|
||||||
java -jar arthas-boot.jar
|
$ java -jar arthas-boot.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
Print usage:
|
Print usage:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar arthas-boot.jar -h
|
$ java -jar arthas-boot.jar -h
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ java -jar arthas-boot.jar -h
|
|||||||
You can install Arthas with one single line command on Linux, Unix, and Mac. Pls. copy the following command and paste it into the command line, then press *Enter* to run:
|
You can install Arthas with one single line command on Linux, Unix, and Mac. Pls. copy the following command and paste it into the command line, then press *Enter* to run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -L https://alibaba.github.io/arthas/install.sh | sh
|
$ curl -L https://alibaba.github.io/arthas/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The command above will download the bootstrap script `as.sh` to the current directory. You can move it the any other place you want, or put its location in `$PATH`.
|
The command above will download the bootstrap script `as.sh` to the current directory. You can move it the any other place you want, or put its location in `$PATH`.
|
||||||
@@ -40,13 +40,13 @@ Latest Version, Click To Download: [![Arthas](https://img.shields.io/maven-centr
|
|||||||
Download and unzip, find `arthas-boot.jar` in the directory. Start with `java` command:
|
Download and unzip, find `arthas-boot.jar` in the directory. Start with `java` command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar arthas-boot.jar
|
$ java -jar arthas-boot.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
Print usage:
|
Print usage:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar arthas-boot.jar -h
|
$ java -jar arthas-boot.jar -h
|
||||||
```
|
```
|
||||||
|
|
||||||
## Manual Installation
|
## Manual Installation
|
||||||
@@ -64,7 +64,7 @@ Latest Version, Click To Download:[![Arthas](https://img.shields.io/maven-centra
|
|||||||
* On Linux/Unix/Mac, delete the files with the following command:
|
* On Linux/Unix/Mac, delete the files with the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
rm -rf ~/.arthas/
|
$ rm -rf ~/.arthas/
|
||||||
```
|
```
|
||||||
|
|
||||||
* On Windows, delete `.arthas` directory under user home.
|
* On Windows, delete `.arthas` directory under user home.
|
||||||
@@ -4,8 +4,8 @@ Quick Start
|
|||||||
## 1. Start Demo Application
|
## 1. Start Demo Application
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://alibaba.github.io/arthas/arthas-demo.jar
|
$ wget https://alibaba.github.io/arthas/arthas-demo.jar
|
||||||
java -jar arthas-demo.jar
|
$ java -jar arthas-demo.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
`arthas-demo` is a simple program that generates a random number every second, then find all prime factors of the number.
|
`arthas-demo` is a simple program that generates a random number every second, then find all prime factors of the number.
|
||||||
@@ -19,8 +19,8 @@ The source code of `arthas-demo`: [View](https://github.com/alibaba/arthas/blob/
|
|||||||
Execute the following command in the command line:
|
Execute the following command in the command line:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://alibaba.github.io/arthas/arthas-boot.jar
|
$ wget https://alibaba.github.io/arthas/arthas-boot.jar
|
||||||
java -jar arthas-boot.jar
|
$ java -jar arthas-boot.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
* The user to run this command *MUST* have the same privilege as the owner of the target process, as a simple example you can try the following command if the target process is managed by user `admin`: `sudo su admin && java -jar arthas-boot.jar` or `sudo -u admin -EH java -jar arthas-boot.jar`
|
* The user to run this command *MUST* have the same privilege as the owner of the target process, as a simple example you can try the following command if the target process is managed by user `admin`: `sudo su admin && java -jar arthas-boot.jar` or `sudo -u admin -EH java -jar arthas-boot.jar`
|
||||||
|
|||||||
@@ -8,24 +8,26 @@ Arthas Install
|
|||||||
下载`arthas-boot.jar`,然后用`java -jar`的方式启动:
|
下载`arthas-boot.jar`,然后用`java -jar`的方式启动:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://alibaba.github.io/arthas/arthas-boot.jar
|
$ wget https://alibaba.github.io/arthas/arthas-boot.jar
|
||||||
java -jar arthas-boot.jar
|
$ java -jar arthas-boot.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
打印帮助信息:
|
打印帮助信息:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar arthas-boot.jar -h
|
$ java -jar arthas-boot.jar -h
|
||||||
```
|
```
|
||||||
|
|
||||||
* 如果下载速度比较慢,可以使用aliyun的镜像:`java -jar arthas-boot.jar --repo-mirror aliyun --use-http`
|
* 如果下载速度比较慢,可以使用aliyun的镜像:
|
||||||
|
|
||||||
|
`java -jar arthas-boot.jar --repo-mirror aliyun --use-http`
|
||||||
|
|
||||||
### 使用`as.sh`
|
### 使用`as.sh`
|
||||||
|
|
||||||
Arthas 支持在 Linux/Unix/Mac 等平台上一键安装,请复制以下内容,并粘贴到命令行中,敲 `回车` 执行即可:
|
Arthas 支持在 Linux/Unix/Mac 等平台上一键安装,请复制以下内容,并粘贴到命令行中,敲 `回车` 执行即可:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -L https://alibaba.github.io/arthas/install.sh | sh
|
$ curl -L https://alibaba.github.io/arthas/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
上述命令会下载启动脚本文件 `as.sh` 到当前目录,你可以放在任何地方或将其加入到 `$PATH` 中。
|
上述命令会下载启动脚本文件 `as.sh` 到当前目录,你可以放在任何地方或将其加入到 `$PATH` 中。
|
||||||
@@ -41,13 +43,13 @@ curl -L https://alibaba.github.io/arthas/install.sh | sh
|
|||||||
解压后,在文件夹里有`arthas-boot.jar`,直接用`java -jar`的方式启动:
|
解压后,在文件夹里有`arthas-boot.jar`,直接用`java -jar`的方式启动:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar arthas-boot.jar
|
$ java -jar arthas-boot.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
打印帮助信息:
|
打印帮助信息:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -jar arthas-boot.jar -h
|
$ java -jar arthas-boot.jar -h
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -66,7 +68,7 @@ java -jar arthas-boot.jar -h
|
|||||||
|
|
||||||
删除下面文件:
|
删除下面文件:
|
||||||
```bash
|
```bash
|
||||||
rm -rf ~/.arthas/
|
$ rm -rf ~/.arthas/
|
||||||
```
|
```
|
||||||
|
|
||||||
* Windows平台直接删除user home下面的`.arthas`目录
|
* Windows平台直接删除user home下面的`.arthas`目录
|
||||||
@@ -18,8 +18,8 @@ java -jar arthas-demo.jar
|
|||||||
在命令行下面执行:
|
在命令行下面执行:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget https://alibaba.github.io/arthas/arthas-boot.jar
|
$ wget https://alibaba.github.io/arthas/arthas-boot.jar
|
||||||
java -jar arthas-boot.jar
|
$ java -jar arthas-boot.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
* 执行该程序的用户需要和目标进程具有相同的权限。比如以`admin`用户来执行:`sudo su admin && java -jar arthas-boot.jar` 或 `sudo -u admin -EH java -jar arthas-boot.jar`。
|
* 执行该程序的用户需要和目标进程具有相同的权限。比如以`admin`用户来执行:`sudo su admin && java -jar arthas-boot.jar` 或 `sudo -u admin -EH java -jar arthas-boot.jar`。
|
||||||
|
|||||||
Reference in new issue
Block a user