码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu安裝nginx-1.6.2

时间:2014-10-30 18:43:42      阅读:316      评论:0      收藏:0      [点我收藏+]

标签: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

标签:http   io   os   ar   sp   on   log   html   bs   

原文地址:http://www.cnblogs.com/zhanggl/p/4063203.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!