中华街zhshops

以太坊ETH怎么挖矿?Linux系统ETH挖矿教程

20190824_5d61599645bb7.jpg
硬件
GPU挖矿需要1-2GB显存(译者注:1GB显存不可以),显存不够会一直报错。GPU矿机是基于OpenCL的,所以AMD显卡比NVIDI显卡更有效率。
ASIC和FPGA(即专业矿机)是无效的。
根据自己的显卡类型和系统,选择openCL:
AMD SDK openCL
NVIDIA CUDA openCL
Ubuntu系统
AMD显卡
地址1
地址2
下载: ADL_SDK8.zip 和 AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
./AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
ln -s /opt/AMDAPPSDK-2.9-1 /opt/AMDAPP
ln -s /opt/AMDAPP/include/CL /usr/include
ln -s /opt/AMDAPP/lib/x86_64/* /usr/lib/
ldconfig
reboot
apt-get install fglrx-updates
// wget, tar, opencl
sudo aticonfig –adapter=all –initial
sudo aticonfig –list-adapters
* 0. 01:00.0 AMD Radeon R9 200 Series
* – Default adapter
Nvidia显卡
使用Ubuntu 14.04和Nvidia显卡的用户请看此帖
MacOSx系统
wget http://developer.download.nvidia ... cuda_7.0.29_mac.pkg sudo installer -pkg ~/Desktop/cuda_7.0.29_mac.pkg -target / brew update brew tap ethereum/ethereum brew reinstall cpp-ethereum –with-gpu-mining –devel –headless –build-from-source
检查你的冷却状态:
aticonfig –adapter=0 –od-gettemperature
挖矿软件
Frontier阶段默认的客户端Geth只支持CPU挖矿。我们正在开发Geth客户端的GPU挖矿功能,但是在Frontier阶段完成不了。但是,Geth可以和Ethminer配合进行GPU挖矿。
C++客户端可以进行GPU挖矿。C++客户端包括eth(命令行用户界面)、AlethZero(图形用户界面)和ethMiner(独立的挖矿软件)。
在Linux上可以用ppa安装,在MacOS上可以用brew tap安装,或者从源代码安装。
MacOS系统:
brew install cpp-ethereum –with-gpu-mining –devel –build-from-source
Linux系统:
apt-get install cpp-ethereum
Windows系统上查看
利用ethminer进行GPU挖矿
用eth挖矿:
eth -m on -G -a -i -v 8 //
从源代码安装ethminer:
cd cpp-ethereum
cmake -DETHASHCL=1 -DGUI=0
make -j4
make install
进行GPU挖矿,你需要一个coinbase账户。你可以本地或者远程设置此账户。
配合使用ethminer和geth
geth account new
geth –rpccorsdomain localhost 2>> geth.log &
ethminer -G // -G for GPU, -M for benchmark
tail -f geth.log
ethminer与geth通过8545端口通信。你可以使用geth –rpcport optoin改变这一默认端口。Ethminer将发现Geth的任何端口。注意,你需要使用–rpccorsdomain localhost色环指CORS数据头。你也可以使用-F http://127.0.0.1:3301为ethminer设置端口。如果你打算在同一台电脑上设置多个挖矿实例,设置端口是必要的。如果你正在一个私有群(cluster)上进行测试,我们推荐你进行CPU挖矿。
注意,你不许为geth设置–mine参数或者在控制台中开启矿机,除非你想在GPU挖矿之上进行CPU挖矿。
如果ethminer的默认设置不能工作,请用以下命令指定OpenCL设备:–opencl-device X ,X为0,1,2等。如果运行ethminer -M时,你应该看到类似于如下的信息:
Benchmarking on platform: { “platform”: “NVIDIA CUDA”, “device”: “GeForce GTX 750 Ti”, “version”: “OpenCL 1.1 CUDA” } Benchmarking on platform: { “platform”: “Apple”, “device”: “Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz”, “version”: “OpenCL 1.2 ” }
调试geth:
geth –rpccorsdomain “localhost” –verbosity 6 2>> geth.log
调试矿机:
make -DCMAKE_BUILD_TYPE=Debug -DETHASHCL=1 -DGUI=0
gdb –args ethminer -G -M
注意,当进行GPU挖矿时,在geth中hashrate是不可用的。查看ethminer的hashrate,miner.hashrate将一直报告0.
ethminer和eth
通过rpc,ethminer也可以和eth配合使用
eth -i -v 8 -j // -j for rpc
ethminer -G -M // -G for GPU, -M for benchmark
tail -f geth.log
或者你可以单独使用eth进行GPU挖矿:
eth -m on -G -a -i -v 8 //



分享至 : QQ空间
收藏

36 个回复

正序浏览
GPU挖矿需要1-2GB显存(译者注:1GB显存不双色球走势图

开奖网开奖结果 可以),显存不够会一直报错。GPU矿机是基于OpenCL的,所以AMD显卡比NVIDI显卡更有效率。
ASIC和FPGA(即专业矿机)是无效的。
回复 使用道具 举报

水微晶玻尿酸 - 八千代

BibaBoba ?表于 2022-1-30 02:16
Ordonnance en ligne vente du escompte de, pharmacie suisse prescription. LInde achetez le levitra  ...

水微晶玻尿酸 - 八千代


https://yachiyo.com.tw/hyadermissmile-injection/
回复 使用道具 举报

雙波長亞歷山大除毛雷射 - 八千代

BibaBoba ?表于 2022-1-30 02:16
Ordonnance en ligne vente du escompte de, pharmacie suisse prescription. LInde achetez le levitra  ...

雙波長亞歷山大除毛雷射 - 八千代


https://yachiyo.com.tw/alexandrite-laser/
回复 使用道具 举报

點子數位科技有限公司

Janeribre ?表于 2022-1-30 03:42
tadalafil for sale online

點子數位科技有限公司

https://spot-digital.com.tw/
回复 使用道具 举报

雙波長亞歷山大除毛雷射 - 八千代

DavidJeS ?表于 2022-3-25 11:05
水微晶玻尿酸 - 八千代

雙波長亞歷山大除毛雷射 - 八千代


https://yachiyo.com.tw/alexandrite-laser/
回复 使用道具 举报

Jackpot Bet Online

BibaBoba ??? 2022-1-30 11:37
Matroussapara, ma parapharmacie en ligne, Matroussapara. Achat de viagra en ligne, sildenafil en p ...

Online Casino Guide, Online Casino Slots, Signup Bonus Guide, Online Poker Guide,Online Bingo Guide,Sports betting Guide that will help you on the right track. Get all the info you need. +18. T&C apply
回复 使用道具 举报

水微晶玻尿酸 - 八千代

BibaBoba ?表于 2022-1-26 02:34
Meilleur ordonnance, 50mg en ligne escompte Canada acheter cialis pilule de. Site Web: Parapharman ...

水微晶玻尿酸 - 八千代


https://yachiyo.com.tw/hyadermissmile-injection/
回复 使用道具 举报

Game LIFE 遊戲情報

BibaBoba ?表于 2022-1-26 02:34
Meilleur ordonnance, 50mg en ligne escompte Canada acheter cialis pilule de. Site Web: Parapharman ...

Game LIFE 遊戲情報


https://gamelife.tw/portal.php
回复 使用道具 举报

wtocasdp

BibaBoba ??? 2022-1-30 11:37
Matroussapara, ma parapharmacie en ligne, Matroussapara. Achat de viagra en ligne, sildenafil en p ...

levothyroxine 50 mcg
回复 使用道具 举报
1234下一页
您需要登录后才可以回帖 登录 | 立即注册