BZZ节点搭建教程:购买服务器、安装Docker、配置BZZ节点、启动节点、监控节点状态。
准备工作
1、硬件要求:至少2GB内存,4核CPU,硬盘空间至少50GB。
2、软件要求:Linux操作系统(推荐Ubuntu 18.04或更高版本),Docker,BZZ客户端。
安装Docker
1、更新系统软件包列表:
sudo aptget update
2、安装依赖:
sudo aptget install apttransporthttps cacertificates curl gnupgagent softwarepropertiescommon
3、添加Docker官方GPG密钥:
curl fsSL https://download.docker.com/linux/ubuntu/gpg | sudo aptkey add
4、设置稳定仓库:
sudo addaptrepository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release cs) stable"
5、更新软件包列表并安装Docker:
sudo aptget update sudo aptget install dockerce dockercecli containerd.io
6、启动Docker服务:
sudo systemctl start docker
7、设置Docker开机自启:
sudo systemctl enable docker
安装BZZ客户端
1、下载BZZ客户端:
wget https://github.com/SwarmCity/swarmcity/releases/download/v1.0.0/bzz_linux_amd64 O bzz_client
2、赋予执行权限:
chmod +x bzz_client
搭建BZZ节点
1、创建工作目录:
mkdir ~/bzz_node && cd ~/bzz_node
2、初始化BZZ节点:
./bzz_client init name my_bzz_node password my_password token TOKEN_ID rpcaddr YOUR_RPC_ADDRESS wsaddr YOUR_WS_ADDRESS tcpport YOUR_TCP_PORT httpport YOUR_HTTP_PORT apiport YOUR_API_PORT datadir YOUR_DATA_DIR logfile YOUR_LOGFILE maxpeers YOUR_MAXPEERS natpmp YOUR_NATPMP natpunch YOUR_NATPUNCH nodiscovery YOUR_NODISCOVERY verbosity YOUR_VERBOSITY network YOUR_NETWORK syncmode YOUR_SYNCMODE gaspricelimit YOUR_GASPRICELIMIT gaspricetarget YOUR_GASPRICETARGET gaslimit YOUR_GASLIMIT gastarget YOUR_GAS TARGET minerthreads YOUR_MINERTHREADS cputhreads YOUR_CPUTHREADS mempoolsize YOUR_MEMPOOLSIZE txqueuelen YOUR_TXQUEUELEN dbcache YOUR_DBCACHE maxconnetions YOUR_MAXCONNECTIONS maxsubscriptions YOUR_MAXSUBSCRIPTIONS maxpendingblocks YOUR_MAXPENDINGBLOCKS maxpendingtxns YOUR_MAXPENDINGTXNS maxblocktime YOUR_MAXBLOCKTIME maxblockpropagation YOUR_MAXBLOCKPROPAGATION maxblocktxns YOUR_MAXBLOCKTXNS maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour_maxblocktxnsperaccount YOUR_MAXBLOCKTXNSPERACCOUNT maxblocktxnsperaccountyour
原创文章,作者:K-seo,如若转载,请注明出处:https://www.kdun.cn/ask/535285.html