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.9geth or p
# 以太币框池搭建
环境, 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
更多推荐
所有评论(0)