xChar
·a year ago

GPU 版本🌟

联系方式@coolkhz

配置环境

切换用户

sudo -i

切换至 root 用户

安装Rust

// 执行下方两条命令配置临时源
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"

// 安装 rust 环境
curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh

//执行下方命令配置环境变量
. "$HOME/.cargo/env"

//配置源
vim ~/.cargo/config

//将下方配置粘贴进去并保存

[source.crates-io]
replace-with = 'rsproxy-sparse'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
[source.rsproxy-sparse]
registry = "sparse+https://rsproxy.cn/index/"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
[net]
git-fetch-with-cli = true

安装Solana

// 下载程序
wget https://mirror.ghproxy.com/https://github.com/solana-labs/solana/releases/download/v1.17.28/solana-release-x86_64-unknown-linux-gnu.tar.bz2

// 解压压缩包
tar jxf solana-release-x86_64-unknown-linux-gnu.tar.bz2

// 设置环境变量(注意自己的目录)
export PATH="/root/solana-release/bin:$PATH"

// 查看是否安装成功
solana --version

下载并安装 ORZ

// 拉取程序
git clone https://github.com/OrzSupply/orz-cli.git

// 打开程序目录
cd orz-cli

// 编译程序
cargo build --release

// 更改权限
chmod +x target/release/orz

配置钱包

将你的钱包私钥 [125.13.......34.17]这样的 json 文件放入一个目录。
这里举例 /root/keys/

安装node/npm/pm2

curl -o- https://mirror.ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

export NVM_DIR="$HOME/.nvm"

source /root/.bashrc

nvm install node

npm config set registry https://mirrors.huaweicloud.com/repository/npm/

npm install pm2@latest -g

配置sh等脚本监控

配置ore-sh脚本

创建多个 sh 启动脚本
1.sh

/root/orz-cli/target/release/orz --keypair /root/keys/1.json --rpc <RPC你的rpc链接> --priority-fee 1000 mine --threads 4

2.sh

/root/orz-cli/target/release/orz --keypair /root/keys/2.json --rpc <RPC你的rpc链接> --priority-fee 1000 mine --threads 4

多少个钱包就创建多少个sh注意区别私钥文件。


创建start.sh启动脚本脚本文件

vim start.sh

// 将下面代码粘贴进去(注意路径),然后保存退出。

pm2 start 1.sh --name orz1
pm2 start 2.sh --name orz2

配置好后,执行./start.sh

Loading comments...