From 2933d88be42ee995054bc3983456df45dd8e53d7 Mon Sep 17 00:00:00 2001 From: Acmefocus <37472851+Acmefocus@users.noreply.github.com> Date: Wed, 8 Jul 2020 14:51:52 +0800 Subject: [PATCH] Update startFabric.sh delete set /etc/hosts Signed-off-by: Acmefocus <107723772@qq.com> --- fabcar/startFabric.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/fabcar/startFabric.sh b/fabcar/startFabric.sh index 45c6f85e..d82b48d3 100755 --- a/fabcar/startFabric.sh +++ b/fabcar/startFabric.sh @@ -109,22 +109,10 @@ Go: Start by changing into the "go" directory: cd go - Next, set hosts: - sudo vim /etc/hosts - - add Under the content into /etc/hosts - ip peer0.org1.example.com - ip peer0.org2.example.com - ip peer0.org2.example.com - - for example: - 127.0.0.1 peer0.org1.example.com peer0.org2.example.com orderer.example.com - Set environment variable DISCOVERY_AS_LOCALHOST to true, to indicate to ServiceDiscovery that all hostnames maps to localhost Then, install dependencies and run the test using: - 1. export DISCOVERY_AS_LOCALHOST=true - 2. go run fabcar.go + go run fabcar.go or ./runfabcar.sh