默认下,安装Windows server 2008时没有安装IIS功能组件
1、右键“计算机”,点击“管理”或在运中输入"servermanager.msc"
![](http://www.dabaoku.com/dabaoku/uploads/allimg/100324/2304235N4-0.jpg)
![](http://hiphotos.baidu.com/senya/pic/item/39a331dd270736d58d102980.jpg)
2、在“角色”选项中,单击“添加角色”
![](http://hiphotos.baidu.com/senya/pic/item/2c1ed7fc150589f1fc037f80.jpg)
3、选择服务器角色
![](http://hiphotos.baidu.com/senya/pic/item/4cf5c82a3c956f21d42af181.jpg)
(1)、单击选中“web服务器(IIS))前面的单选框。
(2)、在弹出的对话框中,单击“添加必需的功能”:
![](http://hiphotos.baidu.com/senya/pic/item/23f14d6639da4328ab184c81.jpg)
4、“添加角色向导”对web服务器进行简单介绍
![](http://hiphotos.baidu.com/senya/pic/item/5f8c7a38791adb2f97ddd882.jpg)
5、选择角色服务
注:如果你的程序在IIS7下出错,记得选择服务的时候添加IIS6兼容模块,如果无问题,这个可以不用选择;
![](http://www.dabaoku.com/dabaoku/uploads/allimg/100324/2304232I8-4.jpg)
6、确认安装选择
![](http://hiphotos.baidu.com/senya/pic/item/b433a70ef0231eeb36d1228c.jpg)
7、系统开始安装所选的角色服务
![](http://hiphotos.baidu.com/senya/pic/item/5ce60ace53039f35b600c88d.jpg)
8、安装完成
![](http://hiphotos.baidu.com/senya/pic/item/18bdd413e584432fdd54018d.jpg)