首页 > 其他 > 详细

nginx-01

时间:2018-12-11 01:08:32      阅读:218      评论:0      收藏:0      [点我收藏+]

系统 centos

1、下载

nginx.org 下载网站 http://nginx.org/  ------------>本次选择的版本  http://nginx.org/download/nginx-1.11.3.tar.gz

nginx-upstream-fair --->  https://github.com/gnosek/nginx-upstream-fair

echo-nginx-module ---> wget https://github.com/openresty/echo-nginx-module/archive/v0.59.tar.gz

ngx_cache_purge-2.3  --->  http://labs.frickle.com/nginx_ngx_cache_purge/

2、将下载的包解压到路径 /usr/local/src

3、创建路径命令

  mkdir -p /usr/local/nginx/{logs,conf,fastcgi_temp,sbin,client_body_temp,proxy_temp,uwsgi_temp,scgi_temp}

4、进入nginx目录

./configure --prefix=/usr/local/nginx/\
--sbin-path=/usr/local/nginx/sbin/\
--with-http_ssl_module\
--conf-path=/usr/local/nginx/conf/nginx.conf\
--pid-path=/usr/local/nginx/logs/nginx.pid\
--error-log-path=/usr/local/nginx/logs/error.log\
--http-log-path=/usr/local/nginx/logs/access.log\
--http-fastcgi-temp-path=/usr/local/nginx/fastcgi_temp\
--http-client-body-temp-path=/usr/local/nginx/client_body_temp\
--http-proxy-temp-path=/usr/local/nginx/proxy_temp\
--http-uwsgi-temp-path=/usr/local/nginx/uwsgi_temp\
--http-scgi-temp-path=/usr/local/nginx/scgi_temp\
--add-module=/usr/local/src/echo-nginx-module-0.59\
--add-module=/usr/local/src/nginx-upstream-fair\
--add-module=/usr/local/src/ngx_cache_purge-2.3

 

make

make install

5、进入 /usr/local/nginx/sbin/

  执行 nginx

6、访问IP

  

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

 

nginx-01

原文:https://www.cnblogs.com/blog-747674599/p/10100023.html

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