Today to introduce you to the server file server, that is, FTP, through a few examples, take everyone to understand the FTP
FTP: File Transfer Protocol, port number: 21/tcp
Let's talk about today's experimental environment, two servers Server01,server02,server01 for the domain controller (can not be used), SERVER02 for the FTP server (with Server01 in the same domain environment), server05-bit client
Example: Deploying a read-only access FTP site (download)
Open Server Manager in Server02, select Add roles and features, add FTP server under Web Service
650) this.width=650; "title=" 2015-05-29_170331 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_170331" src= "http://s3.51cto.com/wyfs02/M02/6D/BF/wKioL1VrAoHB1of8AAHXPzaCoI4435.jpg" width= "644" height= "458"/>
Click Install
650) this.width=650; "title=" 2015-05-29_170400 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_170400" src= "http://s3.51cto.com/wyfs02/M02/6D/C3/wKiom1VrAOqz_WU6AAFg1HgHECo289.jpg" width= "644" height= "454"/>
We now create a name for the FTP folder in the C-disk, create an FTP file inside, do the test,
650) this.width=650; "title=" 2015-05-29_170816 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_170816" src= "http://s3.51cto.com/wyfs02/M00/6D/C3/wKiom1VrAOqifOKRAAD0fLKjzzo988.jpg" width= "644" height= "454"/>
Open Server Manager, select IIS Manager
650) this.width=650; "title=" 2015-05-29_170522 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_170522" src= "http://s3.51cto.com/wyfs02/M01/6D/C3/wKiom1VrAOrxbuOJAAHIpkErhhU072.jpg" width= "644" height= "371"/>
Right-click the website and select the reduced FTP site
650) this.width=650; "title=" 2015-05-29_170619 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_170619" src= "http://s3.51cto.com/wyfs02/M02/6D/C3/wKiom1VrAOrzn_z7AAHdJTm6_HE636.jpg" width= "644" height= "442"/>
Add the FTP name, this is called FTP, select the physical path, click Next
650) this.width=650; "title=" 2015-05-29_171007 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_171007" src= "http://s3.51cto.com/wyfs02/M00/6D/C3/wKiom1VrAOuC3YmMAADo7iXPAuA159.jpg" width= "566" height= "484"/>
Tick automatically start the FTP site (not selected, you can start the effect manually) select No SSL, click Next
650) this.width=650; "title=" 2015-05-29_171123 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_171123" src= "http://s3.51cto.com/wyfs02/M01/6D/C3/wKiom1VrAOvxC2AeAAFIJpif9a4059.jpg" width= "566" height= "484"/>
Authentication selection Basic, authorization to select all Users, permission to select Read (experimental request is read-only FTP), click Finish
650) this.width=650; "title=" 2015-05-29_173401 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_173401" src= "http://s3.51cto.com/wyfs02/M02/6D/C3/wKiom1VrAOvjKU4VAADumxhKFCQ498.jpg" width= "574" height= "484"/>
After we have created the FTP site, we test the client, access the ftp://192.168.10.102 (Ftp://+ip address) through the browser (Windows Explorer), enter the username and password, and here I log in with the Administrator account (no new user, Have a lazy)
650) this.width=650; "title=" 2015-05-29_173549 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_173549" src= "http://s3.51cto.com/wyfs02/M00/6D/C3/wKiom1VrAOzRGkhCAAHNC5VoG44625.jpg" width= "644" height= "471"/>
We'll be able to see our test files when we land.
650) this.width=650; "title=" 2015-05-29_174037 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_174037" src= "http://s3.51cto.com/wyfs02/M00/6D/C3/wKiom1VrAOzC4rOxAAD6E5JdZB0850.jpg" width= "644" height= "468"/>
below to detect whether this FTP is read-only FTP, first we have to rename, found no permissions
650) this.width=650; "title=" 2015-05-29_172259 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_172259" src= "http://s3.51cto.com/wyfs02/M01/6D/BF/wKioL1VrAoPgrcjYAAE2YK4jsHc429.jpg" width= "644" height= "452"/>
Below we download the file to the desktop, the feasible
650) this.width=650; "title=" 2015-05-29_172415 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_172415" src= "http://s3.51cto.com/wyfs02/M02/6D/BF/wKioL1VrAoPA1tfaAAFuoR92ZJM958.jpg" width= "644" height= "465"/>
Create a new TXT document, the content is random, the name is called new text document
650) this.width=650; "title=" 2015-05-29_172454 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_172454" src= "http://s3.51cto.com/wyfs02/M00/6D/BF/wKioL1VrAoOw51v4AACqvikSxPw894.jpg" width= "644" height= "447"/>
We uploaded the newly created document (dragged and uploaded) and found no permission
650) this.width=650; "title=" 2015-05-29_172513 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_172513" src= "http://s3.51cto.com/wyfs02/M01/6D/BF/wKioL1VrAoOijmSyAAFpvNpboNQ327.jpg" width= "644" height= "472"/>
Then, read-only FTP is complete and go to the next topic
Example: Deploy a readable and writable FTP site (download, upload)
Readable writable FTP site, with a read-only FTP site, there is no big difference, as long as the choice of permissions, read and write all hook can, other places of configuration, reference read-only server
650) this.width=650; "title=" 2015-05-29_175036 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "2015-05-29_175036" src= "http://s3.51cto.com/wyfs02/M02/6D/BF/wKioL1VrAoTxDUV6AADpc_PMmtQ281.jpg" width= "567" height= "484"/>
Enter today's play, deploy user-isolated FTP sites, each user can only manipulate the user's directory, and not see other user directories
Example: Deploying a user-isolated FTP site
Step 1: Create a user on the FTP server
First we need to create a new user, here 4 new users, the name is as follows (experimental environment, random)
Zc1,zc2,zc3,zc4
Step 2: Create a user directory
Ftproot\localuser\ User Directory
Ftproot\localuser\zc1
Ftproot\localuser\zc2
Ftproot\localuser\zc3
Ftproot\localuser\zc4
Step 3: User isolated FTP deployment
FTP anonymous User: Anonymous or FTP password any email address
Anonymous User directory: Ftproot\localuser\public
This article is from the "Zhangxiao C" blog, be sure to keep this source http://zhangcong.blog.51cto.com/10005154/1656913
Windows Server 2012 File Server (FTP)