Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS
Posted
技术标签:
【中文标题】Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS【英文标题】: 【发布时间】:2017-06-15 16:34:36 【问题描述】:我在 DigitalOcean 有一台安装了 Ubuntu 的服务器,并使用 rpc 运行了 bitcoind。
我的 Amazon AWS CentOs 服务器 bitcoin-cli 可以工作,但 EasyBitcoin-php 不能工作,它返回 0:
$bitcoin = new Bitcoin('username','password','myipaddress','8332');
echo "Status: ".$bitcoin->status;
Bitcoin.conf
server=1
daemon=1
rpcuser=username
rpcpassword=password
rpcport=8332
rpcallowip=myipaddress
查看此图片。在工作的 DigitalOcean Ubuntu 服务器上,它包括 AddLocal(192.81.219.224:18333,1)
和 Discover: IPv4 eth0: 192.81.219.224
我还尝试将 -discover=1
添加到 AWS CentOS,但它没有做任何新的事情,仍然无法正常工作。
我猜这可能与亚马逊的 Elastic IP 或其他什么有关?
【问题讨论】:
【参考方案1】:解决方法是:
setsebool -P httpd_can_network_connect 1
亚马逊 AWS 最初显然限制了 httpd 网络连接。
【讨论】:
以上是关于Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS的主要内容,如果未能解决你的问题,请参考以下文章
Bitcoind JSON-RPC:Java Jersey 客户端:来自服务器错误的文件意外结束