参考
https://hostloc.com/forum.php?mod=viewthread&tid=822975&extra=page%3D12
获得新的xmr钱包地址
去 https://c3pool.com/cn/ 输入钱包地址获得挖矿脚本
步骤
mkdir -p /data/xmrig_c3pool && cd /data/xmrig_c3pool curl -s -L http://download.c3pool.com/xmrig_setup/raw/master/setup_c3pool_miner.sh | LC_ALL=en_US.UTF-8 bash -s 4AmfcRRQM4nXBReoamzmEGF8B8N6PBHZj7MSrJD73p4VRxutBpDUeJ91MtPSBSSaBzZfm7PGtaBDfd4gxfUAjR288EZxcZk # 控制 systemctl stop c3pool_miner systemctl restart c3pool_miner systemctl status c3pool_miner
可以看到,自动装了一个system service
查看Log 和 配置
journalctl -u c3pool_miner -f vi /root/c3pool/config.json
限制CPU
# 限制单核75% cpulimit -e xmrig -l 75 --background # 如果是双核,每核限制75%, cpulimit -e xmrig -l 150 -b # 或者用 pid cpulimit -p 9321 -l 150 -b # 开机自动进行CPU限制10% sed -i -e '$i \cpulimit -e xmrig -l 10 -b\n' /etc/rc.local
卸载
curl -s -L http://download.c3pool.com/xmrig_setup/raw/master/uninstall_c3pool_miner.sh | bash -s