# SUI节点搭建教程 **Published by:** [Calvin](https://paragraph.com/@selltome/) **Published on:** 2022-08-07 **URL:** https://paragraph.com/@selltome/sui ## Content 1. 购买服务器 最低配置要求: CPU:2核 内存:8GB 硬盘存储:≥50GB 打开9000&9184端口 2. 使用docker运行全节点 Windows系统进入CMD SSH到服务器或阿里云远程连接 输入密码 2.1 安装dockercurl -sSL https://get.docker.com | sh sudo usermod -aG docker $USER && sudo su $USER 2.2 安装docker composesudo curl -SL https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose 2.3 检查安装是否成功docker -v && docker-compose -v 2.4查看docker运行状态systemctl status docker -l 3. 创建SUI目录mkdir -p ~/sui/devnet && cd ~/sui/devnet 4. 下载配置文件 4.1下载 docker-compose 配置文件wget https://raw.githubusercontent.com/MystenLabs/sui/main/docker/fullnode/docker-compose.yaml 4.2 下载全节点配置文件wget https://github.com/MystenLabs/sui/raw/main/crates/sui-config/data/fullnode-template.yaml 4.3下载创世blobwget https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob 4.4修改监听地址:sed -i 's/127.0.0.1/0.0.0.0/' fullnode-template.yaml 5. 启动节点cd ~/sui/devnet && docker-compose up -d 6. 测试 获取最近的5笔交易:curl --location --request POST 'http://127.0.0.1:9000/' --header 'Content-Type: application/json' --data-raw '{ "jsonrpc":"2.0", "id":1, "method":"sui_getRecentTransactions", "params":[5] }' 如输出:{"jsonrpc":"2.0","result":[],"id":1} 等类似的json格式内容,则节点已成功启动https://node.sui.zvalid.com/ 输入公网IP地址点击connect Node Health ok 搭建完成后按要求填写表单 https://airtable.com/shr3phh3FCZYhZUDF 韭菜圆桌派 YouTube: https://www.youtube.com/c/%E9%9F%AD%E8%8F%9C%E5%9C%86%E6%A1%8C%E6%B4%BE BiliBili: https://space.bilibili.com/486582139?spm_id_from=333.337.0.0 WX群:JCYZP01 TG群:https://t.me/+vtgwZ8J89vhjODRl 推特:https://twitter.com/979_eth ## Publication Information - [Calvin](https://paragraph.com/@selltome/): Publication homepage - [All Posts](https://paragraph.com/@selltome/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@selltome): Subscribe to updates - [Twitter](https://twitter.com/979_eth): Follow on Twitter