Skip to content

简单的ftp服务器启动 帮你从服务器上面下载指定东西到本地

License

Notifications You must be signed in to change notification settings

zy84338719/upftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



upftp

一个轻量级的文件共享服务器 | A lightweight file sharing server

Build Status

English | 中文

中文

✨ 特性

  • 快速启动:一键启动文件共享服务
  • 简单易用:支持网页浏览和命令行操作
  • 文件预览:支持图片和文本文件在线预览
  • 文件夹支持:可以浏览和下载整个文件夹
  • 多种下载方式:支持浏览器、curl、wget等下载方式
  • 无需配置:自动检测网络接口,快速部署

🛠️ 使用方法

upftp [options]

选项:
    -p <port>    指定端口号(默认:10000)
    -d <dir>     指定共享目录(默认:当前目录)
    -auto        自动选择第一个可用网络接口

示例:

# 使用默认配置启动
upftp

# 指定端口和目录
upftp -p 8888 -d /path/to/share

# 自动选择网络接口
upftp -auto

🚀 快速安装

使用预编译版本

Releases 页面下载适合您系统的版本。

# 解压
tar -zxvf upftp_VERSION_OS_ARCH.tar.gz

# 添加执行权限
chmod +x ./upftp

# 运行
./upftp

从源码安装

需要 Go 1.16 或更高版本。

go install github.com/zy84338719/upftp@latest

⚙️ 从源码构建

# 克隆仓库
git clone https://github.com/zy84338719/upftp.git

# 获取版本信息
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

English

✨ Features

  • Quick Start: Launch file sharing service with one command
  • Easy to Use: Support both web interface and command line operations
  • File Preview: Preview images and text files online
  • Directory Support: Browse and download entire directories
  • Multiple Download Methods: Support browser, curl, wget downloads
  • Zero Configuration: Auto-detect network interfaces for quick deployment

🛠️ Usage

upftp [options]

Options:
    -p <port>    Specify port number (default: 10000)
    -d <dir>     Specify share directory (default: current directory)
    -auto        Automatically select first available network interface

Examples:

# Start with default configuration
upftp

# Specify port and directory
upftp -p 8888 -d /path/to/share

# Auto-select network interface
upftp -auto

🚀 Quick Installation

Using Pre-built Binaries

Download the appropriate version for your system from the Releases page.

# Extract
tar -zxvf upftp_VERSION_OS_ARCH.tar.gz

# Add execute permission
chmod +x ./upftp

# Run
./upftp

Install from Source

Requires Go 1.16 or higher.

go install github.com/zy84338719/upftp@latest

⚙️ Build from Source

# Clone repository
git clone https://github.com/zy84338719/upftp.git

# Get version info
export COMMIT_SHA=$(git rev-parse --short HEAD)
export VERSION=$(git describe --tags)

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

📜 License

MIT


GitHub @zy84338719  ·  Twitter @murphyyi index: murphyyi

About

简单的ftp服务器启动 帮你从服务器上面下载指定东西到本地

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published