<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 單體 ## 1. 前端代碼部署 ### 1.1 前端首頁位置 nginx => html 內容 首頁(index.html)在html的文件夾中, 初始index在 mall 文件夾下 ### 1.2 前端請求后臺地址 ``` http://ip:80/api ``` ## 2. nginx配置 訪問地址: ip ``` # ip是具體ip地址 upstream mytomcats { # weight 權重方式的負載均衡 server ip:8080 weight=2; server ip:8081 weight=8; } # 監聽 80 端口 server { listen 80; server_name ip; #charset koi8-r; #access_log logs/host.access.log main; location / { # 轉到nginx/html下的mall文件夾下 root html/mall; # 設置上面root文件夾下的index.html為主頁 index index.html index.htm; } # 請求格式 ip:80/api/ 的接口會被這里匹配 location /api/ { #允許跨域請求的域,*代表所有 add_header 'Access-Control-Allow-Origin' *; #允許帶上cookie請求 add_header 'Access-Control-Allow-Credentials' 'true'; #允許請求的方法,比如 GET/POST/PUT/DELETE add_header 'Access-Control-Allow-Methods' *; #允許請求的header add_header 'Access-Control-Allow-Headers' *; # 負載均衡時配置, 否則不需要 # 負載均衡服務器 upstream mytomcats # 末尾不加 / 可能會404 proxy_pass http://mytomcats/api/; } } ``` # 集群 再次安裝一個nginx 如果是同一個服務器進行安裝 ``` 之前解壓的nginx文件夾還存在, 就可以跳過之前的步驟 mkdir /var/temp/nginx-1.18.0 -p ./configure --prefix=/usr/local/nginx-1.18.0 --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/nginx.lock --error-log-path=/var/log/nginx-1.18.0/error.log --http-log-path=/var/log/nginx-1.18.0/access.log --with-http_gzip_static_module --http-client-body-temp-path=/var/temp/nginx-1.18.0/client --http-proxy-temp-path=/var/temp/nginx-1.18.0/proxy --http-fastcgi-temp-path=/var/temp/nginx-1.18.0/fastcgi --http-uwsgi-temp-path=/var/temp/nginx-1.18.0/uwsgi --http-scgi-temp-path=/var/temp/nginx-1.18.0/scgi 其他步驟不變, 主要是把之前的文件夾是nginx 現在改為 nginx-1.18.0 ```
                  <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>

                              哎呀哎呀视频在线观看