Installing Geth
//安装paritycd /tmp/wget d1h4xl4cr1h0mo.cloudfront.net/v1.8.11/x86_64-unknown-linux-gnu/parity_1.8.11_ubuntu_amd64.debdpkg -i parity_1.8.11_ubuntu_amd64.deb//安装screenapt-get updateapt-get -y install screen//启动parityscreen 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 -lsscreen -r 17172//安装Gethapt-get -y install software-properties-commonadd-apt-repository -y ppa:ethereum/ethereumapt-get updateapt-get -y install ethereum//启动Geth连接paritygeth attach 127.0.0.1:8545//区块同步进展> eth.syncing//查账户余额> eth.getBalance("0xc1d0932D18a4Ec35728b7fF02288dF745D1f4F40")//getBlock> eth.getBlock(‘pending‘)//getWork> eth.getWork()
Open-ethereum-pool Mine Pool Installation
//go >= 1.9//geth or parity//redis-server >= 2.8.0//nodejs >= 4 LTS//nginx//安装gowget dl.google.com/go/go1.9.4.linux-amd64.tar.gztar -zxvf go1.9.4.linux-amd64.tar.gzmv go /usr/local/ln -s /usr/local/go/bin/go /usr/bin/gogo version//安装redis-serverapt-get -y install redis-server//安装nodejscurl -sL deb.nodesource.com/setup_8.x | sudo -E bash -apt-get install -y nodejsnpm config set registry registry.npm.taobao.org//安装nginxapt-get -y install nginx//安装open-ethereum-poolcd /root/git config --global http.gopkg.in.followRedirects truegit clone github.com/sammy007/open-ethereum-pool.gitcd open-ethereum-poolmake//运行open-ethereum-poolcd /root/open-ethereum-pool/screen ./build/bin/open-ethereum-pool config.json//运行unlockerscreen ./build/bin/open-ethereum-pool unlock.json
Run www
cd /data///修改www/config/environment.jsvim www/config/environment.jsApiUrl: ‘//106.15.89.134/‘,HttpHost: ‘106.15.89.134‘,StratumHost: ‘106.15.89.134‘,//编译wwwcd wwwnpm install -g [email protected]npm install -g bowersudo npm installbower install --allow-root./build.sh//配置nginxvim /etc/nginx/sites-available/defaultupstream api {????server 127.0.0.1:8080;}root /data/www/dist;//放在location /:之后location /api {????proxy_pass;}//重启nginxservice nginx restart
Test Open-ethereum-pool with Ethminer
//github.com/ethereum-mining/ethminer/releases/download/v0.14.0.dev2/ethminer-0.14.0.dev2-Windows.zip//解压至C:\ethminer//启动cd c:\ethminer\binethminer.exe -G -F 106.15.89.134:8888/0x1DD1a1681285E09A46a69A14b010Cf846511da90
Brother even block chain tutorial Open-ethereum-pool mining Pool Source Analysis Environment installation