一、啓動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