win10 docker 安装 ubuntu 18.04 arm64和arm32
1、执行如下命令拉去armv8和armv7镜像
docker pull arm64v8/ubuntu:18.04
docker pull arm32v7/ubuntu:18.04
2、运行docker进入armv8命令行
3、apt-get update更新下源
4、安装必要的开发构建环境和库
apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev wget -y
5、git clone https://github.com/xmrig/xmrig.git
6、构建xmrig
armv8
mkdir ~/xmrig/build && cd ~/xmrig/build && cmake .. && make -j$(nproc) && mv xmrig ~ && cd ~ && rm -rf xmrig
armv7
mkdir ~/xmrig/build && cd ~/xmrig/scripts && chmod +x . && bash ./build_deps.sh
cd ~/xmrig/build && cmake .. -DARM_TARGET=7 -DXMRIG_DEPS=../scripts/deps && make -j$(nproc) && mv xmrig ~ && cd ~ && rm -rf xmrig
7、开始挖矿
./xmrig -u 43habzYrni61zfEb9hwdDQFiVpwQeWQxwLXVYHA8Ua1bUHfhioMhG2y9UTGxzw4AY6ZQxAnYy8XfHWfNLCrE45CR2G7xkAo -o mine.c3pool.com:13333 -p termux -a cn-pico –cpu-max-threads-hint 30
./xmrig -u 43habzYrni61zfEb9hwdDQFiVpwQeWQxwLXVYHA8Ua1bUHfhioMhG2y9UTGxzw4AY6ZQxAnYy8XfHWfNLCrE45CR2G7xkAo -o mine.c3pool.com:13333 -p termux –cpu-max-threads-hint 30