The file transfer protocol (FTP) is a standard protocol that can be used to move files from one computer to another over the Internet. These files are stored on the server computer that runs the FTP server software. Then, a remote computer can establish a connection using FTP and read files from the server or copy files to the server. The FTP server is similar to the HTTP server (Web Server) in that you can use the internet protocol to communicate with it. However, the FTP server does not run a webpage; it only sends/receives files to/from a remote computer.
You can configure Internet Information Service (IIS) to run as an FTP server. In this way, other computers can connect to the server and copy files to or from the server. For example, if you host a website on your computer and want to allow remote users to connect to your computer and copy their files to the server, you can configure IIS as an FTP server.
By default, the FTP service is not installed on IIS. Therefore, to use IIS as an FTP server, you must install the FTP service.
Step 1: use IIS to set up an FTP server
Click Start, control panel, and add or delete programs ".
Click Add/delete Windows Components ".
In the "Windows component wizard" dialog box, if you are running at least Windows Server 2003, select "Application Server" and click "details ".
Select Internet Information Service (IIS) and click details ".
In the "Internet Information Service (IIS)" dialog box, select the "File Transfer Protocol (FTP) Service" check box and click "OK ".
In the Windows component wizard dialog box, click Next ". Insert a Windows disc as prompted.
After the installation is complete, you can use the FTP service in IIS.
Step 2: configure the FTP server
Open Control Panel-Administrative Tools-Internet Information Service (IIS) Manager-FTP site. (Of course, you can enter inetmgr in the running state to enter the manager.) We can see that there are no sub-sites or virtual sites in the FTP site. In this case, you need to configure
In the iis ftp component, each FTP site can correspond to only one port, and each site can correspond to only one global directory. The permission order can be understood as site> = Virtual Path. If you need to create an FTP service for anonymous access and an FTP service for authentication, I am afraid you need to create two sites and use two different ports.
First, we need to establish an FTP site that requires authentication, so that the Internet requires authentication when logging on to the FTP service to obtain a trusted connection with the FTP server.
Go to control panel -- Administrative Tools -- Computer Management -- local users and groups -- users
Here, we create two new users: "test" and "test1". No permissions are required. After the user is created, the user creation process is completed.
Enter Internet Information Service (IIS) Manager Default FTP site properties
Do not select "Allow anonymous connection" in the security account; otherwise, anyone can connect to your global directory through FTP.
Select the upper-level directory of the external service file directory from the FTP site directory in the main directory. If you do not want the sub-sites under the site to have the write permission, you do not need to select the write permission. If a subsite under this site requires write permission, write permission must be granted to the Global Site ftp. If you feel insecure, you can transfer the FTP directory data to an empty partition or sub-directory. For example, if the account test and test1 correspond to the Directory D:/test and D:/test1 respectively, the FTP Global Site Directory must be D :/.
Now, FTP service interfaces have been provided to Internet services, but no user can access resources from your FTP. We need to map the created users test and test1 to the FTP directory respectively. Many of my friends have asked me why Microsoft's FTP does not have an account, but can only be set to anonymous or non-Anonymous? It is actually okay, but you need some tips.
Right-click the default FTP site-create-virtual directory alias enter test-select the Access Directory corresponding to test and grant permissions-complete
The virtual directory alias is the user login name, which corresponds to the user in the User table. We can establish FTP users through the system to correspond to the FTP sub-site directories of different sites.