This repository was archived by the owner on Jul 11, 2019. It is now read-only.
File tree 3 files changed +36
-3
lines changed
3 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 1
1
# ftpd
2
2
3
+ [ 中文] ( README_CN.md )
4
+
3
5
A FTP server based on [ github.com/goftp/server] ( http://github.com/goftp/server ) .
4
6
5
7
Full documentation for the package is available on [ godoc] ( http://godoc.org/github.com/goftp/ftpd )
@@ -17,5 +19,7 @@ details:
17
19
18
20
host: 127.0.0.1
19
21
port: 2121
20
- username: anonymous
21
- password: 1234
22
+ username: admin
23
+ password: 123456
24
+
25
+ More features, you can copy config.ini to the ftpd directory and modify it.
Original file line number Diff line number Diff line change
1
+ # ftpd
2
+
3
+ [ English] ( README.md )
4
+
5
+ 这是一个基于 [ github.com/goftp/server] ( http://github.com/goftp/server ) 编写的Ftp服务器程序。
6
+
7
+ 文档可以通过 [ godoc] ( http://godoc.org/github.com/goftp/ftpd ) 获取。
8
+
9
+ ## 安装
10
+
11
+ go get github.com/goftp/ftpd
12
+
13
+ 然后运行
14
+
15
+ $GOPATH/bin/ftpd
16
+
17
+ 最后,通过FTP客户端连接即可:
18
+
19
+ host: 127.0.0.1
20
+ port: 2121
21
+ username: admin
22
+ password: 123456
23
+
24
+ 如需要进一步修改,可以拷贝config.ini文件到ftpd目录下,然后修改其中的配置
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package main
2
2
3
3
import (
4
4
"fmt"
5
- "log"
6
5
"os"
7
6
8
7
"github.com/Unknwon/goconfig"
@@ -12,9 +11,14 @@ import (
12
11
"github.com/goftp/leveldb-perm"
13
12
"github.com/goftp/qiniu-driver"
14
13
"github.com/goftp/server"
14
+ "github.com/lunny/log"
15
15
"github.com/syndtr/goleveldb/leveldb"
16
16
)
17
17
18
+ var (
19
+ version = "v0.1.11.2"
20
+ )
21
+
18
22
var (
19
23
cfg * goconfig.ConfigFile
20
24
)
@@ -100,6 +104,7 @@ func main() {
100
104
101
105
// start ftp server
102
106
ftpServer := server .NewServer (opt )
107
+ log .Info ("FTP Server" , version )
103
108
err = ftpServer .ListenAndServe ()
104
109
if err != nil {
105
110
log .Fatal ("Error starting server:" , err )
You can’t perform that action at this time.
0 commit comments