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,
Start method 2:// Default -t is 2 minutes = 2 * 60, -T is 1 hour = 1 * 60 * 60
#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,
Start method 2:// Default -t is 2 minutes = 2 * 60, -T is 1 hour = 1 * 60 * 60
#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