FTP server that comes with busybox

ftp server:

Start method 1:

#tcpsvd 0 21 ftpd -w /root &

// The 0 above means listen on all ip addresses

// ftpd -w The parameter -w here indicates that the client can perform write operations on the directory

// 21 specifies the default port of the ftp server

// You can use the -t and -T parameters to set the client to actively disconnect the client connection after the maximum time without any operation,

// Default -t is 2 minutes = 2 * 60, -T is 1 hour = 1 * 60 * 60


Start method 2:
#vi /etc/inetd.conf//add the following code

  21  stream  tcp  nowait  root  ftpd  ftpd  -w  /root

#inetd                

//inetd will execute the command line in the /etc/inetd.conf script, so that ftpd will run as a daemon

ftp server:

Start method 1:

#tcpsvd 0 21 ftpd -w /root &

// The 0 above means listen on all ip addresses

// ftpd -w The parameter -w here indicates that the client can perform write operations on the directory

// 21 specifies the default port of the ftp server

// You can use the -t and -T parameters to set the client to actively disconnect the client connection after the maximum time without any operation,

// Default -t is 2 minutes = 2 * 60, -T is 1 hour = 1 * 60 * 60


Start method 2:
#vi /etc/inetd.conf//add the following code

  21  stream  tcp  nowait  root  ftpd  ftpd  -w  /root

#inetd                

//inetd will execute the command line in the /etc/inetd.conf script, so that ftpd will run as a daemon

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325614374&siteId=291194637