您的位置:首页 > 运维架构 > Linux

X Chen笔记---Centos安装cpuminer

2018-03-05 15:06 1556 查看
原文地址: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!!!)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: