# a le o测试3节点搭建 非脚本附搭建虚拟机教程 官方简化版

By [kkkmoat](https://paragraph.com/@kkkmoat) · 2022-11-13

---

第一步需要购买虚拟机：
-----------

[https://www.vultr.com/?ref=9286291](https://www.vultr.com/?ref=9286291)

### 打开以后注册

![](https://storage.googleapis.com/papyrus_images/5bda8e0ec29cf31e0b8c5dca23650cf0307385271f220828fa1f92267aedce62.png)

### 注册完成点击Products

![](https://storage.googleapis.com/papyrus_images/277df78a361cbcd51a54ece8f2aa3ca8206c72ced0c01ca3b88ea0223a4a9def.png)

### 点击部署deploy now

![](https://storage.googleapis.com/papyrus_images/8831ef2433ef4af271836208a42cd6ae9109a17a7f375257dc14e003753db3dd.png)

### Choose Sever：选择Cloud Compute

### CPU & Storage Technology：选择AMD

![](https://storage.googleapis.com/papyrus_images/045e74e27cfa5932eb4684230da6cb9e60c6e62f56193b101c2c0c2fc87559ca.png)

### Sever Location：选择美国一个地方就行

![](https://storage.googleapis.com/papyrus_images/0a1b80c7056a9b76a9e0a2237ac23512c07681c2cc0727b2f40172c4592d608b.png)

### Sever Image：选择ubuntu的20系统

![](https://storage.googleapis.com/papyrus_images/53e1ba765a81fe3ecc4e2fac4863ce16214609cbcbf2a91af9b813b780c86e6c.png)

### Sever Size选择：96美金一个月的

### 记得关闭备份功能，如下图，点一下on变成off

![](https://storage.googleapis.com/papyrus_images/129d9a40b28f9e4479534377f68fecf16f922ff08d6ead3dad8e0b808f32d3b8.png)

### 然后点击Deploy Now，付款方式选择最后一个，用支付宝扫码支付10美金。

### 成功以后，稍等几分钟再点击products，等看到你的服务器显示running时候就可以打开服务器了。

![](https://storage.googleapis.com/papyrus_images/b6a96900f8ff14e8e11a039001747cbcc62e264903f8be8a318a99cb93519e33.png)

### 然后点击三个点，打开服务信息

![](https://storage.googleapis.com/papyrus_images/58fdb5dce3896a7f0d11bbdc3eab2d6aad5d55e8f2127e63729db489dfd5480b.png)

### 点击进入控制台

![](https://storage.googleapis.com/papyrus_images/aa3548b82980cf62ce42513920e9407baa9682f2739090c12c48f29a0b76c888.png)

进入控制台后，输入root用户名登陆，密码在网页里点击复制。然后登陆。

![](https://storage.googleapis.com/papyrus_images/0e9789f37a91ecba2eaac6046324d538fb1829ca4efc1fa11d883b3cd2e1eb1f.png)

登陆成功后输入以下命令：

然后输入命令安装rust：

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    

安装完以后，输入代码，利用git克隆这个库：

    git clone https://github.com/AleoHQ/snarkOS.git --depth 1
    

进入OS目录：

    cd snarkOS
    

运行sh：（等待个10多分钟也许）

    ./build_ubuntu.sh
    

最后，安装OS：

    cargo install --path .
    

接下来，要启动客户端节点，请从`snarkOS`目录中运行：

    ./run-client.sh
    

接下来生成Aleo账户地址：

    snarkos account new
    

这将在终端中输出一个新的 Aleo 帐户。

\*\*请记得保存账户私钥和查看密钥。\*\*以下是示例输出：

     Attention - Remember to store this account private key and view key.
    
      Private Key  APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  <-- Save Me And Use In The Next Step
         View Key  AViewKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  <-- Save Me
          Address  aleo1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  <-- Save Me
    

接下来，要启动一个证明节点，从`snarkOS`目录中运行：

    ./run-prover.sh
    

出现提示时，输入您的 Aleo 私钥：

    Enter the Aleo Prover account private key:
    APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    

### 至此，教程结束，可以关闭服务器窗口，但不要关闭服务器！！！

### 过大概1-2小时，可以前往官网区块链浏览器输入自己的钱包地址查看有没有爆块得到积分奖励：

[https://www.aleo123.io/](https://www.aleo123.io/)

如果有就会显示数量，如果没有请重置虚拟机再从头到尾试一次，如果还有什么其他问题，可以点击下面的推特私聊我！
-----------------------------------------------------

[https://twitter.com/Kkkmoat](https://twitter.com/Kkkmoat)

---

*Originally published on [kkkmoat](https://paragraph.com/@kkkmoat/a-le-o-3)*
