Nginx入门
昨天在配置google cdn的时候, 缺乏对Nginx的基本了解
1. 基本介绍和配置文件语法
1, 介绍
2, 安装
./configure \
--user=nginx \
--group=nginx \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-pcre \
--with-file-aio \
--with-http_realip_module \
--without-http_scgi_module \
--without-http_uwsgi_module \
--without-http_fastcgi_module3, 命令行语法(Command line Syntax)
4, 配置文件语法(Configuration file syntax)
2, 反向代理

3, gzip 压缩提升网站性能
4, 作为负载均衡器
Last updated