文章

XMR代理-XMRig-Proxy v2.4.4架设

  编辑于:2018-01-21

Ubuntu 16.04+

#更新系统
sudo apt-get --assume-yes update
sudo apt-get --assume-yes upgrade
#安装需要插件
sudo apt-get --assume-yes install git build-essential cmake libuv1-dev uuid-dev libmicrohttpd-dev screen htop
#查看自己主机IP
curl -4 icanhazip.com
#开启大内存和memlock
sysctl -w vm.nr_hugepages=128
sed -i '1s/^/vm.nr_hugepages=128\n/' /etc/sysctl.conf
echo '* soft memlock 262144' >> /etc/security/limits.conf
echo '* hard memlock 262144' >> /etc/security/limits.conf
#下载&安装最新版XMRig-Proxy
git clone https://github.com/xmrig/xmrig-proxy.git
cd xmrig-proxy
mkdir build
cd build
#如果不想安装HTTP Server还有API请在cmake..后加上-DWITH_HTTPD=OFF
# cmake.. -DWITH_HTTPD=OFF
cmake ..
make

可以在build文件夹里面开个新文档叫config.json,然后把下面的拷进去
config.json设置

{
    "background": false,
    "log-file": null,
    "access-log-file": null,
    "retries": 5,
    "retry-pause": 5,
    "donate-level": 2,
    "coin": "xmr",
    "custom-diff": 0,
    "syslog": false,
    "verbose": false,
    "colors": true,
    "workers": true,
    "pools": [
        {
            "url": "矿池地址+端口",
            "user": "钱包ID",
            "pass": "x"
        }
    ],
    "bind": [
        "这里是开端口给矿工连接的,例子:0.0.0.0:3333"
    ],
    "api": {
        "port": 0,
        "access-token": null,
        "worker-id": null
    }
}

XMR-Stak矿工设置

#架设代理地址端口
"pool_address" : "你的代理地址:端口",
#设置机器名字
"wallet_address" : "当前矿工名字",
#这个设成x就好了,不用管的
"pool_password" : "x"
#必须要设置nicehash为true
"use_nicehash" : true,

修改捐赠:xmrig-proxy/src/donate.h
原文链接:http://www.hostloc.com/thread-419984-1-1.html

发表回复