下载编译安装 xmr-stak-cpu
apt-get -y install gitgit clone https://github.com/fireice-uk/xmr-stak-cpu.gitsudo apt-get -y install libmicrohttpd-dev libssl-dev cmake build-essentialcd xmr-stak-cpu/cmake -DHWLOC_ENABLE=OFF .make install配置 xmr-stak-cpu 参数
cd bin./xmr-stak-cpuvim config.txt"cpu_threads_conf" :
[
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
],
"use_slow_memory" : "warn",
"nicehash_nonce" : false,
"aes_override" : null,
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
"pool_address" : "jw-js1.ppxxmr.com:3333",
"wallet_address" :"",
"pool_password" : "",
"call_timeout" : 10,
"retry_time" : 10,
"giveup_limit" : 0,
"verbose_level" : 3,
"h_print_time" : 60,
"daemon_mode" : false,
"output_file" : "",
"httpd_port" : 0,
"prefer_ipv4" : true,开始
./xmr-stak-cpu若提示 MEMORY ALLOC FAILED: mmap failed
则:
sysctl -w vm.nr_hugepages=128vim /etc/security/limits.conf加入下面两行:
* soft memlock 262144
* hard memlock 262144rebootsysctl -w vm.nr_hugepages=128cd /root/xmr-stak-cpu/bin./xmr-stak-cpu