Muon搭建测试网节点

项目介绍

Muon是一个去中心化的节点网络,使应用程序能够在链上,链下和跨链上运行。其技术允许项目构建可定制的 web3 解决方案,从而实现超越区块链现有限制的可能性。为了激励 ALICE 测试网上的公共节点,所有运行 ALICE 节点的参与社区成员将有资格获得先锋金丝雀网络上的免费节点。这种“节点掉落”意味着符合条件的用户将获得运行节点所需的(锁定)$PION代币抵押品,这意味着他们可以操作先锋节点并免费获得网络奖励,而无需投资自己的资金

官方推特:

https://twitter.com/muon_net

dc:

https://discord.gg/muon

推荐的要求

  • 4GB内存、双核CPU、20GB存储空间的Linux服务器

注意事项

  • NB1: Muon Nodes need to have high availability and low downtime. Thus, while running a node on a PC/laptop without a valid IP is possible, it is not generally recommended. Moreover, receiving the "node-drop" reward (i.e. running a node on the Canary network without staking) depends on the nodes' up time and if a node is not up, it will be deprived of the reward.

    NB2: The following installation process is currently tested on Linux. Installing a node on a server with other operating systems may be possible but not officially supported yet.

以上为官方原话,即推荐使用云服务器运行,使用个人pc可能无法保持长时间运行从而导致无法获得奖励,推荐使用linux系统,其他系统还未正式支持

服务器购买

这边以vultr为例,如果有更便宜的服务器厂商也可自行选择

https://www.vultr.com/

post image

登陆成功后创建服务器

post image

选择普通云计算服务器,上一代的cpu,怎么便宜怎么选

post image

官方推荐的双核cpu以及4g内存,个人习惯选择了centos系统

post image

记得把自动备份关掉,会便宜一些,算下来一个月20刀。

post image

购买成功后就可以看见服务器在创建状态

post image

创建成功后点击Server Details查看服务器状态

post image

里面包含服务器IP,账号,密码。

post image

现在需要下载一个xshell来连接服务器

下面是xshell官网下载链接,填写姓名邮箱后在邮箱可收到下载链接。

https://www.xshell.com/zh/free-for-home-school/

安装完软件后打开,新建一个会话,填入IP地址,确定

post image

选中刚刚新建的会话,点击链接。

post image

输入账号密码,可以点击保存用户名与密码,下次就不用再输入了。

post image
post image

登陆成功后就可以开始安装

post image

正式安装

以Centos为例,如果安装的是Centos系统,直接对照着下面的命令复制运行就可以了

#安装git
yum -y install git

#安装docker存储驱动的依赖包
dnf install -y device-mapper-persistent-data lvm2

#添加docker源
dnf config-manager --add-repo=https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

#安装docker
dnf install -y docker-ce --nobest


#下载 Docker Compose 的当前稳定版本:
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

#执行权限应用于二进制文件:
sudo chmod +x /usr/local/bin/docker-compose

#创建软链:
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

#测试是否安装成功:
docker-compose --version

#启动docker
sudo systemctl start docker

#拉取Github上的Moun存储库
git clone https://github.com/muon-protocol/muon-node-js.git --recurse-submodules --branch testnet

#切换目录
cd muon-node-js

#构建Moun节点
docker-compose build

#运行节点
docker-compose up -d

运行节点后在浏览器打开

http://你的服务器IP:8000/status

这里的address跟peerId是等会需要用到的

post image

打开下面链接

https://alice.muon.net/join/

连接钱包

post image

如果没有测试网的bnb可以去水龙头领取一些

post image

Mint1000个alice

post image

Mint完成后填入刚刚的address跟peerId

post image

添加完成之后再打开

http://你的服务器IP:8000/status

如果节点添加成功,可以看到isOnline状态显示为true

post image

参考于官方文档:

https://docs.muon.net/muon-network/muon-nodes/joining-the-testnet-alice