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 [email protected]
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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章