FTP is short for File Transport Protocol, which enables customers connected to the server to transmit files between the server and the client. In addition to the WWW Service, FTP is also the most widely used service.
FTP Server Configuration
This section describes how to create an FTP server using IIS. (Same as the WWW Service, IIS has a default FTP site by default, so you can modify the default FTP site to meet your needs .)
Right-click on the default FTP site
Enter Description: I love my computer. set IP Address: 192.168.1.3. The default port is 21, which does not need to be changed.
Set the connection, and enable log records just like the web server.
Then select the Home Directory dialog box
Basically, you can follow the settings to specify the access permission for the directory. Generally, read is selected. You can also specify the access permission later to grant the Administrator the specific write permission, so that the average author has the read permission.
Modify the account information in the security account according to your needs, for example:
The option to allow anonymous connections must be filled in. Otherwise, the user name and password are required to access the site. By default, anonymous access is allowed. The username is anonymous and the password is blank.
Defines the information and maximum number of connections when users access the FTP site and exit the site,
Of course, you can also set it based on your own needs and love.
Finally, test: (the FTP command in cmd is not passed through the browser)
In running, open cmd, enter FTP 192.168.1.3 (the IP address just set), press enter, and enter the username anonymous.
Press enter to enter the password. If the password is empty, press Enter. Get to download an object to a local folder. (For website security in the future, you can disable anonymous access and enhance the password. Here, you can set anonymous users for test convenience)
There are many FTP commands in cmd, which are commonly used:
FTP 192.168.1.3 login FTP;
Dir: displays the remote host directory;
CD remote-Dir: Enter the remote host directory;
Help [cmd]: displays the help information of the FTP Internal Command cmd, for example, help get.
Get remote-file [local-file]: transfers the remote-file of the remote host to the local-file (local folder) of the local hard disk ).
Put local-file [Remote-file]: transfers the local-file to the remote host.
Quit: Same as bye, quit the FTP session.
........................................................................................................................ ......
The internal commands used by FTP are as follows (brackets indicate optional ):
1 .! [Cmd [ARGs]: Execute the interactive shell on the local machine and exit to return to the FTP environment, for example :! Ls *. Zip.
2. $ macro-Ame [ARGs]: Execute macro to define macro-name.
3. Account [Password]: Provide the supplemental Password required to access system resources after logging on to the remote system.
4. append local-file [Remote-file]: append the local file to the remote system host. If the remote system file name is not specified, the local file name is used.
5. ASCII: Use the ASCII type transmission method.
6. Bell: after each command is executed, the computer rings once.
7. Bin: Binary File Transfer Mode.
8. Bye: exit the FTP session.
9. Case: when using mget, convert uppercase letters in the remote host file name to lowercase letters.
10. CD remote-Dir: Enter the remote host directory.
11. cdup: Enter the parent directory of the remote host directory.
12. chmod mode file-Name: Set the file-name access mode of the remote host file to mode, for example, chmod 777 A. Out.
13. Close: interrupt the FTP session with the remote server (corresponding to open ).
14. Cr: When a file is transmitted using asscii, the carriage return line is converted into a return line.
15. Delete remote-file: delete remote host files.
16. debug [debug-value]: sets the debugging mode. Each Command sent to the remote host is displayed, for example, Deb up 3. If it is set to 0, the debug is canceled.
17. dir [Remote-Dir] [local-file]: displays the remote host directory and saves the result to the local file.
18. Disconnection: Same as close.
19. Form Format: sets the file transmission mode to format. The default mode is file.
20. Get remote-file [local-file]: transfers the remote-file of the remote host to the local-file of the local hard disk.
21. glob: Set the extension of the mdelete, mget, and mput file names, which is the same as the-G parameter in the command line.
22. Hash: A hash symbol (#) is displayed for every 1024 bytes transferred (#).
23. Help [cmd]: displays the help information of the FTP Internal Command cmd, for example, help get.
24. idle [seconds]: Set the Sleep timer of the remote server to [seconds] seconds.
25. Image: sets the binary transmission mode (the same as binary ).
26. LCD [dir]: Switch the local working directory to Dir.
27. ls [Remote-Dir] [local-file]: displays the remote Directory Remote-Dir and stores the local-file.
28. macdef macro-Name: defines a macro. When an empty row under macdef is encountered, the macro definition ends.
29. mdelete [Remote-file]: delete remote host files.
30. mdir remote-files local-file: similar to Dir, but multiple remote files can be specified, such as mdir *. O. *. zipoutfile.
31. mget remote-Files: Transfers multiple remote files.
32. mkdir Dir-Name: create a directory on the remote host.
33. MLS remote-File Local-file: Same as NLIST, but multiple file names can be specified.
34. mode [modename]: sets the file transmission mode to modename. The default mode is stream.
35. modtime file-Name: displays the last modification time of the remote host file.
36. mput local-file: Transfers multiple files to the remote host.
37. Newer file-Name: if the modification time of file-name on the remote machine is closer than that of files with the same name on the local hard disk, the file will be re-transmitted.
38. NLIST [Remote-Dir] [local-file]: displays the list of files in the remote host directory and stores the local-file on the local hard disk.
39. NMAP [inpattern outpattern]: sets the file name ing mechanism so that some characters in the file are converted to each other during file transmission, such as NMAP $1. $2. $3 [$1, $2]. [$2, $3], transfer the file a1.a2. when A3, the file name is changed to a1, a2. This command is particularly applicable to non-Unix remote hosts.
Machine status.
40. ntrans [inchars [outchars]: sets the file name character translation mechanism, for example, ntrans1r, then the file name lll will change to Rrr.
41. Open host [port]: Specifies the FTP server connection. You can specify the connection port.
42. Passive: enters the passive transmission mode.
43. Prompt: Set interaction prompts when multiple files are transferred.
44. Proxy FTP-cmd: Execute an FTP command in the secondary control connection. This command allows two FTP servers to be connected to transfer files between the two servers. The first FTP command must be open to first establish a connection between two servers.
45. put local-file [Remote-file]: transfers the local-file to the remote host.
46. pwd: displays the current working directory of the remote host.
47. Quit: Same as bye, quit the FTP session.
48. Quote arg1, arg2. ..: Send the parameter to the remote FTP server, for example, quote syst.
49. Recv remote-file [local-file]: Same as get.
50. reget remote-file [local-file]: similar to get. However, if local-file exists, it will be resumed from the last transmission interruption.
51. rhelp [cmd-name]: request for help from the remote host.
52. rstatus [file-name]: If no file name is specified, the remote host status is displayed; otherwise, the file status is displayed.
53. RENAME [from] [to]: Change the remote host file name.
54. Reset: Clear the answer queue.
55. Restart marker: Start get or put again from the specified mark marker, for example, restart 130.
56. rmdir Dir-Name: Delete the remote host directory.
57. runique: Set the unique storage of file names. If the file exists, add the suffix... 1 and. 2 after the original file.
58. Send local-file [Remote-file]: Same as put.
59. sendport: Set the PORT command.
60. Site arg1, arg2. ..: Send the parameter to the remote FTP host as the site command.
61. Size file-Name: displays the file size of the remote host, for example, site idle 7200.
62. Status: displays the current FTP status.
63. struct [struct-name]: sets the file transmission structure to struct-name, and uses the stream structure due to lack of time.
64. sunique: Set the remote host file name storage to unique (corresponding to runique ).
65. System: displays the operating system type of the remote host.
66. tenex: Set the file transfer type to the required type of the tenex server.
67. Tick: sets the byte counter during transmission.
68. Trace: Set package tracing.
69. Type [type-name]: sets the file transfer type to type-name. The default value is ASCII, for example, Type Binary. Sets the binary transfer mode.
70. umask [newmask]: Set the default umask of the remote server to newmask, for example, umask 3.
71. User user-name [Password] [account]: indicates your identity to the remote host. If you need a password, enter the password, for example, USER anonymous my @ email.
72. verbose: Same as the-V parameter of the command line, that is, set the detailed report mode. All responses of the FTP server will be displayed to the user. The default value is on.
73 .? [Cmd]: Same as help.