Parses FTP service (file download, upload)

FTP services and file sharing service difference is that file-sharing services can be used only for local area network, and FTP services both for local area network can also be used for wide area networks.
How to set up FTP:
Step one: Service Manager
Step Two: Click the Add Role
Step 3: Select the Web service
Step 4: Add the FTP Server role service interface (if you do not add this service you can not use the FTP function)
fifth step 3: click the installation (as follows)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
to enter the service manager IIS Manager
step one: right-click the server
step two: select Add FTP site
The third step: enter the site name (example: yun), select the path: E: \ yunsit as a site for uploading and downloading (this folder is created in advance)
step four: binding and SSL settings: Prerequisites: Verify that the server and client interoperability, and the network in the same segment, select the IP address is 192.168.100.100, The default is Auto start FTP site, SSL (certificate verification): select no SSL
step 5: enter authentication and authorization information, select basic authentication for authorized access to allow users to specify, for example zhangsan, permissions are set to read and write the
sixth step: click finish (site creation is completed at this time)
as follows
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
we are prepared prior to the experiment to verify: we recall that in the FTP set The user can read and write zhangsan
we see written permission is not checked before entering yunsit folder secure Users group
to read and write if we verify a user can later time zhangsan, it means that as long as in the FTP permissions are set on it; if not, then it means that you need to set folder permissions itself

FTP站点在客户端的访问方式:
第一种:资源管理器
进入win10系统 选择资源管理器,点击地址栏输入ftp://1921.168.100.100敲回车(此操作之前需先关闭server2016系统中的防火墙),此时会跳出身份验证提示,输入zhangsan,密码123,点击登录就可以进入到ftp站点了
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
此时站点中内容为空,我们回到server2016中的共享文件夹yunsit中创建一个demo01的TXT文件,点击进入文档输入内容:“thisi is demo”点击保存,此时生成此文档,我们再回到win10中在站点点击刷新,文档出现,
这个时候我们需要此文件,下载直接拖动文件到桌面(此时代表是有读取权限的)
大家知道写入权限的话控制着该账户能否上传和删除,此时我们把桌面的文件名改为demo02,文字中添加02,此时我们拖动桌面文档到FTP中,可以拖进来表示可以上传,此时服务器端也是可以看到新增加的文件的,如此则表示实验成功!
第二种:浏览器
进入浏览器,在地址栏输入ftp://192.168.100.100,输入用户名和密码登录,此时可以看到站点中的文件,此时我们发现使用浏览器打开站点,看到的文件只可以下载,但是是没有上传功能的
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
第三种:命令提示符
进入win10,运行cmd,输入ftp 192.168.100.100敲回车,此时提示输入账号输入zhangsan敲回车,提示输入密码输入123敲回车,提示logged in(进入),此时进入ftp站点但是看不到文件,接下来我们还需要输入命令dir,提示文件传输程序是否允许访问选择允许,得到站点中的文件。
If this time I want to download, then how? Command help, which put to upload, get to download, bye for the exit, this time to download if you need to enter is:: If you do not know that we can enter the command get demo01.txt then hit Enter to download, then save the file in the C: \ users \ chen's next target path, if we want to specify the path to download, for example, this time to download d drive, enter the command bye, enter the command to log on again before d :, the path will be displayed in the d drive when entering ftp address registration, at this downloaded file on the disk in d
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
this time we downloaded in editing the document name demo03, and then upload the file in the landing path, enter the command: put demo03.txt knockout round, display uploaded successfully.
Parses FTP service (file download, upload)
The above experiment was ftp site access method in the client.

Anonymous access site settings:
enter the IIS Manager, select the access rules, click Edit, select all users (if anonymous user then selects all anonymous users), this time taking into account the security reasons we only give permissions to read
back into the win10, enter into the Explorer ftp site address, this time because all users, so the super administrator can login, anonymous user, then you need to set anonymous authentication to enable authentication in IIS Manager, and then hook the login screen anonymous login option, hit enter to enter
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
if you use the command prompt anonymous access as follows:
Parses FTP service (file download, upload)

How to set up the reject file upload types:
site in IIS Manager, select Request Filtering, choose to reject filename extension, for example, verification tests doc, behind, dragged into the site of the new doc file into the site prompts do not have permission, then successful experiment.
Parses FTP service (file download, upload)
Parses FTP service (file download, upload)
All content and related content above is my share of the FTP service, thank you!

Guess you like

Origin blog.51cto.com/14464303/2424694