<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 一、安裝 ## **依賴** ``` yum -y install pcre-devel ``` ``` yum -y install openssl openssl-devel ``` ## **下載** ``` wget http://nginx.org/download/nginx-1.21.6.tar.gz ``` 然后解壓下載的目錄,進入解壓目錄中,在編譯安裝之前,需要安裝兩個依賴: ``` tar -zxvf nginx-1.21.6.tar.gz ``` 進入解壓后的目錄: ``` cd nginx-1.21.6 ``` ## **然后開始編譯安裝** 先創建目標目錄: ``` mkdir -p /usr/lib/app/nginx ``` 然后正式安裝: ``` 1. ./configure --prefix=/usr/lib/app/nginx 2. make 3. make install ``` ## **可能的問題** 安裝中間,可能會出現要求安裝其他第三方庫的情況,那么,按照要求,安裝就可以了,如;比如; 問題: ``` ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=<path> option. ``` 解決辦法: ``` yum install -y pcre pcre-devel ``` 問題: ``` ./configure: error: the HTTP gzip module requires the zlib library. You can either disable the module by using --without-http_gzip_module option, or install the zlib library into the system, or build the zlib library statically from the source with nginx by using --with-zlib=<path> option. ``` 解決辦法: ``` yum install -y zlib zlib-devel ``` 問題: ``` ./configure: error: C compiler cc is not found ``` 解決辦法: ``` yum -y install gcc-c++ ``` 然后,再重新執行中斷的./configure ## **裝好之后,安裝位置在指定的地方,如果沒有指定,默認有個安裝位置** ``` /usr/local/nginx/ ``` ## 二、驗證 進入到該目錄的 sbin目錄下,執行 nginx即可啟動Nginx: ``` cd /usr/local/nginx/sbin ./nginx ``` ![](https://img.kancloud.cn/04/1f/041f1ecc303fe92fd0fada3095b415a1_260x72.png) Nginx 啟動成功之后,在瀏覽器中直接訪問了; >[danger] 如果不能訪問,看看是不是防火墻的80端口沒有打開; ## 三、卸載 停止Nginx軟件 ``` nginx -s stop ``` 查找根下所有名字包含nginx的文件 ``` find / -name nginx ``` 執行命令 rm -rf *刪除nignx安裝的相關文件 ``` rm -rf ```
                  <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>

                              哎呀哎呀视频在线观看