问题描述
我无法从本地主机或虚拟主机连接到我的比特币rpc(托管在digitalocean的docker上)。
我尝试更改配置文件以接受任何连接,我使用sudo afw打开了端口,但仍然没有运气。 我得到服务器连接被拒绝为错误。 我的配置日志(详细信息已删除)
我能够从cli等getnetworkinfo执行命令。 我已经使用BTCPay设置了服务器
当我查看debug.log时,我注意到它使用了加载不同的配置文件。从/home/bitcoin/.bitcoin/bitcoin.conf(我根本找不到该文件) 而我的位于/ var / lib / docker / volumes / generation_bitcoin_datadir / _data
mainnet=1
[main]
walletdir=/walletdata/mainnet
server=1
daemon=1
rpcallowip=0.0.0.0/0
rpcbind=0.0.0.0
printtoconsole=1
port=39388
maxmempool=500
rpcuser=user
rpcpassword=user
# We need to use rpcauth because we also need cookieauth. rpcpassword disabled cookie file auth.
# Be careful if you copy the line below from the docker-compose.yml! A dollar sign is escaped.
rpcauth=
prune=25000
zmqpubrawblock=tcp://0.0.0.0:28332
zmqpubrawtx=tcp://0.0.0.0:28333
zmqpubhashblock=tcp://0.0.0.0:28334
onion=tor:9050
# rpcuser=
# rpcpassword=
# We need to use rpcauth because we also need cookieauth. rpcpassword disabled cookie file auth.
# Be careful if you copy the line below from the docker-compose.yml! A dollar sign is escaped.
rpcauth=
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)