FastDFS常用命令

查找进程
ps -ef | grep fdfs

停止tracker和storage
/usr/local/fastdfs-5.05/stop.sh  /etc/fdfs/storage.conf
/usr/local/fastdfs-5.05/stop.sh  /etc/fdfs/tracker.conf

编辑配置文件
vim /etc/fdfs/storage.conf
vim /etc/fdfs/tracker.conf

启动tracker和storage
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf

重启tracker和storage
/usr/local/fastdfs-5.05/restart.sh /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/local/fastdfs-5.05/restart.sh /usr/bin/fdfs_storaged /etc/fdfs/storage.conf

监控状态
fdfs_monitor /etc/fdfs/storage.conf

文件上传
fdfs_test /etc/fdfs/client.conf upload /root/图片/zidana.jpg

 

你可能感兴趣的:(linux)