<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 服務器 官方開發的同步服務器,用于執行 "同步阻塞代碼",基于 [mix/sync-invoke](https://github.com/mix-php/sync-invoke) 封裝。 ## 啟動 啟動服務器: ~~~ php bin/mix.php si:start ~~~ 以上命令的各部分拆解如下: - `bin/mix.php` 為入口文件 - `si:start` 為命令 查看幫助: ~~~ php bin/mix.php si:start --help ~~~ `si:start` 包含以下可選參數: - `-d, --daemon` 程序在后臺執行 - `-p, --port` 指定服務器端口 - `-r, --reuse-port ` 端口復用,用于多開利用多核 ## 入口代碼 從 `manifest.php` 的 `commands` 或者 `commandPath` 配置我們能看到 `si:start` 命令啟動的是: [>> \App\SyncInvoke\Commands\StartCommand::class <<](https://github.com/mix-php/mix-skeleton/tree/v2.1/app/SyncInvoke/Commands/StartCommand.php) - 代碼非常簡單,就是啟動官方提供的 Mix\Sync\Invoke\Server,使用同步調用并不需要修改 app/src/Sync 模塊中的代碼,只需啟動與重啟該服務。 ## 命令管理 與 mix 之前版本不同的是,新版只提供了 start 命令,這是因為新版 mix 是單進程協程框架,因為是單進程所以可以直接通過 kill 停止執行,停止是平滑安全的這一點能在 StartCommand::class 的源碼中看到實現邏輯: ``` // 查找名為 mix 的進程 $> ps -ef | grep mix // kill指定pid $> kill [PID] ``` ## 熱更新 (僅限開發階段使用) 為了提升開發效率,我們提供了 [https://github.com/mix-php/swoolefor](https://github.com/mix-php/swoolefor) 工具,能監控文件系統變化,通過設置的命令自動重啟服務器,可用于修改代碼后自動重啟各種 Swoole 常駐服務器 (僅限開發階段使用)
                  <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>

                              哎呀哎呀视频在线观看