CPU挖矿(比特币、莱特币)

By admin, 18 十一月, 2016

CPU挖矿比GPU挖矿的性能低很多,连电费都不够,可以认为是没有意义的。有多没意义法?一个CPU核挖一年可以挖到大概0.01莱特币(一般0.01是最小提现单位),0.01莱特币目前值不到3分钱人民币。

但因为配置简单,可以让我们感受一下挖矿是一个怎样的过程。

首先,安装cpuminer。

 

git clone https://github.com/pooler/cpuminer.git

cd cpuminer

./autogen.sh

./configure CFLAGS="-O3"

make

这份代码在Mac下无法编译(configure文件有问题),但可以在这里下载二进制版本:https://github.com/pooler/cpuminer/releases

然后,找个矿池注册账号(例如https://www.f2pool.com

最后,运行下面命令就可以了

./minerd -o stratum+tcp://stratum.f2pool.com:8888 -u workername -p password 

这还是一个测试CPU性能的方法。过去10年,CPU的频率基本没有大的提升,但是一台新的MacBook和7年前的MacBook挖矿速度可以有10倍的差别。我一直不舍得处理一台旧的MacBook,觉得它慢主要是固态硬盘出了问题,但挖了一下矿后就发现,扔掉那台MacBook已经没有什么可惜的了。

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"