 源码下载 https://github.com/happyfish100/ wget https://codeload.github.com/happyfish100/fastdfs/zip/master
./make.sh ./make.sh install
nginx 模块安装 cp mod_fastdfs.conf http.conf mime.types 到 fastdfs的配置目录 并修改 mod_fastdfs.conf http.conf 的路径等配置
配置目录 /etc/fdfs/ 4.05 以后去除了自带htpp服务器 客户端上传 /usr/bin/fdfs_test /etc/fdfs/client.conf upload test.txt 启动 storage,tracker 需指定配置文件路径,根据不同配置文件一台服务器可启动多个服务器进程 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf
重启服务(会自动寻找 /etc/fdfs/storage.conf 配置文件) service fdfs_storaged stop service fdfs_storaged start
主要修改 storage 服务器会自动连接 tracker 服务,需要配置ip 端口 /etc/fdfs/storage.conf
|