Getting ready…

  1. Start consul agent by executing the following command:
$ consul agent -dev
  1. Install and run micro by executing the following commands:
$ go get github.com/micro/micro
$ micro api
2018/02/06 00:03:36 Registering RPC Handler at /rpc
2018/02/06 00:03:36 Registering API Default Handler at /
2018/02/06 00:03:36 Listening on [::]:8080
2018/02/06 00:03:36 Listening on [::]:54814
2018/02/06 00:03:36 Broker Listening on [::]:54815
2018/02/06 00:03:36 Registering node: go.micro.api-a6a82a54-0aaf-11e8-8d64-685b35d52676
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.179.35