webuploader

xq a06e6f1072 ip 2 years ago
static b79e2e236b up 2 years ago
.gitignore d89ccb351d Initial commit 2 years ago
LICENSE d89ccb351d Initial commit 2 years ago
README.md a06e6f1072 ip 2 years ago
conf.ini b79e2e236b up 2 years ago
go.mod b79e2e236b up 2 years ago
go.sum b79e2e236b up 2 years ago
main.go a06e6f1072 ip 2 years ago

README.md

webuploader

  • Help

    NAME:
    webuploader - 文件服务
    
    USAGE:
    webuploader [global options] command [command options] [arguments...]
    
    COMMANDS:
    help, h  Shows a list of commands or help for one command
    
    GLOBAL OPTIONS:
    --port value, -p value  port (default: "8888")
    --help, -h              show help
    
    
  • 最好保留6066端口 做为监控pprof

  • 编译

    GOOS=linux GOARCH=amd64 go build -o webup-linux-amd64 -a -ldflags '-w -s -extldflags "-static"' main.go
    
    GOOS=linux GOARCH=arm64 go build -o webup-linux-arm64 -a -ldflags '-w -s -extldflags "-static"' main.go
    
    GOOS=darwin GOARCH=amd64 go build -o webup-darwin-amd64 -a -ldflags '-w -s -extldflags "-static"' main.go
    
    GOOS=darwin GOARCH=arm64 go build -o webup-darwin-arm64 -a -ldflags '-w -s -extldflags "-static"' main.go
    
    GOOS=windows GOARCH=arm64 go build -o webup-windows-arm64.exe -a -ldflags '-w -s -extldflags "-static"' main.go
    
    GOOS=windows GOARCH=amd64 go build -o webup-windows-amd64.exe -a -ldflags '-w -s -extldflags "-static"' main.go