<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## Golang 支持在一個平臺下生成另一個平臺可執行程序的交叉編譯功能。 Mac下編譯Linux, Windows平臺的64位可執行程序: ``` CGO\_ENABLED=0 GOOS=linux GOARCH=amd64 go build test.go CGO\_ENABLED=0 GOOS=windows GOARCH=amd64 go build test.go ``` Linux下編譯Mac, Windows平臺的64位可執行程序: ``` CGO\_ENABLED=0 GOOS=darwin GOARCH=amd64 go build test.go CGO\_ENABLED=0 GOOS=windows GOARCH=amd64 go build test.go ``` Windows下編譯Mac, Linux平臺的64位可執行程序: ``` SET CGO\_ENABLED=0 SET GOOS=darwin3 SET GOARCH=amd64 ``` go build test.go SET CGO\_ENABLED=0 SET GOOS=linux SET GOARCH=amd64 go build test.go GOOS:目標可執行程序運行操作系統,支持 darwin,freebsd,linux,windows GOARCH:目標可執行程序操作系統構架,包括 386,amd64,arm ## 使用bee工具打包 `bee pack` 會順便把靜態文件也打包起來,生成一個***.tar.gz文件,將這個文件復制到你的服務器上,再解壓到wwwroot/go/blog/目錄下,再啟動 ``` nohup ./blog & ``` 看一下啟動的服務內容 `tail nohup.out` ## nginx反向代理 監聽8090端口,你可以部署為監聽80端口 服務器名為localhost,你可以部署為你的域名 然后將你的127.0.0.1:8091反向代理到你的網站上。 將以下test.conf放入nginx/server/下,重啟nginx就可以了 ``` server{ listen 80; server_name test.com; location /{ try _files / _not_existes_ @backend; } location @backend{ proxy_pass http://127.0.0.1:8080; } } ``` ![](https://img.kancloud.cn/04/38/0438c4d43f1860aa9c2205d6fd5de9e8_1339x428.JPG) ### ngin雙機部署 ![](https://img.kancloud.cn/30/ed/30edfbc98561c0a2892ad9fff6f9258b_1223x494.JPG) 問題來了,雙機部署后,session永遠沒法存在一個機器上,所以要在upstream中加入ip_hash, 如圖: ![](https://img.kancloud.cn/c6/4f/c64fdc12a73b945105c28b408a9e824f_1216x495.JPG)
                  <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>

                              哎呀哎呀视频在线观看