一、启动FastDFS测试
tracker: /usr/local/bin/fdfs_trackered %FastDFS%/tracker.conf
storage: /usr/local/bin/fdfs_storaged %FastDFS%/storage.conf
也能够简写为:spa
tracker: fdfs_trackered %FastDFS%/tracker.conf
storage: fdfs_storaged %FastDFS%/storage.conf
其中的%FastDFS%指的是FastDFS的所在目录,根据本身的状况进行替换便可。rest
二、关闭FastDFScode
tracker: /usr/local/bin/stop.sh fdfs_tracker
storage: /usr/local/bin/stop.sh fdfs_storage
或者blog
killall fdfs_trackered
killall fdfs_storaged
注意,千万不要使用kill-9强行杀死进程。进程
三、重启FastDFSit
tracker: /usr/local/bin/restart.sh fdfs_trackered
storage: /usr/local/bin/restart.sh fdfs_storaged
四、查看集群状况ast
在任意一台storage(tracker也能够)class
/usr/local/bin/fdfs_monitor %FastDFS%/storage.conf
五、删除一个storagetest
在任意一台storage(tracker也能够)
/usr/local/bin/fdfs_monitor %FastDFS%/storage.conf delete group2 20.12.1.73
六、测试上传
fdfs_test /etc/fdfs/client.conf upload test.tx
fdfs_test /etc/fdfs/client.conf upload test.tx