nginx部署安装

查看线上部署的版本及安装路径、模块

/usr/local/nginx/sbin/nginx -V

nginx version: nginx/1.8.0

built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 

built with OpenSSL 1.0.0-fips 29 Mar 2010

TLS SNI support enabled

configure arguments: --prefix=/usr/local/nginx --with-http_gzip_static_module --with-http_ssl_module

下载nginx包

http://pan.baidu.com/s/1kTtplxd

tar zxvf nginx-1.8.0.tar.gz 

cd nginx-1.8.0

./configure  --prefix=/usr/local/nginx --with-http_gzip_static_module --with-http_ssl_module

提示:问题解决  

./configure: error: C compiler cc is not found

yum instaill gcc

/configure: error: the HTTP rewrite module requires the PCRE library.

yum install pcre pcre-devel

./configure: error: SSL modules require the OpenSSL library.

yum install openssl-devel

安装

./configure  --prefix=/usr/local/nginx --with-http_gzip_static_module --with-http_ssl_module

make && make install

测试

/usr/local/nginx/sbin/nginx 开启

打开网页测试

你可能感兴趣的:(error,local,version,support)