From 82df3745747117af345ad55de8e54c41996ff58d Mon Sep 17 00:00:00 2001 From: beiwei30 Date: Mon, 5 Nov 2018 22:29:31 +0800 Subject: [PATCH] enhance translation --- site/src/site/sphinx/en/start-arthas.md | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/site/src/site/sphinx/en/start-arthas.md b/site/src/site/sphinx/en/start-arthas.md index 3cfc333bd..7efe627f1 100644 --- a/site/src/site/sphinx/en/start-arthas.md +++ b/site/src/site/sphinx/en/start-arthas.md @@ -30,19 +30,15 @@ Startup script is as follows: ./as.sh [@IP:PORT] ``` - - ### Parameter Description -* PID: Target Java process ID(Make sure that the user executing the command has sufficient permissions to operate the target Java process.) - -* IP: The address that Arthas Server listens on, the default value is `127.0.0.1`. Arthas allows multiple users to access simultaneously without interfering with each other. - -* PORT: Arthas Server port,the default value is 3658 +* *PID*: Target Java process ID (Make sure that the user executing the command has sufficient permissions to operate the target Java process.) +* *IP*: The address that Arthas Server listens on, the default value is `127.0.0.1`. Arthas allows multiple users to access simultaneously without interfering with each other. +* *PORT*: Arthas Server port,the default value is 3658 ### Sample -* If you do not specify IP and PORT, the default is 127.0.0.1 and 3658 +* If IP and PORT are not specified, then the default values are 127.0.0.1 and 3658 > ./as.sh 12345 @@ -52,7 +48,7 @@ Startup script is as follows: ### Remote Diagnosis -After starting Arthas Server, users can use `telnet` connect to the remote Arthas Server, for example: +After starting Arthas Server on the target Java process, users can use `telnet` connect to the remote Arthas Server, for example: ```bash telnet 192.168.1.119 3658 @@ -60,7 +56,7 @@ telnet 192.168.1.119 3658 ### sudo Support -If you need to switch users, such as `admin`, you need to add the -H parameter. +Usually online environment will only grant users privilege as low as possible, instead, all advanced operations are through sudo-list. Since `as.sh` script takes into account the current effective user, it is possible to run the script in the other rule, by specifying `-H` option like this: ```bash sudo -u admin -H ./as.sh 12345 @@ -69,8 +65,8 @@ sudo -u admin -H ./as.sh 12345 ### Windows Support -`as.bat` script only supports one parameter: pid +Right now `as.bat` script supports one parameter only, which is: pid ```bash as.bat -``` \ No newline at end of file +```