Linux运维知识之以太坊linux挖矿应用
小标 2018-12-07 来源 : 阅读 2022 评论 0

摘要:本文主要向大家介绍了Linux运维知识之以太坊linux挖矿应用,通过具体的内容向大家展现,希望对大家学习Linux运维知识有所帮助。

本文主要向大家介绍了Linux运维知识之以太坊linux挖矿应用,通过具体的内容向大家展现,希望对大家学习Linux运维知识有所帮助。

源码:https://github.com/ethereum-mining/ethminer/releases

二进制执行文件https://github.com/ethereum-mining/ethminer/releases 下载ethminer-0.12.0-Linux.tar.gz,解压,执行

 

root@g1060server:/home/user/songrui/test/ethminer/bin# ./ethminer --help
Usage ethminer [OPTIONS]
Options:

Work farming mode:
   -F,--farm <url>  Put into mining farm mode with the work server at URL (default: //127.0.0.1:8545)
   -FF,-FO, --farm-failover, --stratum-failover <url> Failover getwork/stratum URL (default: disabled)    --farm-retries <n> Number of retries until switch to failover (default: 3)    -S, --stratum <host:port>  Put into stratum mode with the stratum server at host:port    -FS, --failover-stratum <host:port>  Failover stratum server at host:port    -O, --userpass <username.workername:password> Stratum login credentials    -FO, --failover-userpass <username.workername:password> Failover stratum login credentials (optional, will use normal credentials when omitted)    --work-timeout <n> reconnect/failover after n seconds of working on the same (stratum) job. Defaults to 180. Don't set lower than max. avg. block time
   -SC, --stratum-client <n>  Stratum client version. Defaults to 1 (async client). Use 2 to use the new synchronous client.    -SP, --stratum-protocol <n> Choose which stratum protocol to use:        0: official stratum spec: ethpool, ethermine, coinotron, mph, nanopool (default)        1: eth-proxy compatible: dwarfpool, f2pool, nanopool (required for hashrate reporting to work with nanopool)        2: EthereumStratum/1.0.0: nicehash    -RH, --report-hashrate Report current hashrate to pool (please only enable on pools supporting this)    -SE, --stratum-email <s> Email address used in eth-proxy (optional)    --farm-recheck <n>  Leave n ms between checks for changed work (default: 500). When using stratum, use a high value (i.e. 2000) to get more stable hashrate output

Benchmarking mode:    -M [<n>],--benchmark [<n>] Benchmark for mining and exit; Optionally specify block number to benchmark against specific DAG.    --benchmark-warmup <seconds>  Set the duration of warmup for the benchmark tests (default: 3).    --benchmark-trial <seconds>  Set the duration for each trial for the benchmark tests (default: 3).    --benchmark-trials <n>  Set the number of benchmark trials to run (default: 5).
Simulation mode:    -Z [<n>],--simulation [<n>] Mining test mode. Used to validate kernel optimizations. Optionally specify block number.
Mining configuration:    -G,--opencl  When mining use the GPU via OpenCL.    -U,--cuda  When mining use the GPU via CUDA.    -X,--cuda-opencl Use OpenCL + CUDA in a system with mixed AMD/Nvidia cards. May require setting --opencl-platform 1
   --opencl-platform <n>  When mining using -G/--opencl use OpenCL platform n (default: 0).    --opencl-device <n>  When mining using -G/--opencl use OpenCL device n (default: 0).    --opencl-devices <0 1 ..n> Select which OpenCL devices to mine on. Default is to use all    -t, --mining-threads <n> Limit number of CPU/GPU miners to n (default: use everything available on selected platform)    --list-devices List the detected OpenCL/CUDA devices and exit. Should be combined with -G or -U flag    -L, --dag-load-mode <mode> DAG generation mode.
       parallel    - load DAG on all GPUs at the same time (default)
       sequential  - load DAG on GPUs one after another. Use this when the miner crashes during DAG generation
       single <n>  - generate DAG on device n, then copy to other devices    --cl-local-work Set the OpenCL local work size. Default is 128
   --cl-global-work Set the OpenCL global work size as a multiple of the local work size. Default is 8192 * 128
   --cuda-block-size Set the CUDA block work size. Default is 128
   --cuda-grid-size Set the CUDA grid size. Default is 8192
   --cuda-streams Set the number of CUDA streams. Default is 2
   --cuda-schedule <mode> Set the schedule mode for CUDA threads waiting for CUDA devices to finish work. Default is 'sync'. Possible values are:
       auto  - Uses a heuristic based on the number of active CUDA contexts in the process C and the number of logical processors in the system P. If C > P, then yield else spin.
       spin  - Instruct CUDA to actively spin when waiting for results from the device.        yield - Instruct CUDA to yield its thread when waiting for results from the device.
       sync  - Instruct CUDA to block the CPU thread on a synchronization primitive when waiting for the results from the device.    --cuda-devices <0 1 ..n> Select which CUDA GPUs to mine on. Default is to use all    --cuda-parallel-hash <1 2 ..8> Define how many hashes to calculate in a kernel, can be scaled to achieve better performance. Default=4
   --api-port Set the api port, the miner should listen to. Use 0 to disable. Default=0, use negative numbers to run in readonly mode. for example -3333.
General Options:    -v,--verbosity <0 - 9>  Set the log verbosity from 0 to 9 (default: 8).    -V,--version  Show the version and exit.    -h,--help  Show this help message and exit.

 ./ethminer --farm-recheck 2000 -U -S "huabei-pool.ethfans.org:3333" -FS "huabei-pool.ethfans.org:13333" -O "0xe54AbD803573FDD245f0Abb75f4c9Ddfc8e72050.mjl" -SP 1
 ./ethminer --farm-recheck 2000 -U -S "guangdong-pool.ethfans.org:3333" -FS "guangdong-pool.ethfans.org:13333" -O "0xe54AbD803573FDD245f0Abb75f4c9Ddfc8e72050.mjl" -SP 1

 

 

--farm-recheck大致是重新检查某些东西的时间间隔,毫秒为单位,

-U指的是用GPU,且用的是CUDA而不是OpenCL,

-S指定stratum服务器,(

矿池地址如下:

    huabei-pool.ethfans.org:3333
    huabei-pool.ethfans.org:13333
    guangdong-pool.ethfans.org:3333
    guangdong-pool.ethfans.org:13333

-FS指定的备份服务器(

矿池地址如下:

    huabei-pool.ethfans.org:3333
    huabei-pool.ethfans.org:13333
    guangdong-pool.ethfans.org:3333
    guangdong-pool.ethfans.org:13333

),

-O 指定自己的钱包地址(我是用的imtoken),.后面是RigName, 随便填。

 

ethminer --farm-recheck400 -G --cl-local-work 64 --cl-global-work 16384

-F // 代理(eth-proxy.exe)运行的局域网地址:8080/矿工号

--farm-recheck:软件强制更新任务周期  单位是MS;

--cl-local-work :运算位宽,可以是64,128,256;

--cl-global-work:显卡运算线程数;

矿工号:仅支持小些字母和数字,矿池自动添加矿工不需要在矿池新建


 ./ethminer --farm-recheck 2000 -U -S "huabei-pool.ethfans.org:3333" -FS "huabei-pool.ethfans.org:13333" -O "0xe54AbD803573FDD245f0Abb75f4c9Ddfc8e72050.mjl" -SP 1
 ./ethminer --farm-recheck 2000 -U -S "guangdong-pool.ethfans.org:3333" -FS "guangdong-pool.ethfans.org:13333" -O "0xe54AbD803573FDD245f0Abb75f4c9Ddfc8e72050.mjl" -SP 1


本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注系统运维Linux频道!

本文由 @小标 发布于职坐标。未经许可,禁止转载。
喜欢 | 0 不喜欢 | 0
看完这篇文章有何感觉?已经有0人表态,0%的人喜欢 快给朋友分享吧~
评论(0)
后参与评论

您输入的评论内容中包含违禁敏感词

我知道了

助您圆梦职场 匹配合适岗位
验证码手机号,获得海同独家IT培训资料
选择就业方向:
人工智能物联网
大数据开发/分析
人工智能Python
Java全栈开发
WEB前端+H5

请输入正确的手机号码

请输入正确的验证码

获取验证码

您今天的短信下发次数太多了,明天再试试吧!

提交

我们会在第一时间安排职业规划师联系您!

您也可以联系我们的职业规划师咨询:

小职老师的微信号:z_zhizuobiao
小职老师的微信号:z_zhizuobiao

版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
 沪公网安备 31011502005948号    

©2015 www.zhizuobiao.com All Rights Reserved

208小时内训课程