mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-12 22:41:26 +00:00
update doc
This commit is contained in:
1 parent
20f2d54678
commit
1704abcace
10 files changed
+64
-56
No files matched your search
@@ -9,14 +9,14 @@ Install Arthas
|
||||
Download`arthas-boot.jar`,Start with `java` command:
|
||||
|
||||
```bash
|
||||
$ wget https://alibaba.github.io/arthas/arthas-boot.jar
|
||||
$ java -jar arthas-boot.jar
|
||||
wget https://alibaba.github.io/arthas/arthas-boot.jar
|
||||
java -jar arthas-boot.jar
|
||||
```
|
||||
|
||||
Print usage:
|
||||
|
||||
```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:
|
||||
|
||||
```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`.
|
||||
@@ -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:
|
||||
|
||||
```bash
|
||||
$ java -jar arthas-boot.jar
|
||||
java -jar arthas-boot.jar
|
||||
```
|
||||
|
||||
Print usage:
|
||||
|
||||
```bash
|
||||
$ java -jar arthas-boot.jar -h
|
||||
java -jar arthas-boot.jar -h
|
||||
```
|
||||
|
||||
## Manual Installation
|
||||
@@ -64,7 +64,8 @@ Latest Version, Click To Download:[![Arthas](https://img.shields.io/maven-centra
|
||||
* On Linux/Unix/Mac, delete the files with the following command:
|
||||
|
||||
```bash
|
||||
$ rm -rf ~/.arthas/
|
||||
rm -rf ~/.arthas/
|
||||
rm -rf ~/logs/arthas/
|
||||
```
|
||||
|
||||
* On Windows, delete `.arthas` directory under user home.
|
||||
* On Windows, delete `.arthas` and `logs/arthas` directory under user home.
|
||||
@@ -4,8 +4,8 @@ Quick Start
|
||||
## 1. Start Demo Application
|
||||
|
||||
```bash
|
||||
$ wget https://alibaba.github.io/arthas/arthas-demo.jar
|
||||
$ java -jar arthas-demo.jar
|
||||
wget https://alibaba.github.io/arthas/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.
|
||||
@@ -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:
|
||||
|
||||
```bash
|
||||
$ wget https://alibaba.github.io/arthas/arthas-boot.jar
|
||||
$ java -jar arthas-boot.jar
|
||||
wget https://alibaba.github.io/arthas/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`
|
||||
|
||||
Reference in new issue
Block a user