# open-ethereum-pool以太坊矿池-环境安装
## 安装Geth
```shell
//安装parity
cd /tmp/
wget http://d1h4xl4cr1h0mo.cloudfront.net/v1.8.11/x86_64-unknown-linux-gnu/parity_1.8.11_ubuntu_amd64.deb
dpkg -i parity_1.8.11_ubuntu_amd64.deb
//安装screen
apt-get update
apt-get -y install screen
//启动parity
screen parity --base-path=/root/.ethereum --chain ropsten --jsonrpc-interface local --jsonrpc-hosts all --jsonrpc-apis all --no-ws --no-dapps --author 0xc1d0932D18a4Ec35728b7fF02288dF745D1f4F40
//暂时离开 按住Ctrl,依次再按a,d
//恢复screen会话
screen -ls
screen -r 17172
//安装Geth
apt-get -y install software-properties-common
add-apt-repository -y ppa:ethereum/ethereum
apt-get update
apt-get -y install ethereum
//启动Geth连接parity
geth attach http://127.0.0.1:8545
//区块同步进展
> eth.syncing
//查账户余额
> eth.getBalance("0xc1d0932D18a4Ec35728b7fF02288dF745D1f4F40")
//getBlock
> eth.getBlock('pending')
//getWork
> eth.getWork()
```
## open-ethereum-pool矿池安装
```shell
//go >= 1.9
//geth or parity
//redis-server >= 2.8.0
//nodejs >= 4 LTS
//nginx
//安装go
wget https://dl.google.com/go/go1.9.4.linux-amd64.tar.gz
tar -zxvf go1.9.4.linux-amd64.tar.gz
mv go /usr/local/
ln -s /usr/local/go/bin/go /usr/bin/go
go version
//安装redis-server
apt-get -y install redis-server
//安装nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install -y nodejs
npm config set registry https://registry.npm.taobao.org
//安装nginx
apt-get -y install nginx
//安装open-ethereum-pool
cd /root/
git config --global http.https://gopkg.in.followRedirects true
git clone https://github.com/sammy007/open-ethereum-pool.git
cd open-ethereum-pool
make
//运行open-ethereum-pool
cd /root/open-ethereum-pool/
screen ./build/bin/open-ethereum-pool config.json
//运行unlocker
screen ./build/bin/open-ethereum-pool unlock.json
```
## 运行www
```shell
cd /data/
//修改www/config/environment.js
vim www/config/environment.js
ApiUrl: '//106.15.89.134/',
HttpHost: 'http://106.15.89.134',
StratumHost: '106.15.89.134',
//编译www
cd www
npm install -g ember-cli@2.9.1
npm install -g bower
sudo npm install
bower install --allow-root
./build.sh
//配置nginx
vim /etc/nginx/sites-available/default
upstream api {
    server 127.0.0.1:8080;
}
root /data/www/dist;
//放在location /:之后
location /api {
    proxy_pass http://api;
}
//重启nginx
service nginx restart
//访问地址:http://106.15.89.134/
```
## 使用ethminer测试open-ethereum-pool
```shell
//下载地址https://github.com/ethereum-mining/ethminer/releases/download/v0.14.0.dev2/ethminer-0.14.0.dev2-Windows.zip
//解压至C:\ethminer
//启动
cd c:\ethminer\bin
ethminer.exe -G -F http://106.15.89.134:8888/0x1DD1a1681285E09A46a69A14b010Cf846511da90
```
## 参考文档
* [Installing Go Ethereum](https://ethereum.github.io/go-ethereum/install/#install-on-ubuntu-via-ppas)
* [以太坊客户端Geth命令用法-参数详解](http://blog.csdn.net/xilibi2003/article/details/78662000)
* [JavaScript Runtime Environment](https://ethereum.gitbooks.io/frontier-guide/content/jsre.html)
* [Ropsten Testnet Ethereum BlockChain Explorer and Search](https://ropsten.etherscan.io/)
* [Installation Instructions for Ubuntu](https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu)
* [Open Source Ethereum Mining Pool](https://github.com/sammy007/open-ethereum-pool)
* [ethminer](https://github.com/ethereum-mining/ethminer)

网址:http://www.qukuailianxueyuan.io/

欲领取造币技术与全套虚拟机资料

区块链技术交流QQ群:756146052  备注:CSDN

尹成学院微信:备注:CSDN

open-ethereum-pool以太坊矿池源码分析(1)环境安装相关推荐

  1. open-ethereum-pool以太坊矿池源码分析(5)proxy模块

    # open-ethereum-pool以太坊矿池-proxy模块 ## ProxyServer定义 ```go type ProxyServer struct { config *Config bl ...

  2. cl.zk0.info/index.php,兄弟连区块链入门到精通教程btcpool矿池源码分析环境搭建

    原标题:兄弟连区块链入门到精通教程btcpool矿池源码分析环境搭建 btcpool矿池-测试环境搭建及使用cgminer测试 本文档基于Ubuntu 16.04 LTS, 64 Bits. 安装Bi ...

  3. 【区块链 | 智能合约】Ethereum源代码(11)- 以太坊核心BlockChain源码分析

    前面几节都在分析以太坊的通信协议,怎么广播,怎么同步,怎么下载.这一节讲讲以太坊的核心模块BlockChain,也就是以太坊的区块链. 一,BlockChain的初始化 Ethereum服务初始化fu ...

  4. 以太坊Ethash算法源码分析

    Ethash是以太坊目前使用的共识算法,其前身是Dagger-Hashimoto算法,但是进行了很大的改动. 1. Dagger-Hashimoto Dagger-Hashimoto算法想要达到以下几 ...

  5. 以太坊共识引擎源码分析

    这一篇分析以太坊的共识引擎,先看一下各组件之间的关系: Engine接口定义了共识引擎需要实现的所有函数,实际上按功能可以划分为2类: 区块验证类:以Verify开头,当收到新区块时,需要先验证区块的 ...

  6. 兄弟连区块链入门教程btcpool矿池源码分析环境搭建

    btcpool矿池-测试环境搭建及使用cgminer测试 本文档基于Ubuntu 16.04 LTS, 64 Bits. 安装Bitcoind+ZMQ Dependencies apt-get -y ...

  7. 以太坊创世区块源码分析

    genesis 是创世区块的意思. 一个区块链就是从同一个创世区块开始,通过规则形成的.不同的网络有不同的创世区块, 主网络和测试网路的创世区块是不同的. 这个模块根据传入的genesis的初始值和d ...

  8. mybatisplus 集成druid连接池源码分析

    mybatisplus 集成druid连接池源码分析:从spring的源码过渡到druid的相关jar包,里面是druid相关的类,下面我们开始分析: 1.取数据库连接的地方入口:public abs ...

  9. 线程池源码分析-FutureTask

    1 系列目录 线程池接口分析以及FutureTask设计实现 线程池源码分析-ThreadPoolExecutor 该系列打算从一个最简单的Executor执行器开始一步一步扩展到ThreadPool ...

最新文章

  1. java Jsoup不能获取完整响应内容
  2. 记一次MongoDB性能问题(从MySQL迁移到MongoDB)
  3. php mysql通用类_PHP连接MYSQL数据库通用类_PHP教程
  4. Ios9 html5,ios9,html5_ios9下在浏览器中通过scheme打开app的问题,ios9,html5 - phpStudy
  5. 我的nginx+php是如何配置的?
  6. 解决织梦 \include\userlogin.class.php on line 21(或16) 报错的方法
  7. 关于富士通 T5220服务器故障处理
  8. Observable与Observer
  9. Prometheus 轻松实现集群监控
  10. 关于AngularJs中$http post、get 发送和接受参数详解
  11. 古董Mac电脑复活最佳工具 macOS Mojave Patcher工具
  12. 用户体验与可用性测试_读书笔记
  13. plc编程语言有几种?plc常用的编程语言
  14. HLG 1506 屠夫和狙击手【判断点在线段上+线段与圆相交】
  15. SyntaxError: Non-UTF-8 code starting with ‘\xe6‘ in file C:/Users/0moyi0/Desktop/DeepLearningExample
  16. 感知器 - 西瓜好坏自动识别——python
  17. 基于模型的无人机开发
  18. IIS是什么?有什么用?怎么用?
  19. 在tecplot中计算Q准则
  20. 卷积神经网络resent网络实践

热门文章

  1. element 表格多级表头子列固定
  2. 记录一次Thymeleaf th:inline内联问题
  3. 使用Arduino和太阳能电池板制作Li-Fi音频播放器
  4. 重庆北大青鸟【学员心声】:在反思性学习中获得成长 --J14班 万*同学
  5. XDMA驱动配置及详解
  6. Grafana v4.6 配置Alerting告警
  7. 【移液枪电容液面探测】
  8. 送精选Python好书!
  9. OpenCv通过RTSP预览大华摄像机视频
  10. 《贝叶斯计量经济模型》