# nexus cli教程

By [xuangg](https://paragraph.com/@xuangg) · 2024-12-10

---

nexus 挖矿教程
----------

首先在本地电脑新建一个文本文档复制 并保存为1.sh 上传到vps上

    sudo apt update && sudo apt upgrade
    sudo apt install build-essential pkg-config libssl-dev git-all
    sudo apt install protobuf-compiler
    source $HOME/.cargo/env
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    source $HOME/.cargo/env
    curl https://cli.nexus.xyz/ | sh
    

赋予执行文件

    chmd +x 1.sh
    

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

然后执行 1.sh

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

遇到y 全选y

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

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

这里选择1

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

会等待很久 ，到这步就好了

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

但是这一步 一但退出就没用了 所以我们要挂在后台运行

    screen -S nexus1
    

这样会来到新进程

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

运行

    curl https://cli.nexus.xyz/ | sh
    

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

然后同时按住 ctrl+a+d 键就可以回到主进程了 这样程序就在后台运行了

---

*Originally published on [xuangg](https://paragraph.com/@xuangg/nexus-cli)*
