-
Notifications
You must be signed in to change notification settings - Fork 515
准备Docker测试镜像
tobato edited this page Aug 26, 2019
·
1 revision
使用Docker准备测试环境非常方便:
https://github.com/phinexdaz/fdfs_tracker
https://github.com/phinexdaz/fdfs_storage
docker pull tobato/centos7_fdfs
docker run -i -t -d --net=host --privileged --name centos7-fastdfs tobato/centos7_fdfs:latest /usr/sbin/init -D
docker pull tobato/centos7_fdfs_mac
docker run -i -t -d -p 22122:22122 -p 32776:80 -p 23000:23000 --privileged --name centos7-fastdfs_mac tobato/centos7_fdfs_mac:latest /usr/sbin/init -D
- fdfs配置文件路径 /etc/fdfs/
- nginx配置文件路径 /etc/nginx/
- fdfs数据文件与日志路径 /opt/fdfs/
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf
echo "hello word" >> test.txt
fdfs_test /etc/fdfs/client.conf upload /opt/fdfs/test.txt
#根据返回信息读取数据
fdfs_delete_file /etc/fdfs/client.conf group1/M00/00/00/rBEAAlZkF0SAW_joAAAADFmwwCQ704.txt
http://localhost:32776/M00/00/00/rBEAAlZkF0SAW_joAAAADFmwwCQ704.txt
注意:地址不带group1