实验环境为:虚拟机上 同一网络下
Windows server 2016 && Windows 10
1.web服务
server下 打开服务器管理器
![](https://img-blog.csdnimg.cn/img_convert/2e06c267d04cdb039010f8c628d62ac7.png)
添加角色和功能
![](https://img-blog.csdnimg.cn/img_convert/7f24a291c6a54adb431b7f116b7ceeb1.png)
下一步
![](https://img-blog.csdnimg.cn/img_convert/b4ab62cd81467b6f6ca199205abb0602.png)
下一步
![](https://img-blog.csdnimg.cn/img_convert/cdec7621a97f52fc659c2566489f0eb4.png)
找到web服务器(IIS)√上
![](https://img-blog.csdnimg.cn/img_convert/de17212b3c0297bf2797c1c0a51bd6b1.png)
添加功能
![](https://img-blog.csdnimg.cn/img_convert/58da58a5f918a23d4c4f8c2507330089.png)
下一步
![](https://img-blog.csdnimg.cn/img_convert/921300eeba6cbef1bdda739cc2e7f775.png)
下一步
![](https://img-blog.csdnimg.cn/img_convert/cd562c9373fae0472646ef76007e61ab.png)
这里告诉了我们iis为10.0
直接下一步
![](https://img-blog.csdnimg.cn/img_convert/96bb35919a7de8c2f8985f3a448c815a.png)
到了这里
把ftp服务器√上
![](https://img-blog.csdnimg.cn/img_convert/dd0c2899940f568315e19998666f4d58.png)
下一步
![](https://img-blog.csdnimg.cn/img_convert/c10196358f1858d837c6524ac18145c5.png)
安装
![](https://img-blog.csdnimg.cn/img_convert/7d83c8fd62cc98f08c68842882b6ecda.png)
等待完成^^
安装完成到 服务器管理器 右上角工具 找到Internet Information Services (IIS)管理器
![](https://img-blog.csdnimg.cn/img_convert/67e1be350322b55a6dae36bdcc1c1ae0.png)
![](https://img-blog.csdnimg.cn/img_convert/d23fcea10c06fcfea6ae71b5539182d6.png)
点击WIN- 前便的>
![](https://img-blog.csdnimg.cn/img_convert/5c4c418f3d30d63c32b85c8002518ac0.png)
当我们安装完iis以后他就自带一个
这时我们去另外一个虚拟机上输入server可以看到一个网页
![](https://img-blog.csdnimg.cn/img_convert/fe3ceaeba368332ec6b6f2b04db9e27a.png)
这个是server自带的安装好iis以后就可以看到的一个网站
如果我们要自己安排网站就要回到Internet Information Services (IIS)管理器里边
![](https://img-blog.csdnimg.cn/img_convert/9d227a3e5eada8dd25def60691bbbef7.png)
右键网站
![](https://img-blog.csdnimg.cn/img_convert/cbab88fcfdabc2821d37002900238ef1.png)
添加站点
![](https://img-blog.csdnimg.cn/img_convert/ad0f11e37720d9afd176cda3c2fcdfa9.png)
网站名称随便取
物理路径自己选择到html存放的文件夹
要http还是https自己选择
ip点击下箭头选择
主机名可以不填
![](https://img-blog.csdnimg.cn/img_convert/9c1a2fad07168f628a9b3bff8f9d5363.png)
确定
![](https://img-blog.csdnimg.cn/img_convert/de473976284773843e4d870f97df8685.png)
我们可以右键地球的标致-把一开始自带的站点删除
![](https://img-blog.csdnimg.cn/img_convert/7f508d792cb58768cc2ad65b780721db.png)
删除
确定
![](https://img-blog.csdnimg.cn/img_convert/0fc6286f023fc341d8c95fa1b9637ef4.png)
这里我们把html放进站点文件夹里
![](https://img-blog.csdnimg.cn/img_convert/21f9d091858a6fef153231db6fed2a40.png)
到刚刚那个主业 点击默认文档
添加你要显示的html
![](https://img-blog.csdnimg.cn/img_convert/958f92835cbe7a0d20508677f1194b01.png)
添加
![](https://img-blog.csdnimg.cn/img_convert/0d8e53c26cfbd753420c557f0eb6b330.png)
输入刚刚站点里要显示的html
![](https://img-blog.csdnimg.cn/img_convert/d571b1c70ea0b44c4e54204bfb0a7de7.png)
这时就配置好了
![](https://img-blog.csdnimg.cn/img_convert/fb9de6d46f70ce2d8c0fd88b14cfe160.png)
我们去另外一台电脑看
![](https://img-blog.csdnimg.cn/img_convert/f30ae9a4effabfed0ad08b136d1dccf7.png)
2.ftp服务
![](https://img-blog.csdnimg.cn/img_convert/472039bf674848d7cdd8edcfe9aef6d2.png)
选择添加ftp站点
![](https://img-blog.csdnimg.cn/img_convert/1b531b0aa4f43a199624d4dfa54b9d92.png)
名字随便取
路径就是要ftp服务的文件夹
![](https://img-blog.csdnimg.cn/img_convert/149b4ed821985e08c4c042b769f94951.png)
![](https://img-blog.csdnimg.cn/img_convert/e28a3f0f3160ac2928d1507aa4ed2391.png)
ip地址可以改成固定ip
ssl改成
无ssl
![](https://img-blog.csdnimg.cn/img_convert/82fce5fc2bf09d583febba4950c4a487.png)
![](https://img-blog.csdnimg.cn/img_convert/cf8fd37ad8a2b5ab8696212ffe3f9e7e.png)
这里根据需要调整配置
![](https://img-blog.csdnimg.cn/img_convert/98549dfd34bec9dc9b20b92f52bf5244.png)
![](https://img-blog.csdnimg.cn/img_convert/59f4a04bd8c48ed0865845dea70ff6cf.png)