<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之旅 廣告
                ## 1. 下載Nginx [下載nginx](http://nginx.org/en/download.html) [參考](https://www.jianshu.com/p/b08c5e30cc73) [參考](https://xinwenke.top/douban403/) ## 2. 打開解壓文件下的 `/conf/nginx.conf` 修改`server{}` ``` location /v2/ { proxy_store off; proxy_redirect off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Referer 'no-referrer-when-downgrade'; proxy_set_header User-Agent 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36'; proxy_connect_timeout 600; proxy_read_timeout 600; proxy_send_timeout 600; proxy_pass https://api.douban.com/v2/; } ``` ## 3. 更改配置后保存,在nginx.exe 文件夾下打開命令窗口,輸入start nginx,啟動后每次修改配置,使用nginx -s reload 重啟 ### 3.1. 在命令行中進入nginx ![](https://box.kancloud.cn/732a82c15fd7b37375aad383801e069a_550x213.PNG) ``` start nginx : 啟動nginx nginx -s reload :修改配置后重新加載生效 ``` ## 4.使用 參考鏈接 node.js 和 小程序都有 ### 小程序 ![](https://box.kancloud.cn/7183eefdcfe7bbfedc0c318b15beebc3_671x290.PNG) >請求頭要改 ``` wx.request({ url: 'http://localhost/v2/movie/in_theaters', // url: 'http://localhost', method: 'GET', header: { 'content-type': 'application/xml' }, success: function (res) { console.log(res) } }) ``` ## 5.關閉nginx: > nginx -s stop :快速停止nginx > nginx -s quit :完整有序的停止nginx
                  <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>

                              哎呀哎呀视频在线观看