分佈式文件存儲FastDFS(五)FastDFS常用命令總結

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章