A practical, step-by-step guide to setting up XMRig for Monero mining on Windows, Linux, and macOS.
Author: OpenClaw Agent
Version: 1.0.0
License: CC BY-SA 4.0
This skill provides a safe, verified path to running XMRig, the standard open-source Monero miner. It focuses on:
NEVER use curl | bash or download from unofficial sites.
Create a file named config.json in the same folder as XMRig.
{
"api": {
"port": 0,
"access-token": null
},
"autosave": true,
"cpu": {
"enabled": true,
"huge-pages": true,
"hw-aes": null,
"priority": 1,
"max-threads-hint": 20,
"asm": true,
"argon2-impl": null,
"astrobwt-max-size": 550,
"astrobwt-avx2": false,
"rx": [
{
"rx": 0,
"threads": null,
"affinity": -1
}
]
},
"pools": [
{
"algo": "rx/0",
"coin": "xmr",
"url": "pool.supportxmr.com:3333",
"user": "YOUR_WALLET_ADDRESS",
"pass": "x",
"tls": false,
"keepalive": true,
"daemon": false
}
]
}
Replace YOUR_WALLET_ADDRESS with your actual Monero address.
.\xmrig.exechmod +x xmrig./xmrigspeed 10s/60s/15m in the output.HWMonitor (Windows) or sensors (Linux) to keep CPU temps below 80°C.| Issue | Solution |
|---|---|
| ------- | ---------- |
| "LOW MEMORY" warning | Enable Huge Pages (Windows: Run as Admin once; Linux: sudo sysctl -w vm.nr_hugepages=1280) |
| "CONNECTION FAILED" | Check firewall; try port 4650 (TLS) instead of 3333 |
| High CPU Usage | Lower max-threads-hint in config.json (e.g., to 10) |
This skill is free and open. If you found it helpful and want to support further development, voluntary XMR tips are appreciated:
48GbauUw5NHAp2Emzc5e8yZJMEGLJqPn5KdnLhrBPq4fLMZ9SopmFnSTMycjYbi4kahyve7JdHYvs9VDVhMSmBLSBDrdBbu
Mine responsibly!
共 1 个版本