Back

[**] - 搭建节点的注意事项(端口号,RPC等)btc/bitcoin, usdt(omnicore), eth

发布时间: 2019-07-05 01:45:00

端口:

btc:  

8332,   但是    8333 要开启(给公网用)

usdt:  

8332,  但是 8333 要开启(给公网用)

eth:  

8800(如果是json-rpc的定制端口的话)内网, 但是   30303 要开启. (给公网用)

8545, 8546 tcp

30303  (tcp 和 udp 都需要开启)

btc  有时候BTC需要配置一下bindaddress, 否则内网访问不了。 配置文件

ubuntu@cadae-btc:~$ cat ~/.bitcoin/bitcoin.conf 
server=1   # 这里是对json-rpc请求可以相应
daemon=1  # 使用独立进程模式.(守护进程)

# If run on the test network instead of the real bitcoin network
# testnet=0    , 这里是直接使用生产网络,不是测试网络.

# You must set rpcuser and rpcpassword to secure the JSON-RPC api
# Please make rpcpassword to something secure, `5gKAgrJv8CQr2CGUhjVbBFLSj29HnE6YGXvfykHJzS3k` for example.
# Listen for JSON-RPC connections on  (default: 8332 or testnet: 18332)
rpcuser=cadae
rpcpassword=shunli666
rpcport=8332
rpcbind=172.31.15.11  # 这里就是需要独立指定IP。 否则访问不了。 BTC出现过该问题,其他的没有。

rpcallowip=127.0.0.1
rpcallowip=172.31.10.169
rpcallowip=172.31.15.11

# 把各种区块放在这里.
datadir=/opt/btc_data

Back