如何用 xmrig (5.5.1) 挖 randomX加持 的 XMR Monero
2019年11月, Monero XMR 更新了加密算法 采用了有利于CPU挖矿的算法 randomX, 据说占用内存 2G 以上,随机产生程序代码,以应对 ASIC 挖矿 以及一些 GPU 挖矿。
效果如何,有待观察,不过进入12月,算力从 300MH/s 暴增到 800MH/s,这些是哪里突然来的算力?
可以使用 xmrig 5.5.1 挖矿,具体build过程,见 https://blog.****.net/martinking1997/article/details/83180829
可以到 https://github.com/xmrig/ 这里下载
或者 到 链接: https://pan.baidu.com/s/1bnmZ8Pisq28cdSiaPOLpag 提取码: dbu6
使用中可能遇到几个问题:
错误1:
./xmrig: error while loading shared libraries: libhwloc.so.5: cannot open shared object file: No such file or directory
Centos 7
#yum install hwloc hwloc-devel
Centos 8:
#dnf install hwloc hwloc-devel
Ubuntu 18
$sudo apt install libhwloc-dev
错误2:
./xmrig: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
使用另外一个版本xmrig ,centos 7 或 centos 8
为什么要运行在 Centos上 而不是 Ubuntu ? 一个重要的原因就是 生产环境 Redhat/Centos 份额比较大,机器性能好。