修改storage配置文件
修改该storage.cond配置文件
1 | # 修改组名 |
- 创建目录
1 | mkdir /usr/local/fastdfs/storage -p |
启动storage
前提:必须首先启动tracker
1 | /usr/bin/fdfs_storaged /etc/fdfs/storage.conf |
检查进程如下:
1 | ps -ef|grep storage |
测试上传
修改的client.conf配置文件
1
2base_path=/usr/local/fastdfs/client
tracker_server=192.168.1.153:221221
mkdir /usr/local/fastdfs/client
测试:
1 | wget <https://www.imooc.com/static/img/index/logo.png> |
上传成功: