<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] > [github.com](https://github.com/mattn/goreman) ## 安裝 `go get github.com/mattn/goreman` ## 概述 控制多個服務的批量啟動與單獨啟動 ## 實例1 同級目錄創建 Procfile與main.go <details> <summary>Procfile</summary> ``` web1: main.exe -p :9002 goweb: main.exe -p :9003 ``` </details> <br/> <details> <summary>main.go</summary> ``` package main import ( "flag" "fmt" "net/http" "os" ) var addr = flag.String("p", ":8080", "address") func main() { flag.Parse() http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "hello "+os.Getenv("AUTHOR")) }) http.ListenAndServe(*addr, nil) } ``` </details> <br/> 執行 ``` > goreman.exe start 09:59:17 web1 | Starting web1 on port 5000 09:59:17 goweb | Starting goweb on port 5100 > goreman.exe run status *web1 *goweb > goreman.exe run stop goweb > goreman.exe run status *web1 goweb ``` ## 實例2 可按順序啟動,如下 ``` # 先啟動Zookeeper goreman run start zookeeper # 然后啟動kafka goreman run start broker # 查看進程狀態 goreman run status # 停止broker進程 goreman run stop broker # 重啟broker進程 goreman run restart broker ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看