首先在本地电脑新建一个文本文档复制 并保存为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
然后执行 1.sh
遇到y 全选y
这里选择1
会等待很久 ,到这步就好了
但是这一步 一但退出就没用了 所以我们要挂在后台运行
screen -S nexus1
这样会来到新进程
运行
curl https://cli.nexus.xyz/ | sh
然后同时按住 ctrl+a+d 键就可以回到主进程了 这样程序就在后台运行了