在 ubuntu 服务器中设置 zcash 时出现错误
Getting error while zcash setup in ubuntu server
我已经尝试在我的本地机器上安装 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>
我的配置文件 (zcash-bitcore-node.json)
{
"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"
}
}
}
}
Zcash 配置 (zcash.conf)
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
你能帮我一下吗?哪一步错了?
查看自述文件这一行。
Install
npm install -g zcash-bitcore-node
zcash-bitcore-node start
To install Zcash, follow the Zcash Beta Guide. Point your zcash-bitcore-node.json to $DIR/zcash/src/zcashd.
单独安装 zcashd 然后更改我的配置文件中的 exec 路径以指向该位置后,它工作正常:
"servicesConfig": {
"bitcoind": {
"spawn": {
"datadir": "/storage/zcash-testnet",
"exec": "/usr/bin/zcashd"
}
},
我知道这已经很晚了,但我希望它对某人有所帮助!
为清楚起见,编辑..
我已经尝试在我的本地机器上安装 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>
我的配置文件 (zcash-bitcore-node.json)
{
"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"
}
}
}
}
Zcash 配置 (zcash.conf)
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
你能帮我一下吗?哪一步错了?
查看自述文件这一行。
Install npm install -g zcash-bitcore-node zcash-bitcore-node start
To install Zcash, follow the Zcash Beta Guide. Point your zcash-bitcore-node.json to $DIR/zcash/src/zcashd.
单独安装 zcashd 然后更改我的配置文件中的 exec 路径以指向该位置后,它工作正常:
"servicesConfig": {
"bitcoind": {
"spawn": {
"datadir": "/storage/zcash-testnet",
"exec": "/usr/bin/zcashd"
}
},
我知道这已经很晚了,但我希望它对某人有所帮助!
为清楚起见,编辑..