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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 15. 安裝最新 nginx 的另類方法 有時候我們在ubuntu等服務器用apt-get安裝的nginx并不是最新的,要編譯又太麻煩。 我們需要快速安裝最新版本的nginx,可以用下面的方法。 #### 1. homebrew-nginx 在mac系統下,可以使用homebrew,這種方法可以裝一些自己需要模塊,這些都是homebrew提供給我們的。 它的地址是:<https://github.com/Homebrew/homebrew-nginx> 安裝方法如下: ``` $ brew tap homebrew/nginx $ brew install nginx-full ``` 具體的安裝模塊的方法,看上面的地址就好了。 #### 2. linuxbrew 在linux下,沒有真正的homebrew,不過有人仿照homebrew寫了一個linuxbrew。 它的地址是:<https://github.com/Linuxbrew/brew> 先安裝linuxbrew。 ``` $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)" $ echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile ``` 裝好之后,就可以使用`brew`命令安裝你想要的軟件。 像上面那樣安裝最新版本的nginx。 #### 3. 通過軟件源安裝 它的地址是:[http://nginx.org/en/linux\_packages.html](http://nginx.org/en/linux_packages.html) 找到適合你的發行版進行安裝即可。 如果是ubuntu 16.04安裝nginx,就可以使用下面的源: ``` # /etc/apt/sources.list deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx ``` 如果是14.04就把xenial換成trusty。 然后: ``` wget http://nginx.org/keys/nginx_signing.key sudo apt-key add nginx_signing.key sudo apt-get update sudo apt-get install nginx ``` #### 4. nginx-build 最后一種方法是使用[nginx-build](https://github.com/cubicdaiya/nginx-build)來安裝nginx。 如果你是mac系統,可以先安裝`nginx-build`。 ``` brew tap cubicdaiya/nginx-build brew install nginx-build ``` ``` nginx-build -d work ``` 它會構建一個目錄叫`work`,里面有它的源碼,配置等。 之后: ``` cd work/nginx/1.11.6/nginx-1.11.6 sudo make install ``` 它在構建的時候可以加一些參數,比如指定版本,指定第三方模塊,指定安裝的路徑等。 完結。
                  <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>

                              哎呀哎呀视频在线观看