简体   繁体   中英

Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS

I have a server at DigitalOcean with Ubuntu installed and bitcoind with rpc which IS working.

With my Amazon AWS CentOs server bitcoin-cli is working but not EasyBitcoin-PHP, it's returning 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

Checkout this image. On the working DigitalOcean Ubuntu server it includes AddLocal(192.81.219.224:18333,1) AND Discover: IPv4 eth0: 192.81.219.224 在此处输入图片说明

I also tried to add -discover=1 to the AWS CentOS but it didn't do anything new and still isn't working.

I'm guessing it may have to do with Amazon's Elastic IP's or something?

The fix was:

setsebool -P httpd_can_network_connect 1

Amazon AWS apparently limits httpd network connections initially.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM