# Aleo 第三期测试网节点搭建

By [Aczddd](https://paragraph.com/@aczddd) · 2022-11-12

---

1\. 环境要求
========

配置要求(搬的官方文档要求的配置):

*   **CPU**: 16-cores (32-cores preferred)
    
*   **RAM**: 16GB of memory (32GB preferred)
    
*   **Storage**: 128GB of disk space
    
*   **Network**: 10 Mbps of upload **and** download bandwidth
    

操作系统:

本次安装使用的是Ubuntu 22.04

2\. 安装
======

2.1 安装 Rust
-----------

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

2.2 编译安装
--------

克隆仓库

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

进入 snarkOS 目录

    cd snarkOS
    

使用 Ubuntu 需要执行下面的命令

    ./build_ubuntu.sh
    

安装

    cargo install --path .
    source ~/.bashrc
    

3\. 运行节点
========

3.1 运行 Client 节点(非必要)
---------------------

snarkOS 目录下执行

    nohup ./run-client.sh  >client.log 2>&1 &
    

3.2 运行 Prove 节点
---------------

创建账号

    snarkos account new
    

保存输出

    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
    

运行 Prove 节点

    PROVER_PRIVATE_KEY=<替换上一步的Private Key> nohup ./run-prover.sh  >prove.log 2>&1 &
    

示例

    PROVER_PRIVATE_KEY=APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx nohup ./run-prover.sh  >prove.log 2>&1 &
    

查看日志

    tail -f prove.log
    

如下代表正常

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

3.3 查看积分等信息
-----------

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

搜索3.2步骤生成的地址即可

有问题可以通过 twitter 联系我， twitter:

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

---

*Originally published on [Aczddd](https://paragraph.com/@aczddd/aleo)*
