xin 系统下面的nginx 的使用
"命令 (在nginx 文件夹根目录运行)cmd
启动 start nginx (注:启动失败 ,查看日志 nginx\logs\error.log进行判断)
停止 nginx -s stop
nginx 服务的刷新 nginx -s reload
查看版本 nginx -v"
------------------------------------------------
开启Nginx压缩,解决前端访问慢问题
nginx.conf 的 http 中加入以下片断
# gzip config
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";