1. 本地
1.1. 安装
来自源
go get github.com/micro/micro/v2
发行二进制
# MacOS
curl -fsSL https://raw.githubusercontent.com/micro/micro/master/scripts/install.sh | /bin/bash
# Linux
wget -q https://raw.githubusercontent.com/micro/micro/master/scripts/install.sh -O - | /bin/bash
# Windows
powershell -Command "iwr -useb https://raw.githubusercontent.com/micro/micro/master/scripts/install.ps1 | iex"
1.2. 运行
运行 micro 像输入 micro
一样简单.
# Display the commands
micro --help
运行服务器
micro server