Mining generally use high-end graphics card to do mining machine, not the average person can afford to playHere is a method of using the CPU to mine mining, pure play, do not expect to get rich ohThis method is tested on CentOS and Raspberry Pi native systems.Download Cpuminer from git firstgit clone https://github.com/pooler/cpuminer.git?Go to CatalogCD cpuminer/?Perform./autogen.sh?Perform./configure cfla
)} Newblockch: = Make (chan *bc. Hash, Maxnewblockchsize)//Initialize Network node synchronization management SyncManager, _: = Netsync. Newsyncmanager (config, chain, txpool, NEWBLOCKCH)//Initialize PPROF,PPROF for output performance indicators, need to set--PROF_LADDR parameters to open, at the beginning of the article we have opened the function//run the profile server Profilehost : = config. proflistenaddress if Profilehost! = "" {//Profiling BYTOMD Programs.see (https://blog.golang.org/prof
: = Make (chan *bc. Hash, Maxnewblockchsize)//Initialize Network node synchronization management SyncManager, _: = Netsync. Newsyncmanager (config, chain, txpool, NEWBLOCKCH)//Initialize PPROF,PPROF for output performance indicators, need to set--PROF_LADDR parameters to open, at the beginning of the article we have opened the function//run the profile server Profilehost : = config. proflistenaddress if Profilehost! = "" {//Profiling BYTOMD Programs.see (blog.golang.org/profiling-go-programs )//
is used here, you can specify a job as a binary executable file, bash script, or other command. Since Mesos supports Docker, an executable Docker image will be used in this example. Docker is a technology that allows you to package an application with the Dependencies it needs during running. To use Docker images in Mesos, you must register their names in Docker registry:
const ( MinerServerDockerImage = "derekchiang/p2pool" MinerDaemonDockerImage = "derekchiang/
this example. Docker is a technology that allows you to package your application with the dependencies it needs to run.
In order to use Docker images in Mesos, it is necessary to register their names in Docker registry:
const ( MinerServerDockerImage = "derekchiang/p2pool" MinerDaemonDockerImage = "derekchiang/cpuminer")
Then define a constant that specifies the resources required for each task:
const ( MemPerDaemonTask = 128 // mining shou
this example. Docker is a technology that allows you to package your application with the dependencies it needs to run.
In order to use Docker images in Mesos, it is necessary to register their names in Docker registry:
const ( MinerServerDockerImage = "derekchiang/p2pool" MinerDaemonDockerImage = "derekchiang/cpuminer")
Then define a constant that specifies the resources required for each task:
const ( MemPerDaemonTask = 128 // mining shou
this example. Docker is a technology that allows you to package your application with the dependencies it needs to run.
In order to use Docker images in Mesos, it is necessary to register their names in Docker registry:
const ( MinerServerDockerImage = "derekchiang/p2pool" MinerDaemonDockerImage = "derekchiang/cpuminer")
Then define a constant that specifies the resources required for each task:
const ( MemPerDaemonTask = 128 // mining shou
is necessary to register their names in Docker registry:
Const ( minerserverdockerimage = "Derekchiang/p2pool" minerdaemondockerimage = "Derekchiang/cpuminer")
Then define a constant that specifies the resources required for each task:
Const ( memperdaemontask = + //mining shouldn ' t be memory-intensive memperservertask = Cpuperservertask = 1 //A miner server does not use much CPU)
Now define a real scheduler, track it, and ma
dependencies it needs to run.In order to use Docker images in Mesos, it is necessary to register their names in Docker registry:const ( MinerServerDockerImage = "derekchiang/p2pool" MinerDaemonDockerImage = "derekchiang/cpuminer")Then define a constant that specifies the resources required for each task:const ( MemPerDaemonTask = 128 // mining shouldn‘t be memory-intensive MemPerServerTask = 256 CPUPerServerTask = 1 // a miner s
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.