美文网首页
以太坊 工作环境

以太坊 工作环境

作者: 冰_Angus | 来源:发表于2018-03-21 13:40 被阅读0次

ubuntu 

安装geth

https://www.jianshu.com/p/5a044dc85eda

添加的add-apt-repository删不掉

用参数 -r  删除

如果不知道名字  删掉/etc/apt/sources.list.d文件夹下的东西

sudo add-apt-repository -r ppa:ethereum/ethereum

如果启动后不能挖矿 试试

geth --identity "zza" --rpc --rpcport "8080" --rpccorsdomain "*" --datadir "./chain" --port "30303" --nodiscover --rpcapi "db,eth,net,web3" --networkid 1 init ./genesis.json

geth  --datadir "./chain"  --nodiscover  console 2>>eth_output.log

并且miner.start(4)  确定有四核


挖矿时发现挖不动 尝试挑高挖矿核数和内存后 发

现内存应该不能少于3G  核数不能少于2核


安装mist最后解决方案

去github上下载mist的release版本

https://github.com/ethereum/mist/releases

unzip 解压

在geth在挖矿的情况下

./ethereumwallet --rpc ~/ntest/chain/geth.ipc

等待几分钟

ok~


在尝试用github原码打开mist时出现的问题:


安装mist

先安装curl

sudo apt-get install curl

验证 curl --version

安装nodejs

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -

sudo apt-get install -y nodejs

验证 node -v

安装yarn

https://www.jianshu.com/p/5218b6caa5f3

如果用yarn和npm没有网下不了 而你正好后shadowsocks 那么设置一个代理

npm config set proxy http://192.168.14.193:9999

npm config set proxy https://192.168.14.193:9999

yarn config set registry http://registry.npm.taobao.org

yarn config set registry https://registry.npm.taobao.org

如果yarn安装的软件 用命令没有此文件  需要手动配置环境变量

vim ~/.bashrc

在文件末尾添加 export PATH="$PATH:/home/pdd/.yarn/bin"

source ~/.bashrc

https://www.jianshu.com/p/e681fb4c6215

发现并没有什么卵用

相关文章

网友评论

      本文标题:以太坊 工作环境

      本文链接:https://www.haomeiwen.com/subject/vgkwqftx.html