0%

CentOS7编译安装Monero miner xmrig

  • CentOS7编译安装Monero

  • 使用f2pool矿池挖矿

CentOS 7 环境准备

1
2
$ yum install -y epel-release
$ yum install -y git make cmake gcc gcc-c++ libstdc++-static libmicrohttpd-devel libuv-static hwloc-devel openssl-devel

xmrig编译

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$ cd /home/work
$ git clone https://github.com/xmrig/xmrig.git


# 编译

$ cd xmrig
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib64/libuv.a

-- argon2: detecting feature 'sse2'...
-- argon2: feature 'sse2' detected!
-- argon2: detecting feature 'ssse3'...
-- argon2: feature 'ssse3' detected!
-- argon2: detecting feature 'xop'...
-- argon2: feature 'xop' detected!
-- argon2: detecting feature 'avx2'...
-- argon2: feature 'avx2' detected!
-- argon2: detecting feature 'avx512f'...
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2k")
-- The ASM compiler identification is GNU
-- Found assembler: /bin/cc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/work/xmrig/build

$ make

# build目录下会生成xmrig可执行文件

矿工运行

1
$ ./xmrig -a cryptonight -o stratum+tcp://xmr.f2pool.com:13531 -u 43wxJYenkhxT2oYaUe7cc5XdDm47vzaPVZ4jqiFVq1wuGzf9FFBz75cF1zokBSZdZnbw4zawrfxZC71Kx8g65dgYMCcy5ed.vmc7 -p x --donate-level 1