笔者:YY同学
文章目录
Step 1: Install IIS (Internet Information Service)
Win + R
调出命令行,control -> Program -> Turn Windows feature on / off
勾选 Internet Information Service 选项即可,会默认安装
Step 2: Find IIS and Open
Step 3: Create a Website
- Right Click -> Add Website
- Set a name and select the physical directory of html textbook
- Remember to set an empty port ( I use 8085 as an example )
名字随便取,物理路径选择 html 网页的根目录,端口一定要设置为空端口!!
可以使用netstat -ano | findstr "8085"
查看该端口是否已被占用(如果有TCP连接信息的说明已经被占用)
Step 4: Enable Directory Browing
CN101 -> Directory Browing -> Enable
Step 5: Set Permission
Find the root file
Right click -> Properties -> Security -> Edit -> Add -> Advanced -> Find Now
Search Everyone and add
Set Everyone as Full control
Click OK and apply all setting
Step 6: Test
Open browser and run
http://localhost:8085/index.html