FastDFS install - 2

storage install nginx

 

1. update dependency package

yum -y install pcre-devel openssl openssl-devel gcc
 
2.  wget https://codeload.github.com/happyfish100/fastdfs-nginx-module/zip/master
3. unzip fastdfs-nginx-module-master.zip
 
install nginx
4. rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
5. yum install -y nginx
 
6. download nginx http://nginx.org/download/nginx-1.10.1.tar.gz
7. tar zxvf nginx-1.10.1.tar.gz
8. ./configure --add-module=fastdfs-nginx-module-master/src/
9. make; make install
10. cp  /usr/local/src/fastdfs-nginx-module-master/src/mod_fastdfs.conf  /etc/fdfs/
11. vi /etc/fdfs/mod_fastdfs.conf
    1). modify base_path
    2). tracker_server
    3). store_path0
12. 复制 FastDFS 的部分配置文件到/etc/fdfs 目录
# cd /usr/local/src/FastDFS/conf
# cp http.conf mime.types /etc/fdfs/
 
13. config nginx 

listen 80; #对应/etc/fdfs/storage.conf 中的http.server_port
server_name localhost;
location ~/group([0-9])/M00 {
#alias /opt/fdfs/storage/data;
ngx_fastdfs_module;
}

 

转载于:https://www.cnblogs.com/alex-blog/p/5663989.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值