# 融资2亿美元Aleo | 手把手教你搭建运行Aleo服务器节点

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

---

官方Github几个小时前更新了，看上去可以运行testnet3第二阶段了，我们也可以进行测试，准备好正式公告前的工作。

背景介绍
----

Aleo 是第一个提供完全私有应用程序的平台。

Aleo 通过利用去中心化系统和零知识加密来保护网络上的用户数据来实现这一目标。Aleo 的核心是为用户和应用程序开发人员提供具有绝对隐私的无限计算。

该团队由来自谷歌、亚马逊和 Facebook 等公司以及加州大学伯克利分校、约翰霍普金斯大学、纽约大学和康奈尔大学等研究型大学的世界级密码学家、工程师、设计师和操作员组成。

最新一轮投资于今年4月，由 Andreessen Horowitz (a16z) 领投，Placeholder VC、Galaxy Digital、Variant Capital 和 Coinbase Ventures 参投。其他值得注意的投资者包括 Polychain Capital、Slow Ventures、Dekrypt Capital、Scalar Capital、a\_capital、zkValidator、Balaji Srinivasan 和由 Joseph Lubin 创立的新风险基金 Ethereal Ventures。 

官网：

[https://www.aleo.org/](https://www.aleo.org/)

官方Discord:

[https://discord.com/invite/aleohq](https://discord.com/invite/aleohq)

官方Twitter:

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

准备工作
----

服务器配置：

*   CPU：16核（推荐32核）
    
*   内存：16G（推荐32G）
    
*   硬盘：128G
    
*   网络：10M上传和下载
    

推荐云服务器：google 和aws ,阿里云用了一晚上暂时没问题。

这里用阿里云做例子，如果你已经有云服务器，可以直接看后面教程

阿里云官网：[aliyun.com](https://www.aliyun.com/minisite/goods?userCode=lwzdwn5g&share_source=copy_link)

如果你是新用户先要进行注册。

之后来到首页点击产品选择云服务器ECS

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

进入后点击立即购买

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

进入后选择以下配置，选择新加坡或者香港节点下载会更快，16核 16G最低配置

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

选着系统Ubuntu 22.04, 128G硬盘 然后点击下一步

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

网络选择10M

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

系统配置：自定义密码 然后输入密码

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

勾选条款创建实例

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

创建成功点击管理控制台

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

接下来要配置网络安全组

点击实例的ID进入详情

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

选择安全组，再选择配置规则

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

按照如下顺序，选择手动添加，再选择端口，输入4133和3033 源选着0.0.0.0/0 点击保存

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

再回到实例列表页面，选着远程连接

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

我这里使用的自带的workbench连接，你也可以直接用ssh连接

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

输入之前创建实例时的密码

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

登陆成功

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

安装运行部分
------

官方Github代码

[https://github.com/AleoHQ/snarkOS/](https://github.com/AleoHQ/snarkOS/)

1.安装rust

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

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

中间会让你选择，输入1

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

安装完成后输入

    source "$HOME/.cargo/env"
    

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

更新apt

    apt update 
    

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

安装git

    apt install git -y
    

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

clone 官方代码

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

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

转到下载的文件中

    cd snarkOS
    

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

安装依赖项，开始下载（此过程有点久安装中途可能会有个弹窗问你是否重启，esc取消即可）

    ./build_ubuntu.sh
    

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

如果你没有snarkos的账户，执行下面指令来创建一个账户（已有账户可以跳过这步）

    snarkos account new
    

这时候你会得到一个新的账户，会有你的地址和私钥，请记录保存好他们，私钥下一步会用到

    Private Key  APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx   
    View Key  AViewKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
    Address  aleo1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
    

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

运行一个证明节点

    ./run-prover.sh
    

接着会让你输入私钥，就是刚才创建的

输入完成点击回车

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

等待运行

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

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

运行成功

总结
--

他们更新github我就第一时间做了测试，运行了一晚上，一开始有一些问题，比如无法同步块。不过团队还在改进更新，应该第二阶段不远了，感兴趣可以自己尝试。

如果这篇文章对你有什么帮助，或者有什么建议或者意见都可以联系我推特，关注推特不定期更新。

[https://twitter.com/dapaopao\_eth](https://twitter.com/dapaopao_eth)

---

*Originally published on [dapaopao](https://paragraph.com/@dapaopao/2-aleo-aleo)*
