Giter Site home page Giter Site logo

ckb-miner's Introduction

ckb-miner

批量部署 ckb 挖矿程序的脚本

开发环境

Ubuntu 18.04.2
Python 3.6.8

安装依赖

apt-get update
apt install -y python3-pip 
pip3 install paramiko

创建钱包

请见 官方手册

运行ckb 同步节点

请见 官方手册

同步节点需要将ckb.toml 配置中 listen_address 值改成 0.0.0.0:8114 ,同时确保8114端口防火墙允许外部服务器访问

自定义配置修改

脚本中变量 username、passwd、remotedir、iplist、miner_threads、ckb_node_ip 运行时请自行修改。

username      # 登录到挖矿服务器的用户
passwd          # 登录到挖矿服务器的用户密码
remotedir       # 远程服务器ckb运行目录
iplist                # 远程服务器列表 
miner_threads    # 运行的ckb miner 线程数,最好比服务器CPU核数少1 
ckb_node_ip      # ckb 同步节点IP

运行脚本

python3 run_ckb_miner.py 

1 run_ckb_miner
2 kill_ckb_miner
3 quit

输入1:运行ckb 挖矿
输入2:关闭ckb 挖矿

ckb-miner's People

Contributors

jiangxianliang007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.