Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trons #83

Open
wants to merge 154 commits into
base: mainnet_use_release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
977ca40
Update test_net_config.conf
ithinker1991 Aug 24, 2018
f08600d
Update test_net_config.conf
ithinker1991 Aug 30, 2018
3b12166
Update deploy_tron.sh
ithinker1991 Aug 30, 2018
fcc8e79
Update test_net_config.conf
ithinker1991 Aug 30, 2018
6282aae
Update test_net_config.conf
ithinker1991 Aug 30, 2018
c1197db
Update test_net_config.conf
ithinker1991 Aug 30, 2018
7630fef
Update private_net_config.conf
huzhenyuan Aug 31, 2018
7f132ad
Update main_net_config.conf
ithinker1991 Sep 6, 2018
bab19f8
Update test_net_config.conf
ithinker1991 Sep 6, 2018
238eceb
Update test_net_config.conf
ithinker1991 Sep 6, 2018
4babe09
Update test_net_config.conf
ithinker1991 Sep 11, 2018
054c194
Update test_net_config.conf
ithinker1991 Sep 12, 2018
17f8992
Update main_net_config.conf
huzhenyuan Sep 18, 2018
c7f5ae8
add Benchmark.jar
tjchern Sep 20, 2018
7f5b0f3
update Benchmark.jar
tjchern Sep 20, 2018
00f3c72
add check machine config shell
lvs007 Sep 20, 2018
5a04490
add out message
lvs007 Sep 20, 2018
3b244cd
add conf item explanation document and add log level conf item
shydesky Sep 21, 2018
fc0a6c9
update Benchmark.jar
tjchern Sep 21, 2018
478d1e7
Merge remote-tracking branch 'origin/master'
tjchern Sep 21, 2018
7446701
update Benchmark.jar
tjchern Sep 22, 2018
0ffda3d
update Benchmark.jar
tjchern Sep 22, 2018
2a32c18
Update deploy_tron.sh
ithinker1991 Sep 25, 2018
708e0f2
Update README.md
ithinker1991 Sep 25, 2018
7e07d02
Update README.md
ithinker1991 Sep 25, 2018
13d9655
Update deploy_tron.sh
ithinker1991 Sep 25, 2018
f51ad2b
Update deploy_tron.sh
ithinker1991 Sep 25, 2018
c06b012
Update deploy_tron.sh
ithinker1991 Sep 25, 2018
3b6a0d9
set heap
shydesky Sep 26, 2018
9d8e992
readme modify
shydesky Sep 26, 2018
a4fb38b
Merge pull request #9 from tronprotocol/shy_deploy_tron
lvs007 Sep 27, 2018
aec079c
delete trust node config
shydesky Sep 27, 2018
2c0d733
Merge pull request #10 from tronprotocol/shy_deploy_tron
lvs007 Sep 27, 2018
9a39e6d
Update test_net_config.conf
huzhenyuan Oct 12, 2018
f163d54
Update main_net_config.conf
Yrp Oct 18, 2018
a4e532e
Merge pull request #14 from tronprotocol/Yrp-patch-1
olenheim Oct 18, 2018
9a023c6
Update main_net_config.conf
Yrp Oct 18, 2018
b19dcc5
Update main_net_config.conf
Yrp Oct 18, 2018
a9862ed
Merge pull request #15 from tronprotocol/Yrp-patch-2
Yrp Oct 18, 2018
3773a05
Update main_net_config.conf
Yrp Oct 18, 2018
5c25c90
Dropping min time ratio to match mainnet
kookiekrak Oct 20, 2018
a6816cf
Update private_net_config.conf
shydesky Oct 25, 2018
cd36458
Update main_net_config.conf
hyxc Oct 31, 2018
c7233c4
Update main_net_config.conf
Yrp Nov 7, 2018
c444bcf
add test_net_config_3_2.config
xiechang33 Nov 13, 2018
2f7230e
Merge pull request #17 from tronprotocol/feature/add_test_net_config3_2
xiechang33 Nov 13, 2018
7557c6a
add config files for shasta
UnforgivenZZZ Nov 20, 2018
b3a7b38
improve test_net_config.config
xiechang33 Nov 27, 2018
db0c777
Merge pull request #18 from tronprotocol/feature/add_config
xiechang33 Nov 27, 2018
d3e1b38
Update main_net_config.conf
Yrp Nov 28, 2018
157f6ca
Update main_net_config.conf
Yrp Nov 29, 2018
3d7339d
Update main_net_config.conf
wubin12 Nov 29, 2018
0f77e16
Add minEffectiveConnection for private net
shenyongri110 Nov 30, 2018
c4c4823
Update main_net_config.conf
hyxc Dec 3, 2018
29bccee
Update main_net_config.conf
hyxc Dec 3, 2018
cb385bf
Update main_net_config.conf
DorianRust Dec 5, 2018
fb78eff
Update main_net_config.conf
DorianRust Dec 5, 2018
204e608
Update main_net_config.conf
DorianRust Dec 5, 2018
caa95d7
Update main_net_config.conf
DorianRust Dec 5, 2018
5e6a07c
Merge pull request #19 from tronprotocol/feature/addConfig
Yrp Dec 5, 2018
45185d4
Add a switch to save internal transaction
ithinker1991 Dec 6, 2018
64ab37c
Update main_net_config.conf
Yrp Dec 6, 2018
a243ded
Update shasta.conf
UnforgivenZZZ Dec 7, 2018
d63d854
Update shasta.conf
UnforgivenZZZ Dec 7, 2018
8f3538f
Update shasta_sol.conf
UnforgivenZZZ Dec 7, 2018
c7b56af
Update shasta.conf
UnforgivenZZZ Dec 11, 2018
7733296
Update main_net_config.conf
wubin12 Dec 15, 2018
265dddd
Update test_net_config.conf
xiechang33 Dec 17, 2018
c3f392a
Update main_net_config.conf
Yrp Dec 17, 2018
018694b
Update main_net_config.conf
Yrp Dec 17, 2018
0d57e00
Update main_net_config.conf
Yrp Dec 17, 2018
dd4135f
Update main_net_config.conf
wubin12 Dec 21, 2018
d2f793f
Update test_net_config.conf
xiechang33 Dec 24, 2018
4527247
Update test_net_config.conf
xiechang33 Jan 9, 2019
3503996
Update main_net_config.conf
Yrp Feb 19, 2019
b0fb8dd
Update main_net_config.conf
Yrp Feb 21, 2019
ac1d211
Fixed typo
rlaace423 Feb 25, 2019
336cdeb
Update test_net_config.conf
xiechang33 Mar 13, 2019
193ff39
delete unused global log level config
shydesky Apr 2, 2019
84d9757
fix heap size set useless bug
shydesky Apr 2, 2019
b5c69fd
Update main_net_config.conf
xxo1shine Apr 2, 2019
070a504
Merge pull request #16 from tronprotocol/kookiekrak-patch-1
shydesky Apr 2, 2019
7fe3193
Update main_net_config.conf
hyxc Apr 3, 2019
d53f6de
Merge pull request #26 from rlaace423/master
shydesky Apr 4, 2019
d23e56a
Revert "Fixed typo"
shydesky Apr 4, 2019
1f26ba0
Merge pull request #30 from tronprotocol/revert-26-master
shydesky Apr 4, 2019
5b4515e
add db engine
shydesky Apr 10, 2019
73f31d1
Update main_net_config.conf
xxo1shine May 15, 2019
71b8330
Update main_net_config.conf
DorianRust May 27, 2019
cae0f4c
Update main_net_config.conf
DorianRust May 31, 2019
af04fe9
Lint deploy_tron
ahonnecke Jun 13, 2019
39addee
Delete shasta.conf
UnforgivenZZZ Jun 18, 2019
b6d58d0
Delete shasta_sol.conf
UnforgivenZZZ Jun 18, 2019
adce34b
Update main_net_config.conf
hyxc Jun 24, 2019
77f6e4f
Update test_net_config.conf
hyxc Jul 2, 2019
775c0ec
Update test_net_config.conf
xiechang33 Jul 5, 2019
162d1c8
Update main_net_config.conf
hyxc Jul 24, 2019
baa3f88
Update main_net_config.conf
xxo1shine Jul 25, 2019
d497e52
bugfix for branch parameter
gologo13 Jul 27, 2019
445644c
Update main_net_config.conf
hyxc Aug 2, 2019
e62e8b9
modify test_net_config.conf
Sep 25, 2019
59b8522
update main net config
shydesky Nov 28, 2019
f6f8af5
Merge pull request #31 from ahonnecke/lint-deploy-script
jiangyy0824 Dec 19, 2019
9c06bce
Merge pull request #32 from gologo13/master
jiangyy0824 Dec 19, 2019
7a004f5
add solidity block event trigger
DorianRust Mar 18, 2020
89b01f9
Update private_net_config.conf
DorianRust Mar 18, 2020
cb10981
Update test_net_config.conf
DorianRust Mar 18, 2020
1a0f8f1
Update main_net_config.conf
hyxc Aug 28, 2020
8c8ff5d
Update main_net_config.conf
hyxc Aug 28, 2020
aaf8661
fix test config net type
shiruitao Sep 23, 2020
a2e086d
add new topics: solidityevent soliditylog
tomatoishealthy Dec 1, 2020
294b973
fix a typo
lcgogo Mar 30, 2021
79a4b1f
Merge pull request #39 from lcgogo/patch-1
jiangyy0824 Jun 1, 2021
0d6a0ef
Merge pull request #37 from shiruitao/master
jiangyy0824 Jun 1, 2021
e584722
Merge pull request #38 from tronprotocol/add_2_new_topics
jiangyy0824 Jun 1, 2021
e40b981
optimize leveldb config
forfreeday Oct 19, 2021
c66523e
modify leveldb config
forfreeday Oct 19, 2021
9901704
Merge pull request #47 from forfreeday/feature/leveldb_config
forfreeday Oct 19, 2021
38919b6
Update main_net_config.conf
hyxc Dec 16, 2021
0f2b6f3
Update main_net_config.conf
hyxc Feb 9, 2022
1582cf2
config(db,trx): add new config for db,change Transaction reference block
halibobo1205 Mar 23, 2022
455aeda
Merge remote-tracking branch 'origin/master'
halibobo1205 Mar 23, 2022
124ecb3
config(db): remove new config for leveldb
halibobo1205 Mar 24, 2022
7ee6a97
config(db): add usage scenarios for db settings
halibobo1205 Mar 25, 2022
2a1de27
Merge pull request #54 from halibobo1205/master
lvs007 Mar 25, 2022
8b2b476
Merge branch 'master' of github.com:tronprotocol/tron-deployment
forfreeday Mar 28, 2022
c64e145
feat: update nile network configuration file
forfreeday Mar 28, 2022
88a6dc4
feature: update nile config
forfreeday Mar 28, 2022
7289a9e
Merge pull request #55 from forfreeday/feature/update_nile_config
forfreeday Mar 28, 2022
761923d
Update private_net_config.conf
m1s5 Nov 9, 2022
c1d760a
Update main_net_config.conf
xxo1shine May 15, 2023
9f670b1
Update main_net_config.conf
hyxc May 29, 2023
8f6dde7
Merge pull request #67 from m1s5/patch-1
vivian1912 May 31, 2023
ce9a830
config(net):add network-related configurations such as IPv6 switch an…
jwrct Jul 3, 2023
7f22c3d
Merge pull request #90 from chengtx01/472
forfreeday Jul 4, 2023
706c3bd
Merge branch 'master' of github.com:tronprotocol/tron-deployment
forfreeday Jul 19, 2023
e86e1a4
feat(config): Optimize main_net_config.conf
forfreeday Jul 19, 2023
b892db4
feat(config): Fix description errors
forfreeday Jul 20, 2023
49be980
Merge pull request #93 from forfreeday/feat/optimize_config
forfreeday Jul 20, 2023
2d861a8
add public fullnode to support ipv6
317787106 Jul 28, 2023
8f2b450
add offical dns tree
317787106 Aug 1, 2023
106da10
update comment of main_net_config.conf
317787106 Aug 2, 2023
bec4dd7
Merge pull request #94 from tronprotocol/feature/add_ipv6
forfreeday Aug 3, 2023
62e0eac
feat(config): update config file
forfreeday Aug 4, 2023
e1f5753
Merge pull request #95 from forfreeday/feat/optimize_nile_config
forfreeday Aug 10, 2023
a0294dc
feat(config): update seed node
forfreeday Aug 16, 2023
765cdcf
Merge pull request #97 from forfreeday/feat/update_seed_node
forfreeday Aug 16, 2023
74e469a
feat(config): update seed node
forfreeday Aug 24, 2023
240ed17
Merge pull request #100 from forfreeday/feature/update_nile_config
forfreeday Aug 24, 2023
4ab85be
feat(config): add event config
317787106 Sep 7, 2023
b1e14cb
feat(config): add rpc reflection service config (#116)
tomatoishealthy Mar 15, 2024
9d73c87
feat(config): add reward-vi root (#117)
halibobo1205 Mar 19, 2024
a2bc48c
delete bind.ip from rivate_net_config.conf
317787106 Mar 21, 2024
14699a3
Merge pull request #118 from 317787106/feature/delete_bind
317787106 Mar 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Benchmark.jar
Binary file not shown.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Scope of use
This script could be used on Linux/MacOS, but not on Windows.
Just Support FullNode and SolidityNode.

## Download and run script

```shell
Expand All @@ -7,15 +11,17 @@ wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy
## Parameter Illustration

```shell
bash deploy_tron.sh --app [FullNode|SolidityNode] --net [mainnet|testnet|privatenet] --db [keep|remove|backup]
bash deploy_tron.sh --app [FullNode|SolidityNode] --net [mainnet|testnet|privatenet] --db [keep|remove|backup] --heap-size <heapsize>

--app Running application. The default node is Fullnode and it could be FullNode or SolidityNode.
--net Connecting network. The default network is mainnet and it could be mainnet, testnet, privatenet .
--db The way of data processing could be keep, remove and backup. If you launch two different networks, like from mainnet to testnet or from testnet to mainnet, you need to delete database.
--trust-node It only works when deploying SolidityNode. The specified gRPC service of Fullnode, like 127.0.0.1:50051 or 13.125.249.129:50051.
--rpc-port Port of grp. If you deploy SolidityNode and FullNode on the same host,you need to configure different ports.
--commit Optional, commitid of project.
--branch Optional,branch of project.
--app Optional, Running application. The default node is Fullnode and it could be FullNode or SolidityNode.
--net Optional, Connecting network. The default network is mainnet and it could be mainnet, testnet.
--db Optional, The way of data processing could be keep, remove and backup. Default is keep. If you launch two different networks, like from mainnet to testnet or from testnet to mainnet, you need to delete database.
--trust-node Optional, It only works when deploying SolidityNode. Default is 127.0.0.1:50051. The specified gRPC service of Fullnode, like 127.0.0.1:50051 or 13.125.249.129:50051.
--rpc-port Optional, Port of grpc. Default is 50051. If you deploy SolidityNode and FullNode on the same host,you need to configure different ports.
--commit Optional, commitid of project.
--branch Optional, branch of project. Mainnet default is latest release and Testnet default is master.
--heap-size Optional, jvm option: Xmx. The default heap-size is 0.8 * memory size.
--work_space Optional, default is current directory.
```

## Examples
Expand All @@ -24,30 +30,24 @@ bash deploy_tron.sh --app [FullNode|SolidityNode] --net [mainnet|testnet|private

```shell
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh --app FullNode --net mainnet
bash deploy_tron.sh
```

### Deployment of SolidityNode on the one host.

```shell
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
# User can self-configure the IP and Port of GRPC service in the turst-node field of SolidityNode.
bash deploy_tron.sh --app SolidityNode --net mainnet --trust-node <grpc-ip:grpc-port>
# User can self-configure the IP and Port of GRPC service in the turst-node field of SolidityNode. trust-node is the fullnode you just deploy.
bash deploy_tron.sh --app SolidityNode --trust-node <grpc-ip:grpc-port>
```

### Deployment of FullNode(PrivateNet: Just one witness node) on the one host.

```shell
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh --app FullNode --branch develop --net privatenet
```
### Deployment of FullNode and SolidityNode on the same host.

```shell
# You need to configure different gRPC ports on the same host because gRPC port is available on SolidityNode and FullNodeConfigure and it cannot be set as default value 50051. In this case the default value of rpc port is set as 50041.
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh --app FullNode --net mainnet
# You need to configure different gRPC ports on the same host because gRPC port is available on SolidityNode and FullNodeConfigure and it cannot be set as default value 50051. In this case the default value of rpc port is set as 50041.
bash deploy_tron.sh --app SolidityNode --net mainnet --trust-node 127.0.0.1:50051 --rpc-port 50041
bash deploy_tron.sh --app FullNode
bash deploy_tron.sh --app SolidityNode --rpc-port 50041
```

## Deployment of grpc gateway
Expand Down
6 changes: 0 additions & 6 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy
# 这里自己指定SolidityNode的trust-node的gRPC服务的ip和端口号
bash deploy_tron.sh --app SolidityNode --net mainnet --trust-node <grpc-ip:grpc-port>
```
### 单独启动私有链FullNode(仅仅运行一个产块节点)

```shell
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/deploy_tron.sh -O deploy_tron.sh
bash deploy_tron.sh --app FullNode --branch develop --net privatenet
```

### 启动主网FullNode和SolidityNode在同一台机器

Expand Down
15 changes: 15 additions & 0 deletions check-machine-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/Benchmark.jar -O Benchmark.jar
java -jar Benchmark.jar

if [ $? == 1 ]; then
echo "-----------------------------------------------------"
echo "--------------------FAIL RESULT----------------------"
echo "Start fail! Please upgrade server configuration."
echo "CPU needs at least 16 cores"
echo "Memory needs at least 30GB"
echo "Java MUST be oracle jdk, and version >= 1.8"
echo "-----------------------------------------------------"
exit 1
fi
86 changes: 52 additions & 34 deletions deploy_tron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

# default config
APP="FullNode"
PROJECT="java-tron"
WORK_SPACE=$PWD
Expand All @@ -8,6 +10,9 @@ DB="keep"
RPC_PORT=50051
TRUST_NODE="127.0.0.1:50051"

# compute default heap size
# total=`cat /proc/meminfo |grep MemTotal |awk -F ' ' '{print $2}'`
# HEAP_SIZE=`echo "$total/1024/1024*0.8" | bc |awk -F. '{print $1"g"}'`


while [ -n "$1" ] ;do
Expand All @@ -18,11 +23,11 @@ while [ -n "$1" ] ;do
;;
--app)
APP=$2
shift 2
shift 2
;;
--db)
DB=$2
shift 2
shift 2
;;
--work_space)
WORK_SPACE=$2
Expand All @@ -44,23 +49,34 @@ while [ -n "$1" ] ;do
RPC_PORT=$2
shift 2
;;
--heap-size)
HEAP_SIZE=$2
shift 2
;;
*)
;;
esac
done

