# 下面为备注,有些命令用于测试

  # fastdfs测试
  dd if=/dev/zero of=10mb.png bs=1M count=10
  /opt/machtalk/fastdfs/usr/bin/fdfs_upload_file /opt/machtalk/fastdfs/etc/fdfs/client.conf 10mb.png && echo "OK" || echo "Error"
  /opt/machtalk/fastdfs/usr/bin/fdfs_download_file /opt/machtalk/fastdfs/etc/fdfs/client.conf  group1/M00/00/01/wKgDhVgywL6ADwEkAKAAAHBWCyc529.png
  wget http://127.0.0.1:8090/group1/M00/00/01/wKgDhVir_ZeABF_TAKAAAHBWCyc486.png

  # fastdfs 重启
    /opt/machtalk/fastdfs/etc/init.d/fdfs_trackerd restart
    /opt/machtalk/fastdfs/etc/init.d/fdfs_storaged restart

  # fastdfs 日志查看
    tail -fn 40 /opt/machtalk/fastdfs/data/fastdfs_tracker/logs/trackerd.log

    tail -fn 40 /opt/machtalk/fastdfs/data/fastdfs_storage/logs/storaged.log

  # fastdfs 停止
  /opt/machtalk/fastdfs/etc/init.d/fdfs_trackerd stop
  /opt/machtalk/fastdfs/etc/init.d/fdfs_storaged stop
  killall nginx


  #fastdfs 启动
  ~/fastdfs/etc/init.d/fdfs_trackerd start
  ~/fastdfs/etc/init.d/fdfs_storaged start
  ~/nginx/bin/nginx restart

  # monitor

  ~/fastdfs/usr/bin/fdfs_monitor ~/fastdfs/etc/fdfs/client.conf list

   # TODO 启动和检查需要跟进
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""