mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Update startFabric.sh
delete set /etc/hosts Signed-off-by: Acmefocus <107723772@qq.com>
This commit is contained in:
parent
110b7024ea
commit
2933d88be4
1 changed files with 1 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue