Ubuntu安裝nginx-1.6.2

來源:互聯網
上載者:User

標籤:http   io   os   ar   sp   on   log   html   bs   

1、在執行完./configure 和make install 後出現

test -d ‘/usr/local/nginx/logs‘         || mkdir -p ‘/usr/local/nginx/logs‘
test -d ‘/usr/local/nginx/logs‘ ||         mkdir -p ‘/usr/local/nginx/logs‘
test -d ‘/usr/local/nginx/html‘         || cp -R html ‘/usr/local/nginx‘
test -d ‘/usr/local/nginx/logs‘ ||         mkdir -p ‘/usr/local/nginx/logs‘
make[1]:正在離開目錄 `/home/hadoop/nginx-1.6.2‘
2、配置玩環境變量後,要驗證下安裝nginx是否安裝成功時候出現錯誤提示。

環境變量配置:

export NGINX_HOME=/xx/xx/ nginx-1.6.2 

export PATH=$PATH:$NGINX_HOME/sbin

3、oop:~/nginx-1.6.2$ nginx -v
程式 ‘nginx‘ 已包含在下列軟體包中:
 * nginx-core
 * nginx-extras
 * nginx-full
 * nginx-light
 * nginx-naxsi
請嘗試:sudo apt-get install <選定的軟體包>

4、分別 安裝上述 幾個包:sudo apt-get install  nginx-core  等5個包

5、doop:~/nginx-1.6.2$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)   安裝成功。
後記: 我在centos 下一直安裝dao ./configure 的時候一直出現

./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. 錯誤提示。還沒有解決

 

Ubuntu安裝nginx-1.6.2

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.