http://blog.csdn.net/xingjiarong/article/details/50561471
1、啟動FastDFS
tracker: /usr/local/bin/fdfs_trackered %FastDFS%/tracker.conf storage: /usr/local/bin/fdfs_storaged %FastDFS%/storage.conf
也可以簡寫為:
tracker: fdfs_trackered %FastDFS%/tracker.conf storage: fdfs_storaged %FastDFS%/storage.conf
其中的%FastDFS%指的是FastDFS的所在目錄,根據自己的情況進行替換即可。
2、關閉FastDFS
tracker: /usr/local/bin/stop.sh fdfs_tracker storage: /usr/local/bin/stop.sh fdfs_storage
或者
killall fdfs_trackered
killall fdfs_storaged
注意,千萬不要使用kill-9強行殺死進程。
3、重啟FastDFS
tracker: /usr/local/bin/restart.sh fdfs_trackered storage: /usr/local/bin/restart.sh fdfs_storaged
4、查看集群情況
在任意一台storage(tracker也可以)
/usr/local/bin/fdfs_monitor %FastDFS%/storage.conf
5、刪除一個storage
在任意一台storage(tracker也可以)
/usr/local/bin/fdfs_monitor %FastDFS%/storage.conf delete group2 20.12.1.73
6、測試上傳
fdfs_test /etc/fdfs/client.conf upload test.txt