我曾尝试安装zcash insight ui& api在我的本地机器(ubuntu OS)中完成所有步骤,但我在前台启动服务时遇到问题。
让我与你分享命令,配置文件。
<code>
npm install -g zcash-bitcore-node
zcash-bitcore-node create mynode
cd mynode
zcash-bitcore-node install insight-api
zcash-bitcore-node install insight-ui
zcash-bitcore-node start</code>
但在我的终端中低于错误:
<code>
[2018-01-30T12:33:03.687Z] info: Using config: /home/kiran/zcashnodenew/zcash-bitcore-node.json
[2018-01-30T12:33:03.688Z] info: Using network: testnet
[2018-01-30T12:33:03.688Z] info: Starting bitcoind
[2018-01-30T12:33:03.690Z] info: Using zcash config file: /home/kiran/zcashnodenew/data/zcash.conf
[2018-01-30T12:33:03.691Z] info: Starting zcash process
[2018-01-30T12:33:03.699Z] error: Error: spawn /usr/local/lib/node_modules/zcash-bitcore-node/bin/zcashd ENOENT
at _errnoException (util.js:1003:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:389:16)
at process._tickCallback (internal/process/next_tick.js:152:19)
</code>
{
"network": "testnet",
"port": 3003,
"services": [
"bitcoind",
"insight-api",
"insight-ui",
"web"
],
"servicesConfig": {
"bitcoind": {
"spawn": {
"datadir": "./data",
"exec": "/usr/local/lib/node_modules/zcash-bitcore-node/bin/zcashd"
}
}
}
}
server=1
whitelist=127.0.0.1
txindex=1
addressindex=1
timestampindex=1
spentindex=1
zmqpubrawtx=tcp://127.0.0.1:28332
zmqpubhashblock=tcp://127.0.0.1:28332
rpcallowip=127.0.0.1
rpcuser=bitcoin2
rpcpassword=local321
uacomment=bitcore
你能帮帮我吗?哪一步有什么问题?
答案 0 :(得分:2)
请查看此行的自述文件。
安装 npm install -g zcash-bitcore-node zcash-bitcore-node开始
要安装Zcash,请遵循Zcash Beta指南。将您的zcash-bitcore-node.json指向$ DIR / zcash / src / zcashd。
分别安装zcashd之后,将我的配置文件中的exec路径更改为指向该位置后,它可以正常工作:
"servicesConfig": {
"bitcoind": {
"spawn": {
"datadir": "/storage/zcash-testnet",
"exec": "/usr/bin/zcashd"
}
},
我知道这已经很晚了,但我希望它能对某人有所帮助!
为清晰起见,进行编辑。