update doc

This commit is contained in:
hengyunabc committed 2018-12-15 00:13:53 +08:00
1 parent 20f2d54678
commit 1704abcace
10 files changed
+64 -56

No files matched your search

+9 -8
View File
@@ -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 -4
View File
@@ -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`