Skip to content

zy84338719/upftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



upftp

支持快速建立简易ftp下载站点.

travis

许可证

Screenshot

✨ 特性

  • ☁️ 支持本机任意目录进行ftp服务启动 用于构建简易ftp站点

🛠️ 使用方法

    upftp 
        -p 8888 端口 默认 10000 
        -d /opt 目录 默认 ./ 当前目录

🛠️ 部署

下载适用于您目标机器操作系统、CPU架构的主程序,直接运行即可。

# 解压程序包
tar -zxvf upftp_VERSION_OS_ARCH.tar.gz

# 赋予执行权限
chmod +x ./upftp

# 启动 upftp
./upftp

⚙️ 构建

自行构建前需要拥有 Go >= 1.11等必要依赖。

克隆代码

git clone https://github.com/zy84338719/upftp.git

go 1.16

    go install github.com/zy84338719/upftp

编译项目

# 获得当前版本号、Commit
export COMMIT_SHA=$(git rev-parse --short HEAD)
export VERSION=$(git describe --tags)

# 开始编译
go build -a -ldflags " -X \"main.Version=$(VERSION)\" -X \"main.LastCommit=$(COMMIT_SHA)\" " -o upftp

你也可以使用项目根目录下的build.sh快速开始构建:

make build

⚗️ 技术栈

📜 许可证

MIT


GitHub @zy84338719  ·  Twitter @murphyyi