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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                >[danger] 該服務依賴 Swoole 擴展,Windows下無法執行。 ## `mix-httpd` 服務器 `mix-httpd` 是官方開發的 HTTP 服務器,用于執行 "HTTP 服務",基于 Swoole 擴展的 `swoole_http_server`,擁有比 Apache/PHP-FPM 更高的性能。 >[info] mix-httpd 其實就是一個使用 MixPHP 開發的一個命令行應用程序。 ## 位置 默認代碼 `httpd` 模塊中有集成 `mix-httpd` 服務器,代碼路徑為: ~~~txt apps/httpd/commands/ServiceCommand.php ~~~ 入口文件為: ~~~txt bin/mix-httpd ~~~ ## 配置文件 mix-httpd 的配置文件路徑為: ~~~shell apps/httpd/config/httpd.php ~~~ 只需要配置文件內的 `httpServer` 字段內的參數即可,如下: ### `host` 參數 設置服務器綁定的主機。 ### `port` 參數 設置服務器綁定的端口。 ### `configFile` 參數 執行在 `mix-httpd` 服務器內的 HTTP 應用的配置文件。 ### `settings` 參數 正式環境需設置合適的運行參數,與性能相關,非常重要。 全部參數列表:https://wiki.swoole.com/wiki/page/274.html ## 命令管理 mix-httpd 集成了一些命令,讓用戶能很方便的操作服務器。 >[info] 請使用 root 賬號啟動 mix-httpd。 全部命令如下: - service start : 啟動服務器。 - service stop : 停止服務器。 - service restart : 重啟服務器。 - service reload : 重啟所有工作進程,用于刷新代碼。 `service start` 命令有兩個很好用的參數: - -d : 后臺運行 (為了方便錯誤調試,不建議在開發階段使用該參數)。 - -u : 代碼熱更新 (開發階段使用),需關閉 PHP 的 OPcache,該參數會使 worker 進程只處理一次請求就銷毀,所以不要在生產環境中使用。 在命令行使用以下命令管理: ~~~shell // 查看幫助 mix-httpd -h // 啟動 mix-httpd service start // 啟動(守護) mix-httpd service start -d // 啟動(守護 + 熱更新) mix-httpd service start -d -u // 停止 mix-httpd service stop // 重啟 mix-httpd service restart // 重啟工作進程 mix-httpd service reload // 狀態 mix-httpd service status ~~~
                  <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>

                              哎呀哎呀视频在线观看