智能
助手
最大化  清空记录 停止  历史记录
翻译选中文本
选中一段文本后进行翻译
名词解释
选中一段文本后进行名词解释
知识图谱生成
通过图谱展示知识信息
登录用户在知识浏览页面可用
答案生成
AI自动回答一个问答功能中的问题
登录用户在问答浏览页面,且问题开放回答中可用
知识摘要
自动为当前知识生成摘要
知识浏览页面可用
知识问答
针对当前知识进行智能问答
知识浏览面可用
   806  
查询码: 00000046
linux-swarm-bzz-挖矿搭建教程
作者: 文艺范儿 于 2021年07月09日 发布在分类 / 挖矿 ,于 2021年08月06日 编辑
bzz

以下操作都需要在root运行
sudo su - root

卸载

如果前期安装过,需要彻底卸载:

systemctl stop bee
systemctl stop bee-clef
dpkg -r bee
dpkg -r bee-clef

##注意备份,要是无用可以删除
rm -rf /etc/bee/
rm -rf /etc/bee-clef/
rm -rf /var/lib/bee/
rm -rf /var/lib/bee-clef/

安装

1、下载安装脚本

rm install-bee.sh  -f
wget -c https://beijing-wy.oss-cn-beijing.aliyuncs.com/bee/install-bee.sh
2、运行安装脚本
bash install-bee.sh
3、下载多节点配置文件到相应目录并,分别修改配置文件

mkdir /home/bee-node/
cd /home/bee-node/
rm bee.tar.gz -f
https://beijing-wy.oss-cn-beijing.aliyuncs.com/bee/bee.tar.gz
tar xf bee.tar.gz
cd bee

##修改配置
#111.111.111.111为机器外网IP,ws://222.222.222.222:18546为rpc+端口

sed  -i  s#111.111.111.111#自己外网IP#g  $(find ./ -type f -name "bee-*")
sed  -i  s#ws://222.222.222.222:18546#自己RPC地址#g  $(find ./ -type f -name "bee-*")

4、分别启动

./run-bee-1
./run-bee-2
...

5、查看日志

tail -199f  1.log
tail -199f  2.log
...

6、升级脚本

rm -f update-bee.sh
wget -c  https://beijing-wy.oss-cn-beijing.aliyuncs.com/bee/update-bee.sh
bash update-bee.sh

帮助

#查看已出票
curl -s localhost:1635/settlements | jq

#如何查看节点中的地址
curl -s localhost:1635/addresses | jq .ethereum

#如何查看节点中的余额
curl -s localhost:1635/chequebook/balance | jq

#如何判断一个节点是否正常运行
curl -s http://localhost:1633
返回Ethereum Swarm Bee
检查节点数大于0
curl -s http://localhost:1635/peers | jq '.peers | length'

#如何查看我有多少张已兑现的支票
可以在 etherscan 查看您的支票簿合同。
通过以下方式获取您的支票簿合同地址:
curl -s http://localhost:1635/chequebook/address


笔记
0人参与


 历史版本

备注 修改日期 修改人
格式调整 2021-08-06 22:31:19[当前版本] 文艺范儿
格式调整 2021-08-06 21:30:36 文艺范儿
格式调整 2021-08-06 21:29:13 文艺范儿
格式调整 2021-08-02 20:33:36 文艺范儿

  目录
    文艺知识分享平台 -V 5.2.5 -wcp