Skip to content

Commit 6c49e45

Browse files
committed
modify:
optimize shell.md
1 parent 59f412f commit 6c49e45

2 files changed

Lines changed: 38 additions & 54 deletions

File tree

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,4 @@ If you'd like to contribute to java-tron, please read the following instructions
9696
* [White Paper](https://tron.network/resources?lng=&name=1) White paper of TRON network.
9797

9898
# License
99-
java-tron is released under the [LGPLv3 license](https://github.com/tronprotocol/java-tron/blob/master/LICENSE).
100-
101-
102-
脚本贴到这里
99+
java-tron is released under the [LGPLv3 license](https://github.com/tronprotocol/java-tron/blob/master/LICENSE).

shell.md

Lines changed: 37 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,17 @@ If you have already downloaded `java-tron`, you can use `start.sh` to run `java-
7171
### How to use
7272

7373
* Local mode
74+
75+
Operate local server start and stop
76+
7477
* Online mode
7578

79+
Get the latest code and latest release from github
80+
7681
#### 1.local mode
7782

7883
Format:
7984

80-
```
81-
sh start.sh [option]
82-
```
83-
8485
```
8586
sh start.sh [-j <jarName>] [-d <db database-directory>] [-c <configFile>] [[--run] | [--stop]]
8687
```
@@ -112,92 +113,78 @@ sh start.sh --stop
112113
Format:
113114

114115
```
115-
sh start.sh --release [option]
116+
sh start.sh --release [--run]
116117
```
117118

118-
Download the latest version of java-tron, demo:
119+
Get the latest version up and running, demo:
119120

120121
```
121-
sh start.sh --release
122+
sh start.sh --release --run
122123
```
123124

124125
contains the following files:
125126

126127
```
127128
├── ...
128129
├── FullNode/
129-
├── config.conf
130-
├── FullNode.jar
131-
├── start.sh
132-
```
133-
134-
Get the latest version up and running, demo:
135-
136-
```
137-
sh start.sh --release --run
130+
├── config.conf
131+
├── FullNode.jar
132+
├── start.sh
138133
```
139134

140135
**clone code and build**
141136

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

139+
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
140+
144141
Format:
145142

146143
```
147-
sh start.sh -cb [option]
144+
sh start.sh -cb [--run]
148145
```
149146

150147
demo:
151148

152149
```
153-
sh start.sh -cb
150+
sh start.sh -cb --run
154151
```
155152

156153
contains the following files:
157154

158155
```
159156
├── ...
160-
├── java-tron/
161-
├── actuator/
162-
├── chainbase/
163-
├── common/
164-
├── config/
165-
├── consensus/
166-
├── crypto/
167-
├── docker/
168-
├── docs/
169-
├── example/
170-
├── framework/
171-
├── gradle/
172-
├── plugins/
173-
├── protocol/
174-
├── config.conf
175-
├── FullNode.jar
176-
├── start.sh
177-
├── README.md
178-
├── ...
179-
```
180-
181-
Download the code and compile and run it
182-
183-
demo:
184-
185-
```
186-
sh start.sh -cb --run
157+
├── java-tron
158+
├── actuator/
159+
├── chainbase/
160+
├── common/
161+
├── config/
162+
├── consensus/
163+
├── crypto/
164+
├── docker/
165+
├── docs/
166+
├── example/
167+
├── framework/
168+
├── gradle/
169+
├── plugins/
170+
├── protocol/
171+
├── config.conf
172+
├── FullNode.jar
173+
├── start.sh
174+
├── README.md
175+
├── ...
187176
```
188177

189-
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
178+
190179

191180
```
192-
├── ...
181+
├── java-tron/
193182
├── FullNode/
194-
── config.conf
183+
|── config.conf
195184
├── FullNode.jar
196185
├── start.sh
197186
```
198187

199-
200-
201188
#### 3.rebuild manifest
202189

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

0 commit comments

Comments
 (0)