Git Product home page Git Product logo

swarm's Introduction

Swarm 部署脚本

前言

该脚本可以安装、配置脚本、获取地址、启动和重启swarm程序。 欢迎大家使用~如有问题可以与我联系。

环境

CentOS 7,使用root用户运行。 bee-clef使用0.4.12版本。bee版本可手动输入。

用法

下载脚本后,初次使用可以按照以下步骤进行配置

安装

最新bee版本号:0.6.2

mkdir /bee
cd /bee
sh bee.sh install [bee版本号]

生产配置脚本

基于端口

大部分个人用户没有多余IP地址,又想多开的话可以使用多端口进行配置。

sh bee.sh pconfig [节点数量] [swap-endpoint地址]

基于IP地址

ip地址可以自己手动添加,也可以使用脚本添加,将IP/掩码写道iplist中

sh bee.sh ipadd [网卡名称]

再使用脚本生成配置文件

sh bee.sh iconfig [swap-endpoint地址]

获取以太坊地址

执行命令后会写道address文件中,屏幕也有输出

sh bee.sh address

启动和停止

领水后启动,启动和停止也可以选择节点范围,节点号从0开始。 启动节点前会先关闭节点,避免重复启动

sh bee.sh restart [起始节点] [结束节点]
sh bee.sh stop [起始节点] [结束节点]

查看

可以查看节点以太坊地址、钱包地址、peer数量、支票信息。可以选择起始范围,不写默认为所有节点

sh bee.sh show [起始节点] [结束节点]

升级

由于测试网络官方升级频繁,可以使用该脚本升级。升级前会关闭所有节点。

sh bee.sh update [bee版本号]

swarm's People

Contributors

zhzhdwy avatar

Watchers

James Cloos 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.