- 使用 go module
PS C:\Users\admin\go\src\test> go mod init
go: creating new go.mod: module test
- 安装 ftp 服务器
PS C:\Users\admin\go\src\test> go install github.com/goftp/server/exampleftpd
go: finding module for package github.com/goftp/server/exampleftpd
go: found github.com/goftp/server/exampleftpd in github.com/goftp/server v0.0.0-20200708154336-f64f7c2d8a42
go: finding module for package github.com/goftp/file-driver
go: found github.com/goftp/file-driver in github.com/goftp/file-driver v0.0.0-20180502053751-5d604a0fc0c9
- 启动 ftp 服务器

本文介绍了如何利用 Go 模块部署 FTP 服务器,包括安装过程、启动步骤及注意事项,特别是当客户端连接被拒绝时,需将服务器绑定到本机 IP 而非 localhost。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



