# ALEO节点运行教程

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

---

一、选择服务器

[https://www.vultr.com/?ref=9287268-8H](https://www.vultr.com/?ref=9287268-8H)

通过上面的链接进去，注册账号，充十刀（可以用支付宝），可以嫖一百刀的服务器，理论上邮箱够多，一个月就只需要20刀的成本。

注册完了之后，然后开始选服务器。

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

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

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

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

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

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

到此服务器就选择好了。

会跳转到下图类似的页面，点击进去。

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

记住以下ip username password.

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

大概要等个十分钟这样子才可以连接，如果不会连接服务器的可以看下面文章的第三步。

[https://mirror.xyz/qianjue.eth/kKI9ouoHSccrrqR8VjtmSLGixbxcCrtzcxZqtaVht4c](https://mirror.xyz/qianjue.eth/kKI9ouoHSccrrqR8VjtmSLGixbxcCrtzcxZqtaVht4c)

二、配置环境

（1）安装rust 环境

输入 curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs) | sh 然后按回车

跳出输入框的时候选择1 然后继续按回车。

等屏幕不动的时候，输入

source "$HOME/.cargo/env" 然后按回车

（2） 安装aleo

输入 git clone [https://github.com/AleoHQ/snarkOS.git](https://github.com/AleoHQ/snarkOS.git) --depth 1 按回车

输入 cd snarkOS 按回车

输入 ./build\_ubuntu.sh 按回车

等屏幕不动的时候 继续

输入 sudo ufw allow 4133 按回车

输入 sudo ufw allow 3033 按回车

输入 cargo install --path . 按回车

等屏幕不动的时候 继续

aleo 就安装好了。

（3）生成账户

输入 snarkos account new 按回车(下面的东西一定要记住，private key就是私钥，address 是你的地址。)

Private Key APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

View Key AViewKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Address aleo1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

（4） 运行节点

输入 screen ./run-prover.sh 按回车

然后会跳出来让你输入私钥的框，输入上面的私钥后按回车。

等待一小时这样子。

下面的这个网站输入你的 地址，可以看到自己有没有获得积分 。

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

以上就是搭建的过程，遇到问题可以来推特找我。

[https://twitter.com/qianjue\_eth](https://twitter.com/qianjue_eth)

---

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