minerOS配置cpu挖xmr

部分用户主机的cpu配置比较高,在挖显卡币时cpu占用率非常低,造成硬件配置浪费。以下给出使用minerOS挖显卡币的同时,一边用CPU挖xmr的方法。建议显卡挖矿配置生效后,矿池开始有算力了,再进行CPU挖矿配置。

一、ssh登录进入minerOS系统
ssh [email protected] (填主机的内网IP)
密码是:mos

二、获取root权限
sudo -i
密码是:mos

三、下载xmr CPU挖矿软件
下载地址:
https://github.com/xmrig/xmrig/releases
复制最新版下载链接(同时支持4月6号分叉前的算法和分叉后的算法,鱼池也会做自动适配):





在ssh终端中输入命令
wget https://github.com/xmrig/xmrig/r ... al-amd64.tar.tar.gz
tar -xvf xmrig-2.6.0-beta1-xenial-amd64.tar.tar.gz
cd xmrig-2.6.0-beta1

四、修改xmr配置文件
先备份默认配置文件:
cp config.json config.json.default
修改矿池及钱包地址
vim config.json
输入字谜"i"进入编辑模式
配置文件示例如下
{
    "algo": "cryptonight",  // cryptonight (default) or cryptonight-lite
    "av": 0,                // algorithm variation, 0 auto select
    "background": true,    // true to run the miner in the background 是否后台运行,改为true
    "colors": true,         // false to disable colored output
    "cpu-affinity": null,   // set process affinity to CPU core(s), mask "0x3" for cores 0 and 1
    "cpu-priority": null,   // set process priority (0 idle, 2 normal to 5 highest)
    "donate-level": 1,      // donate level, mininum 1% 捐助算力给开发者,最低1% 
    "log-file": null,       // log all output to a file, example: "c:/some/path/xmrig.log"
    "max-cpu-usage": 75,    // maximum CPU usage for automatic mode, usually limiting factor is CPU cache not this option.最高CPU利用率,可以调整不影响GPU挖矿为原则
    "print-time": 60,       // print hashrate report every N seconds
    "retries": 5,           // number of times to retry before switch to backup server
    "retry-pause": 5,       // time to pause between retries
    "safe": false,          // true to safe adjust threads and av settings for current CPU
    "syslog": false,        // use system log for output messages
    "threads": null,        // number of miner threads
    "pools": [
        {
            "url": "xmr.f2pool.com:13531", // URL of mining server 这里填的是鱼池xmr挖矿地址
            "user": "你的xmr钱包.矿工号",           // username for mining server 
            "pass": "x",                     // password for mining server
            "keepalive": true,               // send keepalived for prevent timeout (need pool support)
            "nicehash": false,               // enable nicehash/xmrig-proxy support
            "variant": -1                    // algorithm PoW variant
        }
    ],
    "api": {
        "port": 3334,                             // port for the miner API https://github.com/xmrig/xmrig/wiki/API  
        "access-token": null,                  // access token for API
        "worker-id": null                      // custom worker-id for API
    }
}

修改完成之后先按下esc输入“:wq”,敲回车键保存

五、运行挖矿软件并查看日志
输入 “./xmrig” 挖矿软件进入后台运行
如果希望看日志的话,修改配置文件中background参数为false,注意在这种模式下,ssh窗口关闭挖矿软件会自动退出。
在浏览器中输入“192.168.1.x:3334”(主机ip地址和在配置文件api port字段配的端口号)查看挖矿统计

六、查看矿池算力
以鱼池为例:在浏览器中输入,https://www.f2pool.com/xmr/你的钱包地址
作者测试时,20分种后才有算力显示。

猜你喜欢

转载自blog.csdn.net/zsq07007/article/details/79878898
今日推荐