21
7.4 IIS 服服服

7.4 IIS 服务器

Embed Size (px)

DESCRIPTION

7.4 IIS 服务器. 7.4.1 IIS 服务器的配置和使用. 1、安装 操作系统: Windows NT/2000/XP 服务器版自动安装 专业版:开始/控制面板/“添加/删除程序” 选择“添加/删除 Windows 组件” 选择“ Internet 信息服务( IIS)” (如图). 2、管理 IIS 服务器 打开控制面板 打开“管理工具” 打开“ Internet 服务器管理” 展开本地计算机 单击“默认 Web 站点”可以打开如图所示窗口. 用鼠标单击“默认 Web 站点”,按下鼠标右键,弹出如图所示的菜单:. 选择“属性”弹出如图所示站点属性窗口 - PowerPoint PPT Presentation

Citation preview

Page 1: 7.4 IIS 服务器

7.4 IIS 服务器

Page 2: 7.4 IIS 服务器

7.4.1 IIS 服务器的配置和使用

1、安装 操作系统: Windows   NT/2000/XP 服务器版自动安装 专业版:开始/控制面板/“添加/删除程

序” 选择“添加/删除 Windows 组件” 选择“ Internet 信息服务( IIS)” (如图)

Page 3: 7.4 IIS 服务器
Page 4: 7.4 IIS 服务器

2、管理 IIS 服务器 打开控制面板 打开“管理工具”

打开“ Internet 服务器管理” 展开本地计算机 单击“默认 Web 站点”可以打开如图所示

窗口

Page 5: 7.4 IIS 服务器
Page 6: 7.4 IIS 服务器

用鼠标单击“默认 Web 站点”,按下鼠标右键,弹出如图所示的菜单:

Page 7: 7.4 IIS 服务器

选择“属性”弹出如图所示站点属性窗口 在其中可以更改该站点的 IP 地址、端口等参

Page 8: 7.4 IIS 服务器
Page 9: 7.4 IIS 服务器
Page 10: 7.4 IIS 服务器
Page 11: 7.4 IIS 服务器

3、 IIS 的日志文件 我的电脑-- Winnt 目录-- System32 目

录-- Logfiles -- W3SVC1 目录 找到类似 ex020510.log 格式的文件 打开后如图所示

Page 12: 7.4 IIS 服务器
Page 13: 7.4 IIS 服务器

7.5 服务器日志文件的分析

Page 14: 7.4 IIS 服务器

7.5.1 日志文件概述

日志文件的格式 Microsoft IIS Log Format ( IIS 日志文件格式) ; National Center for Supercomputing Applications (N

CSA) Common LogFile Format ( NCSA 通用日志文件格式) ;

World Wide Web Consortium (W3C) Extended Log File Format ( W3C 扩展日志文件格式) ;

ODBC Logging.

Page 15: 7.4 IIS 服务器

NCSA 通用日志文件格式

202.192.36.116 - - [15/Apr/2004:11:02:05 +0800] "GET /manual/style/css/manual-loose-100pc.css HTTP/1.1" 200 3036

Page 16: 7.4 IIS 服务器

W3C 扩展日志文件格式

date time c-ip cs-username s-sitename s-computername s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Cookie) cs(Referer)

2004-04-29 00:00:39 218.90.160.98 - W3SVC168 252-229 61.151.252.229 80 GET /imagesnew/nav1r.gif - 200 0 401 254 0 HTTP/1.1 www.chengzhi.net Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) - http://www.chengzhi.net/

Page 17: 7.4 IIS 服务器

7.5.2 HTTP 协议状态码

"100" : Continue "101" : witching Protocols "200" : OK "201" : Created "202" : Accepted "203" : Non-Authoritative Information "204" : No Content "205" : Reset Content "206" : Partial Content

Page 18: 7.4 IIS 服务器

"300" : Multiple Choices "301" : Moved Permanently "302" : Found "303" : See Other "304" : Not Modified "305" : Use Proxy "307" : Temporary Redirect

Page 19: 7.4 IIS 服务器

"400" : Bad Request "401" : Unauthorized "402" : Payment Required "403" : Forbidden "404" : Not Found "405" : Method Not Allowed "406" : Not Acceptable "407" : Proxy Authentication Required "408" : Request Time-out "409" : Conflict "410" : Gone "411" : Length Required "412" : Precondition Failed "413" : Request Entity Too Large "414" : Request-URI Too Large "415" : Unsupported Media Type "416" : Requested range not satisfiable "417" : Expectation Failed

Page 20: 7.4 IIS 服务器

"500" : Internal Server Error "501" : Not Implemented "502" : Bad Gateway "503" : Service Unavailable "504" : Gateway Time-out "505" : HTTP Version not supported

Page 21: 7.4 IIS 服务器

7.5.3 日志文件分析工具

NiHuo