nginx编译安装

安装  yum -y install openssl-devel pcre-devel zlib-devel 等。  

下载 tengine-2.2.2  fastdfs-nginx-module-master

./configure --prefix=/home/nginx --sbin-path=/home/nginx/nginx --conf-path=/home/nginx/nginx.conf --pid-path=/home/nginx/nginx.pid --with-http_ssl_module --add-module=/home/fastdfs/fastdfs-nginx-module-master/src

make ; make install

 

ln -s /home/fastdfs/storage/data  /home/fastdfs/storage/data/M00  


server {
  listen 9020;
  server_name localhost;

  location /group1/M00/{

    root /home/fastdfs/storage/data;
    ngx_fastdfs_module;
  }

posted @ 2018-06-05 09:36  zhoudingzhao  阅读(120)  评论(0编辑  收藏  举报