zoukankan      html  css  js  c++  java
  • (转)分布式文件存储FastDFS(五)FastDFS常用命令总结

    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
    -
  • 相关阅读:
    python中字典一键多相同值反转技巧
    win10下安装mysql
    上台阶问题的具体走法用python来实现
    桥接模式
    适配器模式
    多线程中lock的使用
    原型模式
    多线程
    建造者模式
    代理模式
  • 原文地址:https://www.cnblogs.com/gugibv/p/8585611.html
Copyright © 2011-2022 走看看