首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行eth-net-智能化-api抛出"[eth] =✘= Web3连接尝试#0失败“

运行eth-net-智能化-api抛出"[eth] =✘= Web3连接尝试#0失败“
EN

Ethereum用户
提问于 2018-08-15 08:44:03
回答 1查看 407关注 0票数 1

我正在我的机器上运行。

我使用以下命令行运行geth:

代码语言:javascript
复制
geth --datadir innofactory1/ --syncmode 'full' --port 30312 --rpc --ws --wsorigins "*" --rpccorsdomain '"*"' --rpcaddr 'localhost' --rpcport 8502 --rpcapi 'personal,db,eth,net,web3,txpool,miner' --bootnodes 'enode://20c47b4a7bd6d8383f87c1c988e601c7aa27ba7177b25d57e00794d1917c0c992dc37b93dfdf54741633179fd9a96a34fc2687d606ad48e2015ef2d958f3f0fb@10.2.1.124:30310' --networkid 1515 --gasprice '0' --unlock '0x40ee4953da28c4db0f15d671cefc29724ce2b87a' --password innofactory1/password.txt --mine

我像这样配置app.json:

代码语言:javascript
复制
[
  {
    "name"              : "node-app",
    "script"            : "app.js",
    "log_date_format"   : "YYYY-MM-DD HH:mm Z",
    "merge_logs"        : false,
    "watch"             : false,
    "max_restarts"      : 10,
    "exec_interpreter"  : "node",
    "exec_mode"         : "fork_mode",
    "env":
    {
      "NODE_ENV"        : "production",
      "RPC_HOST"        : "localhost",
      "RPC_PORT"        : "8502",
      "LISTENING_PORT"  : "30312",
      "INSTANCE_NAME"   : "",
      "CONTACT_DETAILS" : "",
      "WS_SERVER"       : "http://localhost:3000",
      "WS_SECRET"       : "secret",
      "VERBOSITY"       : 2
    }
  }
]

但当我跑的时候

代码语言:javascript
复制
npm start app.json

我得到了以下错误:eth =✘= Web3连接尝试#0失败

EN

回答 1

Ethereum用户

发布于 2018-08-16 07:58:31

我通过指定INSTANCE_NAME和CONTACT_DETAILS来解决这个问题

票数 0
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/56567

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档