# Aleo 三测2阶段教程

**Aleo 正在网络上构建真正个人化和真正私密的用户体验 隐私保护技术将重塑我们查看和使用数据的方式。 Aleo是零知识密码学为安全、合规和公平的工作量证明（POW）网络奠定了基础的隐私公链**

<figure><img src="https://96026046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfqzYKQFbpUOSwrctnLFd%2Fuploads%2FfE2lLDDQz3nJKjT1udk8%2F607e2e0ca878c72b82391be4_discover-aleo.png?alt=media&#x26;token=846afd3b-998a-4133-ac6b-63e0206ffe62" alt=""><figcaption></figcaption></figure>

**准备一台ubuntu服务器，使用冷门地区的服务器更佳，配置如下**

**CPUs: 16**

**RAM: 32GB**

**Storage: 150GB**

**OS：Ubuntu 20.04**

**1、本教程为linux系统 ssh root@服务器ip 回车确认，如果出现提示”**&#x41;re you sure you want to continue connecting (yes/no/\[fingerprint])?“

**输入** yes **回车确认**

**窗口等待输入服务器密码，回车确认。进入服务器**

**运行成功结果**

**2、确认当前用户是root，如果已经是root用户请略过 开启root用户，为root用户创建密码，输入两次密码**

**sudo passwd root 使用下面命令，切换到root用户，在输入刚才创建的密码**

su root

**3、安转Rust v1.64+ 使用下面命令，自动安装rust**

curl --proto '=https' --tlsv1.2 -sSf <https://sh.rustup.rs> | sh **出现下面的界面时，选择1，默认安装**

<figure><img src="https://96026046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfqzYKQFbpUOSwrctnLFd%2Fuploads%2FZr9zywAOjagYrFxOQe3H%2F9c315a1da6315594cd979afd6cea92e.png?alt=media&#x26;token=3b297af7-557a-446b-b932-5ce329f3b86a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://96026046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfqzYKQFbpUOSwrctnLFd%2Fuploads%2FHP9hnDIc44ejEitgUU2E%2Fa62349eecfbed524438ca75d602f119.png?alt=media&#x26;token=b9edcec9-b73e-450e-b801-4a14c90278dc" alt=""><figcaption></figcaption></figure>

**让Rust生效 命令：**

source "$HOME/.cargo/env"

**4、安装依赖**

**使用下面命令，安装git依赖**

```
apt install git -y
```

**5、安装snarkOS**

**使用下面命令，创建/opt/snarkos目录，并进入**

```
mkdir /opt/snarkos && cd /opt/snarkos
```

**使用下面命令，下载snarkOS源码**

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

**使用下面命令，进入snarkos目录**

```
cd snarkOS
```

**使用下面命令，编译安装snarkOS**

```
sh ./build_ubuntu.sh
```

\
**如下图所示**

<figure><img src="https://96026046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfqzYKQFbpUOSwrctnLFd%2Fuploads%2FtzNqZAQANxgrBGaAhuvr%2Fb48eeac7455ac6988d31d40895b018d.png?alt=media&#x26;token=1d9dc5be-8dd7-4b8e-86fe-f1b268621f8c" alt=""><figcaption></figcaption></figure>

**出现上图界面后 使用 tab 将光 标切换到 ok 默认安装**

<figure><img src="https://96026046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfqzYKQFbpUOSwrctnLFd%2Fuploads%2F8c3fwPS9P5JCh0zzxk8e%2F48596311726d7e08116f173e27e7f59.png?alt=media&#x26;token=6554fa06-3eac-4696-a924-3cd6ee89e5f2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://96026046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfqzYKQFbpUOSwrctnLFd%2Fuploads%2FLEl6a8kv7uOEgMrY0fQw%2Fa0642941e6ab0816bad956c36418102.png?alt=media&#x26;token=26b4144a-2c8e-486f-bc01-1e47bf209cc6" alt=""><figcaption></figcaption></figure>

**如上图所示即安装成功**

**6、开始挖矿**

**使用**snarkos account new**命令，生成 Aleo 矿工地址即key**

**保存好自己的地址和key**

**使用下面命令，启动挖矿节点，命令里面的这个字符`*******` 这个改成你的private key**

```
PROVER_PRIVATE_KEY=*********  ./run-prover.sh > /opt/snarkos/miner.log 2>&1 &
```

**使用命令**top**查看节点是否运行**

**使用下面的命令，查看运行日志**

```
tail -f -n100 /opt/snarkos/miner.log
```

**也可以在区块浏览器输入你的地址查看节点运行是否**

<https://www.aleo123.io>

**今天的教程就到这里，如果你感觉对你有用，记得关注我的（点击推特二字即可跳转）**[**推特**](https://twitter.com/Direcrorcoffee) \
\
**或者直接在推特搜索**@Direcrorcoffee

**定期更新各种项目的教程**

**感谢关注**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ga-fei-1.gitbook.io/tian-wang-ji-xiang-mu-zk-yin-si-gong-lian-aleo-san-ce-2-jie-duan-jie-dian-da-jian-jiao-cheng/aleo-san-ce-2-jie-duan-jiao-cheng.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
