#wget http://nginx.org/download/nginx-1.15.8.tar.gz
#wget https://github.com/alibaba/nginx-http-concat/archive/master.zip -O nginx-http-concat-master.zip
# unzip nginx-http-concat-master.zip
# tar -xzvf nginx-1.15.8.tar.gz
# cd nginx-1.15.8html
# ./configure --prefix=/chimy/nginx/nginx.1.15.8 --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-stream --with-stream_ssl_module --add-module=../ngx_concat_module --add-module=../nginx-http-concat-mastermysql
#make nginx
#mak installgit
說: --prefix 指定安裝路徑 --add-module 指定添加 模塊的路徑,主要針對咱們本身添加的庫 ,--with-xxxx 用的nginx自帶的庫,github
參:https://www.cnblogs.com/tippoint/p/4775982.htmlsql
part2:spa
配置nginx 反向 tomysql:代理
在conf建 upstreams 目錄 ,在裏面專寫這類代理,htm
在conf建 httpconf 目錄 ,在裏面專門針對http類代理。blog
nginx.conf的關鍵以下:
http { include httpconf /*.conf;
}
stream {
include upstreams/*.conf;
}