centos7 安装nginx+fastdfs问题

参考这个博主文章http://www.cnblogs.com/leechenxiang/p/7091731.html

完成之后最后还得在安装包目录重新配置一次

./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/home/nginxfastdfs/fastdfs-nginx-module/src


//================================================

nginx 配置前后端不在同一台服务器时 ,nginx在前端服务器 ,界面访问web后端产生的日志(在后端服务器)时 用到了alias 指令碰到的问题
location ^~ /t/ {

    alias /www/root/html/new_t/;

   }

nginx的location、root、alias指令用法和区别 

http://www.nginx.cn/4658.html

 

posted @ 2018-02-01 23:17  zsls-lang  阅读(218)  评论(0编辑  收藏  举报