基本介绍
概念
安装部署方式
FastDFS-Java客户端
dependency并没有放置在 maven 仓库;其他仓库不知道有没有,所以需要自己本地打包安装。找到源码地址即可。
原创版:
https://github.com/happyfish100/fastdfs-client-java
改进版:
https://github.com/tobato/FastDFS_Client/
改进的特性,参考其 github 地址的 wiki:
安装步骤:
git clone [email protected]:happyfish100/fastdfs-client-java.git
mvn install
mvn install:install-file -DgroupId=fastdfs_client -DartifactId=fastdfs_client -Dversion=1.27 -Dpackaging=jar -Dfile=fastdfs-client-java-1.27-SNAPSHOT.jar
使用:
新建配置文件:
fdfs_client.conf
connect_timeout = 2
network_timeout = 30
charset = UTF-8
http.tracker_http_port = 80
http.anti_steal_token = no
http.secret_key = FastDFS1234567890
tracker_server = 192.168.17.112:22122
#tracker_server = 192.168.0.119:22122
https://blog.csdn.net/wzl19870309/article/details/74049204
https://github.com/happ
yfish100/fastdfs-client-java
https://github.com/tobato/FastDFS_Client/
git clone [email protected]:happyfish100/fastdfs-client-java.git
mvn install
mvn install:install-file -DgroupId=fastdfs_client -DartifactId=fastdfs_client -Dversion=1.27 -Dpackaging=jar -Dfile=fastdfs-client-java-1.27-SNAPSHOT.jar