使用busybox配置ftp server
作者:互联网
使用busybox配置ftp server:
1.在编译busybox时加入tcpsvd和ftpd
2.tcpsvd作用:
Create TCP socket, bind to IP:PORT and listen
for incoming connection. Run PROG for each connection.
3.ftpd作用:
ftpd should be used as an inetd service.
ftpd's line for inetd.conf:
21 stream tcp nowait root ftpd ftpd /files/to/serve
It also can be ran from tcpsvd:
tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve
4.在终端上输入:
tcpsvd 0 21 ftpd -w /root
0代表监听所有ip,21代表本地监听端口为21,ftpd代表要执行的程序,-w代表允许上传,/root代表默认登录和允许访问的目录
标签:busybox,代表,21,ftpd,ftp,root,server,tcpsvd 来源: https://www.cnblogs.com/live-program/p/11057088.html