刚才把我搭建的FastDFS给主管看了。跟主管和我沟通后,主管跟我说,我搭建的FastDFS下载好像达不到负载均衡。我也很纳闷,空说无凭,现在来实战FastDFS。
###What did you do today
-
首先进入https://github.com/happyfish100/fastdfs-client-java,下载fastdfs-client-java员阿姆,版本号是1.27-SNAPSHOT
-
使用maven从源码进行安装。
mvn clean intall
-
在target目录下生成了fastdfs-client-java-1.27-SNAPSHOT.java
-
构建fastdfs-client-java-1.27-SNAPSHOT.java
mvn install:install-file -DgroupId=org.csource -DartifactId=fastdfs-client-java -Dversion=1.27-SNAPSHOT -Dpackaging=jar -Dfile=fastdfs-client-java-1.27-SNAPSHOT.jar
- 创建Maven项目,pom.xml中添加以下依赖。
复制代码 UTF-8 UTF-8 true true 4.12 1.27-SNAPSHOT 21.0 3.7 2.5
复制代码 commons-io commons-io ${apache.commons.io.version} org.apache.commons commons-lang3 ${apache.commons.lang.version} junit junit ${junit.version} test org.csource fastdfs-client-java ${fastdfs.version} com.google.guava guava ${guava.version}
###Summary
下一篇继续FastDFS.