1、启动FastDFS

tracker: /usr/local/bin/fdfs_trackered %FastDFS%/tracker.conf
storage: /usr/local/bin/fdfs_storaged %FastDFS%/storage.conf

也可以简写为:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
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.tx
fdfs_test /etc/fdfs/client.conf upload test.tx

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