python中的一线ftp服务器
发布于 2021-01-29 17:57:10
是否可以在python中使用一行命令来做一个简单的ftp服务器?我希望能够以这种快速和临时的方式来执行此操作,而无需将FTP服务器安装到Linux机器上。最好是使用内置的python库的方法,因此无需额外安装。
关注者
0
被浏览
49
1 个回答
-
强制性扭曲示例:
twistd -n ftp
可能有用:
twistd ftp --help Usage: twistd [options] ftp [options]. WARNING: This FTP server is probably INSECURE do not use it. Options: -p, --port= set the port number [default: 2121] -r, --root= define the root of the ftp-site. [default: /usr/local/ftp] --userAnonymous= Name of the anonymous user. [default: anonymous] --password-file= username:password-style credentials database --version --help Display this help and exit.