if [ $APP == "Witness" ]; then
JAR_NAME="FullNode"
else
JAR_NAME=$APP

if [ -z $HEAP_SIZE ]; then
if [ "$(uname)" == "Darwin" ]; then
total=`top -l 1 | head -n 10 | grep PhysMem | awk -F " " '{a=substr($2,0,length($2)-1);b=substr($6,0,length($6)-1);if(match($2,/[0-9]+G/)) a=a*1024;if(match($6,/[0-9]+G/)) b=b*1024;print a+b}'`
HEAP_SIZE=`echo "$total/1024*0.8" | bc |awk -F. '{print $1"g"}'`
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
total=`cat /proc/meminfo |grep MemTotal |awk -F ' ' '{print $2}'`
HEAP_SIZE=`echo "$total/1024/1024*0.8" | bc |awk -F. '{print $1"g"}'`
fi
fi

JAR_NAME=$APP

BIN_PATH="$WORK_SPACE/$APP"


CONF_PATH=""

echo 'download code from git repositorie'
echo 'download code from git repository'
if [ ! -e $BIN_PATH ]; then
mkdir -p $BIN_PATH
cd $BIN_PATH
Expand All @@ -70,20 +86,17 @@ fi
cd $BIN_PATH
if [ $NET == "mainnet" ]; then
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/main_net_config.conf -O main_net_config.conf
RELEASE=`curl --silent "https://api.github.com/repos/tronprotocol/java-tron/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
CONF_PATH=$BIN_PATH/main_net_config.conf
elif [ $NET == "testnet" ]; then
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/test_net_config.conf -O test_net_config.conf
BRANCH="develop"
CONF_PATH=$BIN_PATH/test_net_config.conf
elif [ $NET == "privatenet" ]; then
wget https://raw.githubusercontent.com/tronprotocol/TronDeployment/master/private_net_config.conf -O private_net_config.conf
CONF_PATH=$BIN_PATH/private_net_config.conf
fi

if [ -n $RPC_PORT ]; then
sed "s/port = 50051/port = $RPC_PORT/g" $CONF_PATH > tmp
cat tmp > $CONF_PATH
fi
fi
# checkout branch or commitid
if [ -n "$BRANCH" ]; then
cd $BIN_PATH/$PROJECT && git fetch && git checkout $BRANCH; git reset --hard origin/$BRANCH
Expand All @@ -93,6 +106,11 @@ if [ -n "$COMMITID" ]; then
cd $BIN_PATH/$PROJECT && git fetch && git checkout $COMMITID
fi

if [ -n "$RELEASE" ]; then
cd $BIN_PATH/$PROJECT && git fetch && git checkout tags/$RELEASE -b release
BRANCH='release'
fi

if [ $DB == "remove" ]; then
rm -rf $BIN_PATH/output-directory
echo "remove db success"
Expand All @@ -112,50 +130,50 @@ elif [ $APP == "FullNode" ]; then
START_OPT=""
fi

JVM_OPT="-Xmx$HEAP_SIZE -XX:+HeapDumpOnOutOfMemoryError"

count=1
while [ $count -le 60 ]; do
while [ $count -le 360 ]; do
pid=`ps -ef |grep $JAR_NAME.jar | grep java | grep -v grep |awk '{print $2}'`
if [ -n "$pid" ]; then
kill -15 $pid
echo "kill -15 java-tron, counter $count"
sleep 1
sleep 5
else
echo "$APP killed"
break
fi
count=$[$count+1]
if [ $count -ge 60 ]; then
kill -9 $pid
if [ $count -ge 360 ]; then
echo "deploy failure because of kill process fails!"
exit 1
fi
done

echo "starting $APP"
cd $BIN_PATH
if [ $NET == "mainnet" ]; then
nohup java -jar "$JAR_NAME.jar" $START_OPT -c $CONF_PATH >> start.log 2>&1 &
echo "process : nohup java -jar $JAR_NAME.jar $START_OPT -c $CONF_PATH >> start.log 2>&1 &"
elif [ $NET == "testnet" ]; then
nohup java -jar "$JAR_NAME.jar" $START_OPT -c $CONF_PATH >> start.log 2>&1 &
echo "process : nohup java -jar $JAR_NAME.jar $START_OPT -c $CONF_PATH >> start.log 2>&1 &"
elif [ $NET == "privatenet" ]; then
nohup java -jar "$JAR_NAME.jar" $START_OPT -c $CONF_PATH --witness>> start.log 2>&1 &
echo "process : nohup java -jar $JAR_NAME.jar $START_OPT -c $CONF_PATH --witness >> start.log 2>&1 &"
fi

nohup java $JVM_OPT -jar $JAR_NAME.jar -c $CONF_PATH $START_OPT >> start.log 2>&1 &

pid=`ps ax |grep $JAR_NAME.jar |grep -v grep | awk '{print $1}'`
echo $pid

echo "application : $APP"
echo "pid : $pid"
echo "tron net : $NET"
if [ -z $pid ]; then
echo "run $JAR_NAME failed, please check your parameters"
exit 2
fi

echo "deploy path : $BIN_PATH"
echo "process : nohup java $JVM_OPT -jar $JAR_NAME.jar $START_OPT -c $CONF_PATH >> start.log 2>&1 &"
echo "pid : $pid"
echo "application: $APP"
echo "tron net : $NET"
echo "deploy path: $BIN_PATH"
echo "git commit : "`cd $BIN_PATH/$PROJECT; git rev-parse HEAD`
echo "git branch : $BRANCH"
echo "db path : $BIN_PATH/output-directory"
echo "log path : $BIN_PATH/logs"
echo "grpc port : $RPC_PORT"
echo "db path : $BIN_PATH/output-directory"
echo "log path : $BIN_PATH/logs"
echo "heap-size : $HEAP_SIZE"
echo "grpc port : $RPC_PORT"
if [ $APP == "SolidityNode" ]; then
echo "trust-node : $TRUST_NODE"
echo "trust-node : $TRUST_NODE"
fi
1 change: 1 addition & 0 deletions how_to_config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### This document is used to explain the features of configuration items in the *.conf file and help you understand how to use them.
Loading