安裝nginx的步驟 樹莓派桌面版環境(Debian)
阿新 • • 發佈:2018-01-01
load install 安裝包 /usr .net nbsp art host style
感謝:http://blog.csdn.net/shennongminblog/article/details/76158397 在此基礎上 使用源碼安裝比較容易
- 獲取pcre編譯安裝包,在http://www.pcre.org/上可以獲取當前最新的版本
- 解壓縮pcre-xx.tar.gz包。
- 進入解壓縮目錄,執行./configure。
- make & make install
- 獲取openssl編譯安裝包,在http://www.openssl.org/source/上可以獲取當前最新的版本。
- 解壓縮openssl-xx.tar.gz包。
- 進入解壓縮目錄,執行./config。
- make & make install
- 獲取zlib編譯安裝包,在http://www.zlib.net/上可以獲取當前最新的版本。
- 解壓縮openssl-xx.tar.gz包。
- 進入解壓縮目錄,執行./configure。
- make & make install
- 獲取nginx,在http://nginx.org/en/download.html上可以獲取當前最新的版本。
- 解壓縮nginx-xx.tar.gz包。
- 進入解壓縮目錄,執行./configure
- make & make install
然後記住要啟動Nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
然後查看他的進程:
ps -ef | grep nginx
如果有:
那麽打開本機瀏覽器,輸入localhost
則看到:
安裝nginx的步驟 樹莓派桌面版環境(Debian)