我目前在基本的第一个网络上运行hyperledger Explorer时遇到问题,用./createdb.sh设置postgresql并运行./main.sh安装没有问题后,我碰巧卡在./main.sh测试中显示错误的命令:
PS:我还编辑了explorerconfig.json,如下所示,并且我还在postgrespgtest.js进行了一些更改,如下所示。
Me.Form.Requery
带有:
explorerconfig.json
{
"persistence": "postgreSQL",
"platforms": ["fabric"],
"postgreSQL": {
"host": "127.0.0.1",
"port": "5432",
"database": "fabricexplorer",
"username": "postgres",
"passwd": "1234"
},
"sync": {
"type": "local",
"platform": "fabric",
"blocksSyncTime": "1"
},
"jwt": {
"secret": "a secret phrase!!",
"expiresIn": "2h"
}
}
出现错误消息:
postgrespgtest.js
...
const options = {
testdb: 'pgtestdb',
messages: false,
connection: {
host: pgconfig.host,
port: pgconfig.port,
user: 'postgres',
password: '1234'
}
};
...
有人知道是什么引起了问题吗? 附注:如果资源不足,请发表评论,我会尽力给您