Ethereum(ETH) Mining Pools

# 以太币框池搭建

环境, mac os || linux 

Refer :

https://github.com/sammy007/open-ethereum-pool

## 1.1 交易信息,最终界面效果如下,采用 Node express 编写



## 1.2 框池运行如下


## 1.3 结算后台运行如下



## 1.4 redis 服务


# 2 安装依赖

```

  • go >= 1.9
  • geth or parity
  • redis-server >= 2.8.0
  • nodejs >= 4 LTS
  • nginx

```

# 3 具体步骤参考,git 文档,以下列出注意事项以及配置文件

clone 问件之后,当前目录,拷贝 example.config.json 为 config.json

```

cp -r example.json config.json

```

## 3.1 进入 www 目录,安装 node, bowser 依赖, 构建模板

```

npm install -g ember-cli@2.9.1
npm install -g bower
npm install
bower install
./build.sh

```

## 3.2 Nginx 配置

可以在  nginx.config 中直接进行配置, 静态文件地址,代码 go 服务上游端口

```

upstream api {
    server 127.0.0.1:8080;
}

and add this setting after location /:

location /api {
    proxy_pass http://api;
}

```

## 3.3 开启 go 服务&redis

```

// start redis server 

redis server




// run go rpc

geth --rpc 


// run pool

 ./build/bin/open-ethereum-pool config.json

```

# ps 请先运行 go rpc 后再运行 pool, 否则将得到如下错误


开启 rpc 后 一切正常


# 4 如果 想进入template 的 dev 模式, 运行如下指令即可

```

ember server --port 8082 --environment development

```

# 5 如果在 mac 上安装,使用 brew 安装 go-ethereum 即可,git 地址

https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Mac

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值