CentOS編譯安裝nginx

來源:互聯網
上載者:User

標籤:nginx

安裝環境

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/7D/EE/wKioL1bzgTDiDHjIAAAJuCA1vYs492.png" title="QQ20160324135159.png" alt="wKioL1bzgTDiDHjIAAAJuCA1vYs492.png" />


安裝過程

1. 安裝pcre,否則第3步會報錯,“the HTTP rewrite module requires the PCRE library”

yum -y install pcre-devel openssl openssl-devel

2. 下載代碼

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz

3. 自動設定

./configure

4. 構建

make

5. 安裝,預設安裝到/usr/local/nginx/sbin/

make install

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M01/7D/F1/wKiom1bzfxPyiIwoAABS5Q9T42k130.png" title="QQ20160324134535.png" alt="wKiom1bzfxPyiIwoAABS5Q9T42k130.png" />

6. 添加PATH環境變數

vim /etc/profile# 添加export PATH=/usr/local/nginx/sbin:$PATH


本文出自 “自強不息,厚德載物” 部落格,請務必保留此出處http://wangzhichao.blog.51cto.com/2643325/1754659

CentOS編譯安裝nginx

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.