fastdfs 入门安装过程

一、准备需要的安装包:

       1.fastdfs_V5.05.tar.gz

       2.libfastcommon.tar.gz

       3.nginx

       4.pcre

       5.zlib

       6.nginx_fastdfs_mod

二、安装libfastcommon

 ./make.sh  
 ./make.sh install 

创建软链接:

  ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
  ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
  ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
  ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so

三、安装fastdfs.*.gz 

./make.sh
./make.sh install

四、配置tracker

主要修改bind_address、port、basepath
启动tracker:
fdfs_trackerd /etc/fdfs/tracker.conf restart

五、配置storage同上

六、安装配置nginx


./configure \
--prefix=/usr/local/nginx \
--sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--error-log-path=/home/tanghao/nginx/logs/error.log \
--with-pcre=/home/tanghao/filetemp/pcre-8.38 \
--with-zlib=/home/tanghao/filetemp/zlib-1.2.8 \
--with-http_dav_module \
--with-http_flv_module \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-openssl=/home/tanghao/filetemp/openssl-1.0.2f  \
--add-module=/home/tanghao/filetemp/fastdfs-nginx-module/src

这里纠结了很久,不知道为什么,编译安装完nginx后,启动nginx时只出现了一个master进程,没有worker,感到非常奇怪。

七、拷贝配置文件,fastdfs/conf中的mine和http文件,拷贝到/etc/fdfs目录下。

八、fastdfs的软链接还要配置M00的。

九、我需要查一下,为为什么只有master,没有worker...

 

 

找到问题原因了,一时心急忘记看nginx的error日志了,原因是因为访问fastdfs的目录问题,在nginx.conf前面加上user root;就行了。

转载于:https://my.oschina.net/u/2461727/blog/693441

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值