码迷,mamicode.com
首页 > 其他好文 > 详细

FastDFS install - 2

时间:2016-07-12 17:25:42      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:

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;
}

 

FastDFS install - 2

标签:

原文地址:http://www.cnblogs.com/alex-blog/p/5663989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!