我刚刚在 Ubuntu 16.04 服务器上启动了一些 docker 服务。我出于测试目的禁用了 ufw。但是端口没有监听服务器。当我在浏览器中输入 http:// 时,它显示连接已重置。有任何方法可以监听此端口的外部连接。我是 Ubuntu 操作系统的初学者。抱歉,我的问题太简单了。
orderer0.Myname.com:
extends:
file: docker-compose-base.yml
service: orderer
container_name: orderer0.Myname.com
environment:
- ORDERER_HOST=orderer0.Myname.com
- CONFIGTX_ORDERER_ORDERERTYPE=kafka
- CONFIGTX_ORDERER_KAFKA_BROKERS=[kafka0:9092,kafka1:9092,kafka2:9092,kafka3:9092]
- ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s
- ORDERER_KAFKA_RETRY_SHORTTOTAL=30s
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_LOCALMSPID=MynameOrderer
- ORDERER_GENERAL_GENESISPROFILE=SampleInsecureKafka
- ORDERER_ABSOLUTEMAXBYTES=${ORDERER_ABSOLUTEMAXBYTES}
- ORDERER_PREFERREDMAXBYTES=${ORDERER_PREFERREDMAXBYTES}
volumes:
- ../crypto-config/ordererOrganizations/Myname.com/orderers/orderer0.Myname.com/msp:/var/hyperledger/msp
- ../crypto-config/ordererOrganizations/Myname.com/orderers/orderer0.Myname.com/tls:/var/hyperledger/tls
- ../config/:/var/hyperledger/config
depends_on:
- kafka0
- kafka1
- kafka2
- kafka3
networks:
behave:
aliases:
- ${CORE_PEER_NETWORKID}
ports:
- 7050:7050
我已经运行 docker ps 命令并验证服务已启动。