minerd是一個比特幣挖礦程序,可以運行在服務器上並消耗CPU資源。
下載地址:
git clone https://github.com/pooler/cpuminer.git
具體的編譯步驟請參考地址:
https://github.com/pooler/cpuminer c++
確保安裝了:yum -y install libcurl-devel libcurl automake autoconf gcc gcc-c++
Linux系統minerd安裝步驟:
Basic *nix build instructions:
./autogen.sh # only needed if building from git repo
./nomacro.pl # in case the assembler doesn't support macros
./configure CFLAGS="-O3" # Make sure -O3 is an O and not a zero!
make
make install
安裝成功以後,將會在目錄下生成可執行程序minerd,執行minerd -h,輸出如下內容表示安裝成功。
git
正常運行挖礦程序,須要有一個礦池,即挖礦服務器,在BTCC、Antpool、F2pool上隨意註冊一個便可,(我的註冊帳號是2522xx606@qq.com)設置礦工帳號名,註冊成功以後便可使用它們提供的礦池來啓動你的挖礦程序,中國的爲:https://pool.btcchina.com/
目前的礦池地址以下:
國內挖礦地址:
stratum.btcchina.com:3333
stratum.btcc.com:25
stratum.btcc.com:3333
國外挖礦地址:
jp-stratum.btcc.com:3333
jp-stratum.btcc.com:443
jp-stratum.btcc.com:25
執行minerd程序命令:
minerd -o stratum+tcp://stratum.btcc.com:3333 --userpass=username.001:password
例如:
minerd -o stratum+tcp://stratum.btcc.com:3333 --userpass=testMiner.001:123456github
注意:
帳號須要以 username.001命名。服務器
運行成功如圖所示
curl
TOP命令查看如圖所示
tcp