如何在 SUI 网络上安装完整节点 — TESTNET WAVE 3

post image

Sui 是第一个从头开始设计的第 1 层区块链,旨在使创作者和开发者能够构建满足 web3 中下一个十亿用户的体验。

官网:https://sui.io/

Sui Wave 3 申请表:

https://docs.google.com/forms/d/e/1FAIpQLSeipBiQAqwYYtkStBhdtZ-T7luMEy1lRadJCVdulEgfg2cTCQ/viewform

在Sui Wave 2的时候我就写过很多关于W3的预测,这次W3的节点是向公众开发的,所以如果你懂节点搭建,尽量去申请。

往期内容:

一、教程前

你可以通过两种方法进行挖矿:

1、自己的电脑挖,最低配置如下:

CPU:4vCore

内存:8 GB

SDD:60GB

操作系统:Ubuntu 20.04

2、云主机+SSH工具挖矿

这种方法需要你租用VPS或者机场作为云主机,云主机请切换成Ubuntu系统;

SSH工具:小白用户建议使用Xshell或者Finalshell.

二、如何连接到 VPS

MacOs:如果你用的是这个操作系统,你只需要用自己的设备与 SSH 连接;

Windows:如果你是Win,有很多工具可以用,比如puttyMobaXtermXshell

1、下载一个应用(本教程以putty为例,小白用户建议使用Xshell或Finalshell)

2、复制云服务器IP链接

post image

3、点击“接受”,输入云服务器的用户名和密码

注意:要粘贴你已经复制的任何命令,只需右键单击要粘贴命令即可

post image
post image

4、再次输入密码,并输入新密码。

post image

以上就是云服务器+SSH组合的步骤,下文所有步骤都在SSH工具中进行(小白用户建议使用Xshell或Finalshell)

三、挖矿前准备

1、更新升级服务器

在开始之前,需要更新升级服务器,将一下命令符复制到SSH工具中,回车(小白用户建议使用Xshell或Finalshell)

sudo apt update && sudo apt upgrade -yupdate && sudo apt upgrade -y
post image

使用以下命令,下载其他工具

apt-get update \-get update \
    && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y --no-install-recommends \
    tzdata \
    git \
    ca-certificates \
    curl \
    build-essential \
    libssl-dev \
    pkg-config \
    libclang-dev \
    cmake
post image

安装 RUST:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y'=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
post image
source $HOME/.cargo/env
post image
post image
apt-get install screenget install screen
post image

输入Y,回车

post image

四、开放端口

Go to the root

cd $home
post image

然后使用这个命令,开放端口

apt install ufw -y 
ufw allow ssh 
ufw allow https 
ufw allow http 
ufw allow 9000
ufw allow 9184
ufw enable
post image

回车

post image

输入Y,继续回车

五、安装 Sui 的配置文件

cargo install --locked --git https://github.com/MystenLabs/sui.g​​it --branch testnet sui sui-node
post image

六、集成开发环境

cargo install --git https://github.com/move-language/move move-analyzer --features "address20""address20"
post image

七、领取测试网代币

创建钱包:

sui client active-addressaddress
post image

输入Y,回车

post image

继续Enter

post image

输入“0”,回车

post image

如下所示,将出现的所有信息记录在你的备忘里面,后面要用

post image

然后去项目的 Discord ,通过验证后(很难验证,需要不停换IP),到testnet-faucet 频道,然后使用以下命令索取代币:

!faucet xxxxxxxxxxxxxxxxxxxxxxxxxxxx

将 xxxxxxxxxxx 替换为的地址钱包,如下所示:

!faucet 0x3abfa9260eb6b82f8680fd0b6e5e724847324856
post image
post image

八、下载源代码

git clone https://github.com/MystenLabs/sui.git --branch testnetclone https://github.com/MystenLabs/sui.git --branch testnet
post image

九、配置你的节点

cd sui
post image

将 Sui 设置为 git 远程:

git remote add upstream https://github.com/MystenLabs/sui
post image

同步你的fork:

git fetch upstreamfetch upstream
post image

配置全节点模板:

cp crates/sui-config/data/fullnode-template.yaml fullnode.yaml

下载 devnet :

curl -fLJO https://github.com/MystenLabs/sui-genesis/raw/main/testnet/genesis.blob

十、启动全节点

转到 sui 存储库:

cd sui

然后

screen -S sui

最后

cargo run --release --bin sui-node -- --config-path fullnode.yaml--release --bin sui-node -- --config-path fullnode.yaml
post image

到了这一步,你的全节点算是搭建完成了。

现在按 CTRL+A+D 分离屏幕

后面的流程就不需要代码命令,所以你可以关闭SSH

十一、检查全节点

登录:https://node.sui.zvalid.com/

post image
post image

不要忘记注册成为 testnet wave 03 激励的验证者,

Sui Wave 3 申请表:

https://docs.google.com/forms/d/e/1FAIpQLSeipBiQAqwYYtkStBhdtZ-T7luMEy1lRadJCVdulEgfg2cTCQ/viewform

十二、结束语

Sui Wave 3 是该项目最后一期测试网交互活动了,也就是说这是我等最后一次轻松拿Sui空投的机会,错过这次机会以后可能就没有了。

来源:

加密狗推特:https://twitter.com/JiamigouCn

电报:https://t.me/JIAMIGOU002