FASTDFS常用命令

FASTDFS常用命令

启动STORAGE SERVER
fdfs_storaged /etc/fdfs/storage.conf



启动TRACKER SERVER
fdfs_trackerd /etc/fdfs/tracker.conf



启动NGINX
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf


观看LOG
tail -f /home/storage1/fastdfs/logs/storaged.log



检查STORAGE SERVER
fdfs_monitor /etc/fdfs/client.conf


删除STORAGE SERVER
fdfs_monitor /etc/fdfs/client.conf delete group1 10.120.151.114


重启
/usr/local/bin/restart.sh fdfs_storaged /etc/fdfs/storage.conf
/usr/local/bin/restart.sh fdfs_trackerd /etc/fdfs/storage.conf


停止
/usr/local/bin/stop.sh fdfs_storaged /etc/fdfs/storage.conf
/usr/local/bin/stop.sh fdfs_trackerd /etc/fdfs/storage.conf



测试上传
fdfs_test /etc/fdfs/client.conf upload /usr/include/stdlib.h

 
查询文件是否存在
fdfs_file_info /etc/fdfs/client.conf group1/M00/00/D1/CniXclQ0vdfCNdkzAABGC4v7nb4822.png

你可能感兴趣的:(FASTDFS常用命令)