Linux 部署門羅幣挖礦程式

166 次閱讀
尚無留言

門羅幣跟其他數位貨幣不同的是
這是一個很適合純粹用 CPU 挖礦的幣

收益計算器:
https://www.cryptocompare.com/mining/calculator/xmr

CentOS 6:

yum -y install epel-release
yum -y update
yum -y groupinstall “Development Tools”
yum -y install centos-release-scl git cmake make cmake3 gcc gcc-c++ libstdc++ libmicrohttpd-devel libuv-static
yum -y install devtoolset-7-gcc*
scl enable devtoolset-7 bash

yum -y install devtoolset-7

wget -c https://github.com/libuv/libuv/archive/v1.16.1.tar.gz
tar zxvf v1.16.1.tar.gz
cd libuv-1.16.1/
./autogen.sh
./configure
make
make check
make install

git clone https://github.com/xmrig/xmrig.git
cd xmrig
sed -i -e ‘s/constexpr const int kDonateLevel = 5;/constexpr const int kDonateLevel = 0;/i’ src/donate.h
mkdir build
cd build
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/local/lib/libuv.a
make

CentOS 7:

yum -y install epel-release
yum -y install git make cmake gcc gcc-c++ libstdc++-static libmicrohttpd-devel libuv-static cmake3 centos-release-scl

yum -y install devtoolset-7-gcc*
scl enable devtoolset-7 bash

git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib64/libuv.a
make

靜態編譯
Ubuntu 16+:

apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev
wget -c https://github.com/libuv/libuv/archive/v1.16.1.tar.gz
tar zxvf v1.16.1.tar.gz
cd libuv-1.16.1/
./autogen.sh
./configure –enable-static –disable-shared
make
make check
make install
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..
make

使用命令:

./xmrig -o 礦池 IP: 連接埠 -u 你的門羅幣錢包地址 -p x -k –max-cpu-usage=90

歡迎使用門羅幣贊助本站:
45J49Bk1dZU3pzkRNukPai8Lfz1q1wqkNKF13fb2J85K3HXGMLmryhjbgWYZEWG4kXcuP5eVB1NaW2eZMJsRM8NwUt9mQVS

正文完
 0
admin
版權聲明:本站原創文章,由 admin 於 2017-11-11 發表,共計 1530 字。
轉載說明:除特殊說明外本站文章皆由 CC-4.0 協議發佈,轉載請註明出處。
評論(尚無留言)
驗證碼