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