XMR是目前少数可以使用CPU挖矿的加密货币之一。电脑只要开机,不运行程序也同样耗电。
https://github.com/xmrig/xmrig
默认矿机都有捐献,默认比例是5%,最小也是 1%。 如果希望捐献为0,可下载
xmrig-6.10.0-linux-static.tgz 采用静态编译,适合绝大多数 Intel, AMD CPU的Linux。
链接:https://pan.baidu.com/s/1bnmZ8Pisq28cdSiaPOLpag 提取码:dbu6
tar xzvf xmrig-6.10.0-linux-static.tgz //解压
包含两个文件:
xmrig-6.10.0-linux-static
config.json
采用某个编辑器,一定要修改几个重要的参数:
"donate-level": 5, //设置捐献比例,默认5%,这里可以设置为0,但是根据作者说明,需要一次性向下面地址捐款。
* If you plan on changing this setting to 0 please consider making a one off donation to my wallet:
* XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD
* BTC: 1P7ujsXeX7GxQwHNnJsRMgAdNkFZmNVqJT
"donate-over-proxy": 0, //不经过proxy
"1gb-pages": true, //使用1g 大页,可加快速度
"url": "donate.v2.xmrig.com:3333", //填写矿池地址
"user": "YOUR_WALLET_ADDRESS", //填写CMR收款地址
./xmrig-6.10.0-linux-static
如果在root下运行,可以提高挖矿速度15%。这是由于禁用 CPU 的 MSR 功能。但是该功能对于其他应用程序是有益的。
* ABOUT XMRig/6.10.0 gcc/10.2.1
* LIBS libuv/1.41.0 OpenSSL/1.1.1j hwloc/2.4.1
* HUGE PAGES supported
* 1GB PAGES supported
* CPU Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz (2) 64-bit AES VM
L2:0.5 MB L3:24.0 MB 2C/2T NUMA:1
* MEMORY 2.9/4.3 GB (67%)
RAM slot #0: 4 GB DRAM @ 0 MHz RAM slot #0
RAM slot #1: 0 GB DRAM @ 0 MHz RAM slot #1
RAM slot #2: 0 GB DRAM @ 0 MHz RAM slot #2
RAM slot #3: 0 GB DRAM @ 0 MHz RAM slot #3
RAM slot #4: 0 GB DRAM @ 0 MHz RAM slot #4
* MOTHERBOARD VMware, Inc. - VMware Virtual Platform
* DONATE 1%
* ASSEMBLY auto:intel
* POOL #1 donate.v2.xmrig.com:3333 algo auto
* COMMANDS hashrate, pause, resume, results, connection
[2021-03-09 13:18:34.888] net use pool donate.v2.xmrig.com:3333 185.92.222.223
[2021-03-09 13:18:34.888] net new job from donate.v2.xmrig.com:3333 diff 1000K algo rx/0 height 2312961
[2021-03-09 13:18:34.888] cpu use argon2 implementation AVX2
[2021-03-09 13:18:34.893] msr register values for "intel" preset have been set successfully (5 ms)
[2021-03-09 13:18:34.894] randomx init dataset algo rx/0 (2 threads) seed 640effec70686895...
[2021-03-09 13:18:49.570] randomx failed to allocate RandomX dataset using 1GB pages
[2021-03-09 13:18:54.838] randomx allocated 2336 MB (2080+256) huge pages 100% 1168/1168 +JIT (19944 ms)
[2021-03-09 13:19:09.623] randomx dataset ready (14785 ms)
[2021-03-09 13:19:09.623] cpu use profile rx (2 threads) scratchpad 2048 KB
[2021-03-09 13:19:09.755] cpu READY threads 2/2 (2) huge pages 100% 2/2 memory 4096 KB (129 ms)
Good luck!!!