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

By [Web3Study](https://paragraph.com/@rabbitverse) · 2023-02-25

---

![](https://storage.googleapis.com/papyrus_images/7b07fa3c68f176199f51202da8b18af24f01572533a5887fde7d35ede5ee4b64.webp)

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

官网：[https://sui.io/](https://sui.io/)

Sui Wave 3 申请表：

[https://docs.google.com/forms/d/e/1FAIpQLSeipBiQAqwYYtkStBhdtZ-T7luMEy1lRadJCVdulEgfg2cTCQ/viewform](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，有很多工具可以用，比如**[**putty**](https://www.putty.org/) 、[**MobaXterm**](https://mobaxterm.mobatek.net/)、[**Xshell**](https://www.netsarang.com/en/xshell/)

1、下载一个应用（本教程以**putty**为例，小白用户建议使用Xshell或Finalshell）

2、复制云服务器IP链接

![](https://storage.googleapis.com/papyrus_images/419b6e929569ffc1b30c02a6a145ce3b73dd15412796187fd41025f9c04291bd.webp)

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

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

![](https://storage.googleapis.com/papyrus_images/f0bd7bae0c4078bdc889f640549f6f2fa1da6c7fcaf669ff979b89bc07d80fe2.webp)

![](https://storage.googleapis.com/papyrus_images/4315b3c7e932ceb9762a7f43ccda800477ad037075fae7653b9993a1729871ff.webp)

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

![](https://storage.googleapis.com/papyrus_images/e06db152d91df6ace16436f283f23cafab6307d85e50a25fa6f5c6a25c8131e7.webp)

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

三、挖矿前准备
-------

**1、更新升级服务器**

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

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

![](https://storage.googleapis.com/papyrus_images/76ae7c5a63833cdd109fd3c3031c84c48a39cb70570a7afece13d5ad936cc55f.webp)

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

    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
    

![](https://storage.googleapis.com/papyrus_images/05098461e0a5f98e950696876f74908ae6aa5dd6fba5a5e8d3aff517c268f83d.webp)

安装 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
    

![](https://storage.googleapis.com/papyrus_images/ac87afc16fe983c393fc56639a66f2bfb3bbc07384f8e79f41a4cee2da0e1bb0.webp)

    source $HOME/.cargo/env
    

![](https://storage.googleapis.com/papyrus_images/ab318166e971faee760e9cf3b1cdd7955d8b1ef8f54db50d51756cbf39b55499.webp)

![](https://storage.googleapis.com/papyrus_images/76725a573d6d61a689981c18c3652d115e71fef7047a0ea4e49bb972e67f99cd.webp)

    apt-get install screenget install screen
    

![](https://storage.googleapis.com/papyrus_images/f89bc6d23818ba2c2b79e10c839bceb632e30562d4e28dc920817b3f57c36717.webp)

> 输入Y，回车

![](https://storage.googleapis.com/papyrus_images/5cce4c11e0d3eec7ae1f1146f6f24a5dd20db9ff3e0a0338e6f5ce020de876b8.webp)

四、开放端口
------

Go to the root

    cd $home
    

![](https://storage.googleapis.com/papyrus_images/06a45dd7a9bc3e779ef2dc13181e16026e146bd961d7697d0c76c6fccd9a10bc.webp)

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

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

![](https://storage.googleapis.com/papyrus_images/6a21dac93fdb59010f23ffd8968f8715cc811edda3ab21f6d3394528bb9df4f9.webp)

> _按_**_回车_**

![](https://storage.googleapis.com/papyrus_images/c32887908845ac64e87fb34cb764bfc37ee31a501d3574d005602d6e9353fe87.webp)

> 输入Y，继续回车

五、安装 Sui 的配置文件
--------------

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

![](https://storage.googleapis.com/papyrus_images/b2b545abd3673df5cd85316485eff2a107dab88d66a9d13a087878f497fc028f.webp)

六、集成开发环境
--------

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

![](https://storage.googleapis.com/papyrus_images/402efd9b8641b8759a9afdfadb350f677bdd7ecc63c866812ed4f27c2c740c15.webp)

七、领取测试网代币
---------

创建钱包：

    sui client active-addressaddress
    

![](https://storage.googleapis.com/papyrus_images/51557723b4f9f2ba43beb4f8581f12fa6075c9a20543fc4b12f66c2aea3fa35b.webp)

> 输入Y，回车

![](https://storage.googleapis.com/papyrus_images/15c83e9eb5aa29e7c7e98ad65bad1e153138035dce3b4796b008a09361f3fc81.webp)

> **_继续Enter_**

![](https://storage.googleapis.com/papyrus_images/58d9ce0a62910207bfb2d563b6f3bac05f4c1d1df6f23582b236ff4d3f6fc59e.webp)

> 输入“0”，回车

![](https://storage.googleapis.com/papyrus_images/f32b895fb2e5a02fedf963f1819b34987b8b19e2525e7e02548d22a45b8dc54b.webp)

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

![](https://storage.googleapis.com/papyrus_images/aee8d780737442b3b41c93d8513b674f813f4d47dffb7507287111be3b3a93f2.webp)

然后去项目的 [Discord](https://discord.gg/sui) ，通过验证后（很难验证，需要不停换IP），到testnet-faucet 频道，然后使用以下命令索取代币：

    !faucet xxxxxxxxxxxxxxxxxxxxxxxxxxxx
    

将 xxxxxxxxxxx 替换为的地址钱包，如下所示：

    !faucet 0x3abfa9260eb6b82f8680fd0b6e5e724847324856
    

![](https://storage.googleapis.com/papyrus_images/a36c540f4c623fcf4144df3011b6ed15cbc9032329c8afd87ef5cb0c995e73df.webp)

![](https://storage.googleapis.com/papyrus_images/a71d67aa4c04375fe8b71126ddebddb7fa3a72ac9ef1dc4da363c99f65bcfc2a.webp)

八、下载源代码
-------

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

![](https://storage.googleapis.com/papyrus_images/96e3639ac2b9547f8412d3347c10580119958fe10a4abe524c9e953186292d6e.webp)

九、配置你的节点
--------

    cd sui
    

![](https://storage.googleapis.com/papyrus_images/50d77f25e7a317890f8d346bf65e95ba9eb2c5c2fbe66ed28deb3588aa293b59.webp)

将 Sui 设置为 git 远程：

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

![](https://storage.googleapis.com/papyrus_images/f88b522e9db208b27d1f14ad8bbf898a553d3e434b542510a8f9f08793666cf5.webp)

同步你的fork：

    git fetch upstreamfetch upstream
    

![](https://storage.googleapis.com/papyrus_images/c16b53cf37d486b828b455f4af7495a219f68ca5b267d440489f81b679687363.webp)

配置全节点模板：

    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
    

![](https://storage.googleapis.com/papyrus_images/0d6310665b0d75445591862f613624987957d8abd8e4d4058e3a70ccd85e1c68.webp)

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

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

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

十一、检查全节点
--------

登录：[https://node.sui.zvalid.com/](https://node.sui.zvalid.com/)

![](https://storage.googleapis.com/papyrus_images/1c3472cafe27b7e7afb550e97bd718d50050068b861d0c0de592e1b00cbe8fc6.webp)

![](https://storage.googleapis.com/papyrus_images/8465f37431ae38cc9efa17ba340ecd5186181b78247e4f0d458e88ca68cff388.webp)

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

Sui Wave 3 申请表：

[https://docs.google.com/forms/d/e/1FAIpQLSeipBiQAqwYYtkStBhdtZ-T7luMEy1lRadJCVdulEgfg2cTCQ/viewform](https://docs.google.com/forms/d/e/1FAIpQLSeipBiQAqwYYtkStBhdtZ-T7luMEy1lRadJCVdulEgfg2cTCQ/viewform)

十二、结束语
------

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

来源：

加密狗推特：[https://twitter.com/JiamigouCn](https://twitter.com/JiamigouCn)

电报：[https://t.me/JIAMIGOU002](https://t.me/JIAMIGOU002)

---

*Originally published on [Web3Study](https://paragraph.com/@rabbitverse/sui-testnet-wave-3)*
