X Chen笔记---Centos安装cpuminer

原文地址:https://rumorscity.com/2014/01/04/compile-and-install-cpuminer-on-linux-centos/


1.安装环境

yum install git automake gcc make curl-devel


2.从GITHUB克隆

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


3.编译及安装

cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
make
make install


检查是否安装成功,现在cpuminer应该安装在/usr/local/bin/ 目录下:

/usr/local/bin/minerd --version

结果应为:

cpuminer 2.3.2
libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2


启动cpuminer

./minerd –url=stratum+tcp://coinotron.com:3334 –userpass=username:password

如果电脑是8线程的,那么输出结果应该像下面那样

[2013-12-18 13:01:24] thread 1: 363912 hashes, 6.07 khash/s
[2013-12-18 13:01:24] thread 6: 363612 hashes, 6.06 khash/s
[2013-12-18 13:01:24] thread 4: 363504 hashes, 6.06 khash/s
[2013-12-18 13:01:24] thread 7: 363432 hashes, 6.06 khash/s
[2013-12-18 13:01:24] thread 0: 365196 hashes, 6.09 khash/s
[2013-12-18 13:01:24] thread 2: 365580 hashes, 6.09 khash/s
[2013-12-18 13:01:24] thread 5: 364080 hashes, 6.06 khash/s
[2013-12-18 13:01:35] thread 3: 366072 hashes, 6.10 khash/s
[2013-12-18 12:34:03] accepted: 1/1 (100.00%), 48.55 khash/s (yay!!!)




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值