Git Product home page Git Product logo

fileserver's Introduction

fileserver

一个基于netty的文件服务器,可以用于分发应用程序,文件md5校验比对差量更新,支持大文件传输

##使用

git clone https://github.com/huisongyang/fileserver.git
mvn package

###windows: 编辑./target/runServer.bat,配置root.dir.path

@echo off
rem 文件根目录
set root.dir.path="D:\serverdir"

::不扫描文件,分号分隔
set root.dir.exclude=
::不扫描目录,分号分隔
set root.dir.excludeDir=

::默认端口是9999
java -Droot.dir.path=%root.dir.path% -Droot.dir.exclude=%root.dir.exclude% -Droot.dir.excludeDir=%root.dir.excludeDir% -cp fileserver-0.0.1-SNAPSHOT.jar com.yhs.fileserver.server.Server
pause > nul

运行runServer.bat

编辑./target/runClient.bat,配置root.dir.path 运行runClient.bat

###linux: 编辑./target/runServer.sh,配置root.dir.path

#根目录
root_dir_path=/home/weblogic/client

#不扫描文件,分号分隔
root_dir_exclude=
#不扫描目录,分号分隔
root_dir_excludeDir=

#默认端口是9999
java -Droot.dir.path=${root_dir_path} -Droot.dir.exclude=${root_dir_exclude} -Droot.dir.excludeDir=${root_dir_excludeDir} -cp fileserver-0.0.1-SNAPSHOT.jar com.yhs.fileserver.server.Server

客户端更新一般在windows下,在windows下配置好runClient.bat的root.dir.path后运行即可。

#Authors *小松(@小松)

fileserver's People

Contributors

huisongyang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.