forked from bcosorg/bcos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bcosorg#84 from JKingdom/master
修改sample/run.sh 一键运行脚本
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,8 @@ fi | |
|
||
make -j2 | ||
|
||
make install | ||
# sudo make install | ||
sudo cp eth/bcoseth /usr/local/bin/ | ||
|
||
cd .. | ||
cd ./tool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
#!/bin/sh | ||
|
||
if [ -d "/bcos-data" ]; then | ||
sudo rm -rf /bcos-data | ||
fi | ||
|
||
if [ `whoami` = "root" ];then | ||
export PATH="${PATH}:/usr/local/bin" | ||
else | ||
user=`whoami` | ||
group=`groups` | ||
sudo mkdir /bcos-data | ||
sudo chown ${user}:${group} /bcos-data | ||
fi | ||
|
||
node init.js node0.sample node1.sample | ||
chmod +x /bcos-data/node0/start0.sh | ||
chmod +x /bcos-data/node1/start1.sh | ||
sh /bcos-data/node0/start0.sh & | ||
sh /bcos-data/node1/start1.sh & | ||
sh /bcos-data/node1/start1.sh & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
bcoseth --genesis {genesis} --config {config} | ||
nohup bcoseth --genesis {genesis} --config {config} >> out.log 2>&1 & | ||
|