- FastDFS蛋疼的集群和负载均衡(九)之创建FastDFS的M
- FastDFS蛋疼的集群和负载均衡(七)之Nginx高可用集群应
- FastDFS蛋疼的集群和负载均衡(八)之总结FastDFS
- FastDFS蛋疼的集群和负载均衡(一)之FastDFS基础配置
- FastDFS蛋疼的集群和负载均衡(十二)之浅谈负载均衡
- FastDFS蛋疼的集群和负载均衡(十)之编写FastDFSUt
- FastDFS蛋疼的集群和负载均衡(二)之tracker和str
- FastDFS蛋疼的集群和负载均衡(六)之Nginx高可用集群
- FastDFS蛋疼的集群和负载均衡(十六)之LVS+Keepal
- FastDFS蛋疼的集群和负载均衡(十八)之LVS+Keepal
Interesting things
刚才把我搭建的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
image.png -
构建fastdfs-client-java-1.27-SNAPSHOT.java
image.pngmvn 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中添加以下依赖。
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.test.failure.ignore>true</maven.test.failure.ignore>
<maven.test.skip>true</maven.test.skip>
<junit.version>4.12</junit.version>
<fastdfs.version>1.27-SNAPSHOT</fastdfs.version>
<guava.version>21.0</guava.version>
<apache.commons.lang.version>3.7</apache.commons.lang.version>
<apache.commons.io.version>2.5</apache.commons.io.version>
</properties>
<dependencies>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${apache.commons.io.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${apache.commons.lang.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.csource</groupId>
<artifactId>fastdfs-client-java</artifactId>
<version>${fastdfs.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>
Summary
下一篇继续FastDFS.
网友评论