Current location - Quotes Website - Collection of slogans - Iis how to configure ftpiis how to configure the website
Iis how to configure ftpiis how to configure the website
How to configure FTP-soranokiseki-ChinaUnixblog on IIS7

1。 I found that I can set up an ftp site directly with IIS. Then my thoughts became clear.

First, execute three commands.

CaCl sc:\ Windows \ System32 \ inetsrv \ config/g Network Service Network Service Network Service & amp quot:R/E

Then, create a default directory for FTP. Please add a network service with full control rights.

Next, we start to configure IIS7, create an FTP site, enable IisManagerAuth for it, and create an account with IIS management credentials to grant it the corresponding FTP access rights.

Before starting, please confirm that the management service component of IIS7 has been installed, otherwise, please enter server management, click Add Role Service, select the management service component of IIS7 and install it.

By default, you can use C:\inetpub\ftproot as the FTP home directory. Of course, you can also create or choose a directory according to your own needs, but it should be noted that please give the network service full control.

Let's configure IIS7 to enable IISManager credentials, and we can only use IisManagerAuth after it is enabled. To do this, please open IIS Manager, double-click the management service, select Windows credentials or IIS Manager credentials, and finally click Apply under the action list on the right.

Then use IIS manager user to create a user account managed by IIS. To do this, double-click IIS Manager User, click Add User, and enter the user name and password in the pop-up form.

After the operation is completed, you can start creating FTP sites. First, select "Website" in the navigation form on the left side of IIS Manager, then right-click and click "Add FTP site?" .

Enter the name of the FTP site in the site information, such as the default FTP site. And select the default content directory. In this example, gOxiA uses C:\inetpub\ftproot, and then clicks Next.

In the binding and SSL settings, enable the virtual host name as needed. Note: Some clients may not support FTP virtual host names. In addition, please change the default configuration of SSL from "required" to "allowed", otherwise, if you use SSLFTP login mode without configuring SSL certificate, the client connection will fail.

In the configuration of authentication and authorization information, it is more necessary to choose authentication methods and specify users and permissions. If only IIS Manager users are allowed to access the FTP site, you can click Finish without configuring this step. It is convenient for everyone to learn. In this example, the administrator of the system user is allowed to read and write FTP.

Now that we have created an FTP site using Windows authentication, we can use the administrator to log in to FTP.

After testing, the created FTP site has been running normally. Next, we will add a previously created IIS manager user -Goxia, who has corresponding access rights to this FTP site.

First, select the default FTP site, double-click FTP authentication in the content form, enter FTP authentication settings, and click Custom Provider in the operation on the right. , check "IisManagerAuth" in the pop-up form.

After enabling IisMangerAuth, open the FTP authorization rule, add the designated user -—goxia, and give it corresponding access rights.

Finally, we use IIS manager goxia to log in to FTP for testing.

If the first login fails and the user name and password can't be verified, you need to open the "IIS Administrator Permission" setting of the FTP site and add the account of goxia. After that, successfully test the login and then delete the account from it. I checked the relevant guidance documents of IIS.net and found that this step is required by default, but gOxiA thinks that this step is to configure whether the user has the remote management authority of this FTP. Once the remote management service of IIS is configured and enabled, the permissions of this account may lead to security risks. At present, Wukong does not fully understand it. I hope some netizens can give me some advice!

How to set FTP in IIS?

First install the ftp module, then start the FTP service and create a windows user. After creating a windows user, right-click FTP and select Permissions. Adding a created user will add an FTP account.

When joining, you can choose the user's right to access FTP, which is the same as the right set under windows. How to set up ftpserver?

Open the control panel-> Procedures and functions->; Enable or close the window function. In the pop-up window, select three options of FTP server under InternetInformationServices, and click OK to complete the installation.

Open the control panel-> Management tools-> Internet Information Services (IIS) Manager, double-click to open it.

In the IIS management interface that opens, right-click the website and select the right-click menu to add FTP site.

In the Add FTP Site window, enter the name of the site, select the physical path to store files, and then click Next.

