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.
1. run.sh root 用户会遇到没有 /usrllocal/bin 路径的问题 2. 非root用户没有权限创建根目录 3. start模板错误 4. build.sh 中 make install 会安装一个由动态内存的执行文件,所以采用直接拷贝
- Loading branch information
WEBANK\kimjin
committed
Dec 21, 2017
1 parent
c3bfba5
commit 4f4bd91
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 & | ||
|