mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 07:32:57 +00:00
enhance translation
This commit is contained in:
1 parent
86398a0d79
commit
82df374574
1 file changed
+8
-12
@@ -30,19 +30,15 @@ Startup script is as follows:
|
||||
./as.sh <PID>[@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 <pid>
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user