In the binding and SSL setting interface, fill in the ip address of the currently configured server, and the port number is 2 1 by default, which can be modified. This article is for demonstration only, without checking SSL, choose according to actual needs. Click the Next button.

In the authentication and authorization information interface, check Anonymous, Basic, All Users, Read and Write. These are for demonstration only. Check them as needed, and then click Finish.

After the successful addition, you can see the name of the FTP site just added under the website on the left.

After the setting is successful, you can use ftp://ip address: port to enter Run in the browser or folder address bar. If the port is the default 2 1, it can be omitted; Otherwise, the port number cannot be omitted.

How to set an accessible ftp in WAN?

Let me teach you "1", first set the IP of your dormitory to manual, that is, turn off the DHCP service in the router! Or you can leave it on and set the IP address acquisition to manual in the IP properties! This is mainly for the convenience of later port mapping!

2。 Add the default 2 1FTP port mapping to the virtual service of the router (some routers are called port mapping)! So as long as an external network accesses your public FTP, the router will automatically transmit the data to your machine! It is equivalent to accessing your FTP directly!

3. Set up dynamic domain name resolution! Because your external IP address is also changing, you can't change your access address just by restarting the router once, then the next dynamic domain name resolution software can do it. For example: peanut shells! U simple, download it and you will use it! How to set user and password? Just look at the IIS tutorial. It is suggested to simply build FTP software SERV-U, so that the external network can directly access your FTP! But the download speed is very limited!

Describe the installation steps of FTP server?

1. First, we create two users on the server. These users are used to log in to FTP. Right-click my computer-> Management->; Local users and groups->; User-> Right-click to create a new user-> Just enter the user name and password, and then click Create.

2. Create a new folder "C:FTP Upload" on drive C, a new folder "LocalUser" under this file, and new folders "Public" (this is a public folder), "xxx" and "XXX 1" under this folder (XXX and XXX1must be the same as the created local users). Create a new folder "C: FTP Download" on drive C, and put different files in each folder to show the difference.

3. install IIS components. In the Start menu-> Control Panel-> Add or Remove Programs-> Add/Remove windows Components-> Application server->; Details-> Iis- > details -> FTP- > ok-> finish. This will install FTP on the server.

4. Configure FTP server and create upload and download services! To create an upload server: right-click the FTP site-> Select a new FTP site-> You can fill in the description according to your own needs-> The address is generally the address of the server, so the default port is 21->; Because it provides upload service, users are isolated->; Its directory points to "C:FTP upload"->; Access rights should be marked with "read" and "write" (error ~ in the figure)-> Click Finish to create the uploaded service. Create download server: Since port 2 1 is occupied, we will use port 2 12 1 without isolating users. Its directory points to "C: FTP download", and we can create an FTP server in a few simple steps as long as we have read permission.

5. Test the FTP server installed on the XP host. We can open the uploaded FTP page by entering the IP address FTP:/192.168.1.2 on the XP host, and enter FTP:/192.438+068.1.2:

How to set up an ftp server?

1. Open the control panel->; Procedures and functions->; Enable or close the window function. In the pop-up window, select three options of FTP server under InternetInformationServices, and click OK to complete the installation.

2. Open the control panel-> Management tools-> Internet Information Services (IIS) Manager, double-click to open it.

3. In the opened IIS management interface, right-click the website and select the right-click menu to add FTP site.

4. In the Add FTP Site window, enter the name of the site, select the physical path to store the file, and then click Next.

5. In the binding and SSL setting interface, fill in the ip address of the currently configured server. The default port number is 2 1, which can be modified. This article is for demonstration only, without checking SSL, choose according to actual needs. Click the Next button.

6. In the authentication and authorization information interface, check Anonymous, Basic, All Users, Read and Write. These are for demonstration only. Check them as needed, and then click Finish.

7. After the successful addition, you can see the name of the FTP site just added at the bottom of the website on the left.

8. After the setting is successful, you can use ftp://ip address: port to enter and run in the browser or folder address bar. If the port is the default 2 1, it can be omitted; Otherwise, the port number cannot be omitted.