> For the complete documentation index, see [llms.txt](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/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# Aleo 三测2阶段教程

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

<figure><img src="/files/bOEaaWWLzJmwEZh6ebgC" 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="/files/8ArJAMIjKaX9sIlMq8do" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/BIo5RhyDvmpJyUPELLvW" 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="/files/DsTbEkcOoLzAyqDPJFgI" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/IZKOgO0wx2yCUpCFU9Cu" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/QgWBoavme4RJb0im0UIg" 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

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

**感谢关注**
