FastDFS常见命令
1: 启动FastDFS
tracker: /usr/local/bin/fdfs_trackered /etc/fdfs/tracker.conf
storage: /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf
2:关闭FastDFS
tracker:/usr/local/bin/stop.sh /usr/local/bin/fdfs_tracker
storage:/usr/local/bin/stop.sh /usr/local/bin/fdfs_storage
或者 killall fdfs_trackered(storaged) -------注意,千万不要使用-9强行杀死进程。
3:重启FastDFS
tracker:/usr/local/bin/restart.sh /usr/local/bin/fdfs_trackered
storage:/usr/local/bin/restart.sh /usr/local/bin/fdfs_storaged
4:查看集群情况
在任意一台storage(tracker也可以) /usr/local/bin/fdfs_monitor /etc/fdfs/storage.conf
5:删除一个storage:
在任意一台storage(tracker也可以) /usr/local/bin/fdfs_monitor /etc/fdfs/storage.conf delete group2 20.12.1.73