美文网首页Android技术知识Android开发经验谈Android开发
FastDFS蛋疼的集群和负载均衡(九)之创建FastDFS的M

FastDFS蛋疼的集群和负载均衡(九)之创建FastDFS的M

作者: cmazxiaoma | 来源:发表于2017-12-29 18:10 被阅读0次
diary_report.jpg

Interesting things

刚才把我搭建的FastDFS给主管看了。跟主管和我沟通后,主管跟我说,我搭建的FastDFS下载好像达不到负载均衡。我也很纳闷,空说无凭,现在来实战FastDFS。

What did you do today

mvn clean intall

  • 在target目录下生成了fastdfs-client-java-1.27-SNAPSHOT.java


    image.png
  • 构建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

image.png
  • 创建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.

相关文章

网友评论

    本文标题:FastDFS蛋疼的集群和负载均衡(九)之创建FastDFS的M

    本文链接:https://www.haomeiwen.com/subject/wijigxtx.html