Skip to content

Commit

Permalink
modify:
Browse files Browse the repository at this point in the history
optimize shell.md
  • Loading branch information
forfreeday committed Sep 9, 2021
1 parent 59f412f commit 6c49e45
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 54 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,4 @@ If you'd like to contribute to java-tron, please read the following instructions
* [White Paper](https://tron.network/resources?lng=&name=1) White paper of TRON network.

# License
java-tron is released under the [LGPLv3 license](https://github.com/tronprotocol/java-tron/blob/master/LICENSE).


脚本贴到这里
java-tron is released under the [LGPLv3 license](https://github.com/tronprotocol/java-tron/blob/master/LICENSE).
87 changes: 37 additions & 50 deletions shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,17 @@ If you have already downloaded `java-tron`, you can use `start.sh` to run `java-
### How to use

* Local mode

Operate local server start and stop

* Online mode

Get the latest code and latest release from github

#### 1.local mode

Format:

```
sh start.sh [option]
```

```
sh start.sh [-j <jarName>] [-d <db database-directory>] [-c <configFile>] [[--run] | [--stop]]
```
Expand Down Expand Up @@ -112,92 +113,78 @@ sh start.sh --stop
Format:

```
sh start.sh --release [option]
sh start.sh --release [--run]
```

Download the latest version of java-tron, demo:
Get the latest version up and running, demo:

```
sh start.sh --release
sh start.sh --release --run
```

contains the following files:

```
├── ...
├── FullNode/
├── config.conf
├── FullNode.jar
├── start.sh
```

Get the latest version up and running, demo:

```
sh start.sh --release --run
├── config.conf
├── FullNode.jar
├── start.sh
```

**clone code and build**

Get the latest code from master branch of https://github.com/tronprotocol/java-tron and compile download the latest release.

After using this command, the FullNode directory will be created and the compiled file FullNode.jar and related configuration files will be copied to this directory

Format:

```
sh start.sh -cb [option]
sh start.sh -cb [--run]
```

demo:

```
sh start.sh -cb
sh start.sh -cb --run
```

contains the following files:

```
├── ...
├── java-tron/
├── actuator/
├── chainbase/
├── common/
├── config/
├── consensus/
├── crypto/
├── docker/
├── docs/
├── example/
├── framework/
├── gradle/
├── plugins/
├── protocol/
├── config.conf
├── FullNode.jar
├── start.sh
├── README.md
├── ...
```

Download the code and compile and run it

demo:

```
sh start.sh -cb --run
├── java-tron
├── actuator/
├── chainbase/
├── common/
├── config/
├── consensus/
├── crypto/
├── docker/
├── docs/
├── example/
├── framework/
├── gradle/
├── plugins/
├── protocol/
├── config.conf
├── FullNode.jar
├── start.sh
├── README.md
├── ...
```

After using this command, the FullNode directory will be created and the compiled file FullNode.jar and related configuration files will be copied to this directory


```
├── ...
├── java-tron/
├── FullNode/
── config.conf
|── config.conf
├── FullNode.jar
├── start.sh
```



#### 3.rebuild manifest

This tool provides the ability to reformat the manifest according to the current database.
Expand Down

0 comments on commit 6c49e45

Please sign in to comment.