<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # **php版本要求:** ``` PHP >= 7.1.0 ``` # **安裝:** ## **更換鏡像源** ~~~ composer config -g repo.packagist composer https://packagist.phpcomposer.com ~~~ 或者 ~~~ composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ ~~~ ## **compoer安裝:** >[info] **安裝穩定版** 如果你是第一次安裝的話,在命令行下面,切換到你的WEB根目錄下面并執行下面的命令: ~~~ composer create-project topthink/think tp6 ~~~ 這里的`tp6`目錄名你可以任意更改,這個目錄就是我們后面會經常提到的應用根目錄 此安裝包含默認的插件包 ``` Package operations: 15 installs, 0 updates, 0 removals - Installing topthink/think-helper (v3.1.5): Downloading (100%) - Installing psr/log (1.1.4): Downloading (100%) - Installing psr/simple-cache (1.0.1): Downloading (100%) - Installing topthink/think-orm (v2.0.44): Downloading (100%) - Installing symfony/polyfill-php80 (v1.23.1): Downloading (100%) - Installing symfony/polyfill-php72 (v1.23.0): Downloading (100%) - Installing symfony/polyfill-mbstring (v1.23.1): Downloading (100%) - Installing symfony/var-dumper (v4.4.27): Downloading (100%) - Installing psr/container (1.1.1): Downloading (100%) - Installing psr/cache (1.0.1): Downloading (100%) - Installing league/mime-type-detection (1.7.0): Downloading (100%) - Installing league/flysystem (1.1.4): Downloading (100%) - Installing league/flysystem-cached-adapter (1.1.0): Downloading (100%) - Installing topthink/framework (v6.0.9): Downloading (100%) - Installing topthink/think-trace (v1.4): Downloading (100%) ``` >[info] **安裝穩定版(核心庫?)** ``` composer update topthink/framework ``` >[info] 安裝開發版 ~~~ composer create-project topthink/think tp 6.0.x-dev tp6 ~~~ >[info] **cd進入上面的tp6目錄 更新核心庫** ~~~ composer update topthink/framework ~~~ ## **注意** >[danger] 1.在實際的部署中,請確保只有`public`目錄可以對外訪問。 2.在`mac`或者`linux`環境下面,注意需要`chmod -R 777 ./runtime`設置`runtime`目錄權限為777。 3.如果將根目錄設置為public后訪問出現500錯誤,這時我們需要在php.ini設置`display_errors = on`和`display_startup_errors = on`,這時你可能會看到Warning:? **require():?open\_basedir?restriction?in?effect.**的錯誤,這是因為linux下是不能跨目錄訪問的,我們只能訪問到public及其子目錄的內容,所以我們需要設置成能訪問public同級及其子目錄,假如網站根目錄時public,如nginx設置為:root /home/wwwroot/tp5/public;通常情況下默認的值是`open_basedir = "/home/wwwroot/tp5/public/:/tmp/:/var/tmp/:/proc/` 所以我們要將將php.ini中的open_basedir參數改為`open_basedir = "/home/wwwroot/tp5/:/tmp/:/var/tmp/:/proc/"` 其他方法參見[跨目錄設置](http://www.hmoore.net/a173512/php_note/2399219) ## **安裝think-view** 如果你需要使用`think-template`模板引擎,只需要安裝`think-view`模板引擎驅動。 ~~~ composer require topthink/think-view ~~~ > 視圖相關的配置在配置目錄的`view.php`配置文件中進行定義。 通常可以直接使用`think\facade\View`來操作視圖。 ## **安裝多應用模式擴展** ``` composer require topthink/think-multi-app ``` ## **安裝ORM擴展** >[danger]如果是nginx需要修改配置文件root項為public `location / {root /home/wwwroot/public}` `location ~ \.php$ {root /home/wwwroot/public}`:注意此選項需要啟動php-fpm:`nohup ./php-fpm >test.log&` nginx默認不支持pathinfo訪問模式的,我們需要額外的進行配置
                  <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>

                              哎呀哎呀视频在线观看