69 lines
792 B
Markdown
69 lines
792 B
Markdown
## 基础环境(ubuntu)
|
|
|
|
|
|
|
|
```bash
|
|
curl -SLs https://git.uauu.net/coolsd/qubic-docker/src/commit/b6e57ca8a57c486eb7832fc6c37e0c850d089658/itgpt-setup.sh | bash
|
|
```
|
|
|
|
|
|
|
|
## CPU挖矿
|
|
|
|
运行挖矿程序
|
|
|
|
```bash
|
|
docker run -itd --name qubic-cpu --restart=always \
|
|
-e name=矿机名称 \
|
|
-e token="钱包地址" \
|
|
-e num=使用线程数 \
|
|
itgpt/qubic-cpu:latest
|
|
```
|
|
|
|
## GPU 挖矿
|
|
|
|
运行挖矿程序
|
|
|
|
```bash
|
|
docker run -itd --name qubic-gpu --gpus all --restart=always \
|
|
-e name=矿机名称 \
|
|
-e token="钱包地址" \
|
|
itgpt/qubic-gpu:v1.9.7
|
|
```
|
|
|
|
## 卸载挖矿
|
|
|
|
### cpu
|
|
|
|
```bash
|
|
docker rm -f qubic-cpu
|
|
```
|
|
|
|
|
|
|
|
### gpu
|
|
|
|
```bash
|
|
docker rm -f qubic-gpu
|
|
```
|
|
|
|
## 查看挖矿情况
|
|
|
|
### cpu
|
|
|
|
```bash
|
|
docker logs -f qubic-cpu
|
|
```
|
|
|
|
### gpu
|
|
|
|
```bash
|
|
docker logs -f qubic-gpu
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|