首页 > 其他 > 详细

ngnix 配置反向代理

时间:2017-05-07 19:09:50      阅读:304      评论:0      收藏:0      [点我收藏+]

 

通过shell 脚本

#!/bin/bash

yum -y install wget pcre-devel openssl openssl-devel libtool gcc automake autoconf libtool make

wget http://nginx.org/download/nginx-1.6.3.tar.gz

tar -zxvf nginx-1.6.3.tar.gz -C /usr/local

cd /usr/local/nginx-1.6.3

./configure --prefix=/usr/local/nginx-1.6.3 --with-http_stub_status_module --with-http_ssl_module

make && make install?

 

cd /usr/local/nginx-1.6.3/cnf

修改配置文件

 

 

技术分享

 

 

然后

nginx -s reload

 

 

看效果

技术分享

 

ngnix 配置反向代理

原文:http://www.cnblogs.com/itxuexiwang/p/6821685.html

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