首页 > 其他 > 详细

nginx部署安装

时间:2015-11-24 18:48:56      阅读:286      评论:0      收藏:0      [点我收藏+]

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

/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 开启

打开网页测试

本文出自 “cccc” 博客,请务必保留此出处http://10807340.blog.51cto.com/10797340/1716362

nginx部署安装

原文:http://10807340.blog.51cto.com/10797340/1716362

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!