Sspanha.files.wordpress.com



192???Default ,????????????????? Remote ????????????? IIS 7.0 . ?????????????????????Remote Administrative , ???????????????? Web Server Manager Service WMSVC , ???????????????????????????????????????????????????????. Enable remote administrative ; Configure ????????????????? ??????????????????? IP/domain ??????????????????????? WMSVC ? ???????????????????????????????????????WMSVC ?????????????????????? Server ?????????????????????????????? Server ???????????????????????????????????????????????????????????? IIS WMSVC ?????Configure ??????????????????????????????????????????Server ????????????????????????Server Manager????????????????????????????????????????, ???Web server (IIS)???????????????? Manager Role ????????????????? Pane ??? ???????? Web server (IIS) ???????? 1933???????? Web server (IIS), ???Add Role Service ??????????????? Add Role Service Wizard4???????? Web server (IIS) , ?????????? ?????Management Tools? ??????Management Service checkbox (Figure 6-8) ?????????Next???? Install ??????????? IIS web Management Service6????????? ??? Close7??? Sever Manager8?????? IIS Manager9????????Server????????????? Connection Pane10?????????? Management Service ?????????????????????? Management Service Dialog (Figure 6-9) , ?????????????????Enable Remote Connection Checkbox , ?????????Apply????????????????????????????????????????????. ??????????????????? Allow ??? Dany button ?????IP ???Domain Restriction Section???????????? Restriction ?? PC ??????????? ????????????????????Server???? ???????+195????? Start ????? Action Pane ???????????????Management service?????????? Start , Administrative Tools, Service14?????????? Web Management Service ??? ?????????????????????????????? ???? ????????????, ???OK??????????????????????????????????? Services Management Console.???????????????????? Interface ???? , ??????????????????????????????????????? Configure ???????????????. ????????????????????????????????? , ??????????????????????????????????????????????????????????????????????????????????????????????????????????????IIS 7.0 ???????????? Command-Line administrative tool ???? APPCMD.exe? ????????????????????????????????? IIS Manager GUI ???????????? Command line. ????????????? Command ????????????????? command line , ?????????????????????????Scripts ?????? ???????????????????????????????????. APPCMD.EXE ????????? %WINDIR%\system32\inetsrv. ??????????????????? default system ???? User path ??, ???????????????????????????????????????????????????? ?? %WINDIR%\system32\inetsrv ??Command prompt ???????????????????????APPCMD.EXE????????????Configure Server???????? ??, ??????????? query information ?? object ??Server???????? , ???????????query??????????Server ????????, ????????, ???????????????????????????????????Server ?????????Appcmd.exe list siteCommand ??????????????????????????Server ????????, ????????????????????????? (Protocol or port) ??? State, ?????????Command???????????? (Figure6-10) ?????????????, Default web Site ????????????????????????????????????????????HTTP ??port 80. ????????????????????????? shell script , ????????????????????????Command ??????? Script-friendly ??????????????????????????????????????????? ?????????????????????????????????? site’s ID ???????????????? Parameter ?????Command ?????????APPCMD.EXE command ??????????????? Syntax:APPCMD<verb><object-type>[identifier][-argument:value…]????????parameter????????????????????????<Verb>???<object-type>? ?????site ????????????, object type????SITE ?verb????list? Verb(action) ???????????????????object type?????????? APPCMD.EXE ??????????????????????. Identifier and Argument ???????????????? ????????????????????????????????????????????Command. Object type ???????????????????????????????? Table 6-2196+197???????????????????APPCMD.EXE ?????????????????????????? Parameter ????????????????????????????????Command? ????????? Command????????? ???????????????????Server????????? ????????????????????????????????????????????????????????. ??????? The default Website . ????????????????? Command?????????APPCMD.EXE list SITE "Default Web Site"????????????????????command?? APPCMD.EXE, ????????????????????????????????????????????Properties ?????????????????????????????? Parameter , ?????????????????????????????????? Properties ???????????????? Parameter ???????????????????????????????????Site????????????????????????????????? APPCMD.EXE list SITE /state:started????????????? APPCMD.EXE ??????????????? Site ????????? ?????????? Parameter ?????????????? ???????? Command ????????APPCMD.EXE add SITE /?????????????? Command ?????????????????????? ? Parameter : name, id, bindings, and physicalPath.?????????????????? Site ??????????????????????????????????????????????????????????("Test Website") Id ????????????? ID ??????????????????????????Server . ???????????????? Long , Unique , ?????????????? Protocol , Address , port ??????Site ?????????? physicalpath? ?????????????? Root ???? Web mand?????????????????????? Site ???? Test Website ??????????????????????????? ???????HTTP ????? Port 8010 ????????????C:\inetpub\Test Website ????? Part ?????????. ???? ID ?? ?????????????????????????????. ??????????? ?? ID ?????????????????APPCMD.EXE add site /name:"Test Website" /id:8010 /bindings:"http:/*:8010:"/physicalPath:"C:\inetpub\TestWebsite"?????????????????? Site ???? APPCMD.EXE ???????????????????????Application ??? directory 1??????????site ???? ???????????????????? Application ?????????????????????????????site ???Directory ?????????????????????????????????????? APPCMD.EXE. ??????? ????????????????????????? Website? ??????????????Command ?????????????????????????? Application ???????????????????? ?????????????????? Application ??? ?????????????? directory ???????????????????????? Application ???APPCMD.EXE list APPS /site.name:"Test Website"APPCMD.EXE list VDIR /app.name:"Test Website/"???????????????? Apps command ????????????? ????? site “Test Website ” ???????? Application ???? “Test Website” ?????????????????????????????? Application ??DefaulAppPool. ????? VDIR command ???????? Application ???????? Parameter ????????? ????????????????????????????????????? Apps, ??????????????????? Application Name “Test Website” ???????????????????? Application Name? ??? “Test Website” /”is C:/inetpub/TestWebsite ???????????????????????????????????????????????APPCMD.EXE ????????????????? Back up and Restore IIS global ?Configuration ?????r. ??????????????????????????????????????????????????IIS server ?????????????????????????? Back up global configuration ??? ????????????????????????????????????????????? Restore ???????Configuration?????? . ???????????? Configuration Backup ??????? IIS_Backup ?????????????????APPCMD.EXE add backup IIS_Backup198+199Back up ????????????????, ??????????????????? Restore ?????????????. ???????? APPCMD.EXE ?????????????????????????????? . ???????????????????? Back up and Restore ?????? Back up ???????????????????????Command ???????? APPCMD.EXE list backupAPPCMD.EXE restore backup IIS_Backup????????????? Feature ??????????? IIS7.0 ???????????????????????? Server’s state ????????????????????????????????. ????????????????? ?????? Application pool ???????????? Application? ????????????????????????????? ???????????????Command ????????APPCMD.EXE list apppoolsAPPCMD.EXE list apppools /state:startedAPPCMD.EXE list apppools /state:stopped??????????????????????????????????????, ???????????????????????????, ????????????????????????????????????????????????????????????????????????????Command ????????APPCMD.EXE list wpsAppcmd list wp "2994"Appcmd list wps /apppool.name:MyApplicationPool?????????????????????? realtime ??????????????????????? Server ????????? ??????????????? Application pool , ???????????? , ??? Site ID ????????Command ????????APPCMD.EXE list requestsAPPCMD.EXE list requests /wp.name:2994APPCMD.EXE list requests /apppool.name:MyApplicationPoolAPPCMD.EXE list requests /site.name:"Test Website"IIS7.0 configuration ??????????????????????? ???????????? configuration file , ???????????APPCMD.EXE ???????????? ??????????? update ???Configuration, ????????????????????????? configuration file ?????????????????????????????????????????????????????????????? ??? configuration file ?????? ???? Path ?????????????? URL ???????? Server. ????????????????????????????????? Configuration file ??????? . ?????????????????????????????????????????????,????????????????????? Configuration , ?Path??????????? URL????????Command ????????APPCMD.EXE list configAPPCMD.EXE list config /section:defaultDocumentAPPCMD.EXE list config " site/www" /section:aspSetting configuration ?????????????????????, ?????????????? List verb , ????????Set Verb , ????????????? Parameter ??????? ?????? Set ??? Path or URL ????????????????????????????????????? Parameter.????????????????????????????????????? Parameter ??????????????? ?????defaultDocument??Server ??????????????????????????URL????????.APPCMD.EXE set config /section:defaultDocument /enabled:trueAPPCMD.EXE set config "Default Web Site/main/www"/section:defaultDocument /enabled:true????? Path URL ????? URL ?????????????????? URL ??????????????????????? ? ????? Path ?????????????? Site Name. ??????? URL . ?????????????????????? Configuration ?? WWW folder ?? TestWebsite virtual directory. ???????? Path ????????????????????? Site Name , ????? “Default Web Site /main/www”, ?????????? \www folder ??site ?? Default Web Site.IIS 7.0 Configuration File???????????????????????????? IIS7.0 ????????? Configuration File ????? IIS metabase ?????????????????? Server ?Configuration ? ???????? ??? IIS Configuration Setting ????????????????????????????????????????? The Configuration ??????????????? Configuration file ??????????????????? Setup ????? ??????????????? ????????????? ??????????? Setting ?????????? Globally ?????????? XML-encoded text? file ??????????? virtual directory ???????? folder file (?????? Configuration is unlocked). The Configuration ??????????????? Configuration File ?????????Machine.configSetting??? Apply ???Server ??????? ??? ????????.NET ?????????? IIS configuration files.ApplicationHost.configSetting?????????????? IIS ??? ?????? Machine.config Setting ???????? File ????????????? Default ??? %systemroot%\system32\inetsrv.Web.config(root-level)Setting????? Shard ??? Application ?????????Server ??? ?????? Machine.config ???????????? File ????????????? Default ??%systemroot%\\Framework\versionNumber\CONFIG.Web.config(Application-level)Setting????????????????????????? Configuration Setting ??????? Application ????????, ???????? Configuration ??????. File ???????????? Web.config file ????????? ????????????????????. File ??????????????????Folder ?????? application folder ???? 200Delegate Administrator?????????IIS , ?????Administrative ???????????? ?????????????????????????????????????????application ?????host server ????????. ???????????????????????????????????????? Developer ?????????????????????????????????????????????????????????????????????Server????????. ????????????????????????????????????????, ??????????????????????????????????????? IIS 7. ?????????????????????????????????? Lock or Unlock ????????????????????????? Configuration ???????? Override ??? Local Web.config file . ???????????, ???Configuration ???????????? Administration ???????, ???? Developer or ?????? Web site ???????????????????????? Upload configuration file ?? Application? space ????????????????????????????????????????.???????????????????? Developer ???????? ??????????????????? IIS metabase ??????????. Web site ??????????Setting?????? , ???????????????????Control ?????????? Option ????????? Configuration ???, ???????????????, ???????????????? ??? locking and Unlocking Configuration ????????????????????????????????????????Configuration file??????????, ?????????????????????????????????(ACLs) ?? Configuration file ????????????? Set ????????????????? root configuration file ???????????????????Delegate ??????????????????? ??????? lock or unlocked ??????????????????? delegate graphically ??????? IIS Manager ???????? Command prompt ????APPCMD.EXE?? ????????????, ????????????? ?????????Configuration file ??????????? XML text file ????? text editor ??????? ????? Notepad; ???????Path ??????? ????????????????????? ??????? methods , ???????Configuration delegation ??????? graphic methods ??????????????????? ???????????????????? APPCMD.EXE. ?????????????????????????????????????? lock and unlocked ?????defaultdocument ????? default configuration ?????APPCMD.EXEAPPCMD.EXE lock config /section:defaultDocumentAPPCMD.EXE unlock config /section:defaultDocument????????? Locked ? Unlocked ???????????????????????? Web site . ??????? ?????? Locked and Unlocked ???????defaultdocument ?? Web site ?? IT Homepage , ?????????????????APPCMD.EXE lock config "IT Homepage/" /section:defaultDocumentAPPCMD.EXE unlock config "IT Homepage/" /section:defaultDocument??????????????????????????????????? “????????????????????????” ????????????????? Parameter ?? APPCMD.EXE ??????????????????????????????????????????? Application.config XML file. ?????????????????????? User-friendly Version ?????????????, ?????????????????? IIS Manager ,????????????????? , ????????????????????????????????????????? ??????????????? “IIS Manager Configuration Mapping” ???????? (default.aspx?tabid=2&subtabid=25&i=1032). ???????????? application.config XML file ???????? ?????????????????, ??????????????????????????????????????????????????????????????.201????? ????????????? Microsoft ??????????????? ????????????????????????????????????????????, ????????????????, ??????? ?????????????????????MIME???????????????????????????? StaticContentHands-On Exercise: Delegating Feature using IIS Manager??????????????? Configuration Delegate ????? Graphic Interface?? IIS Manager. ????Configuration delegate ???????? Server , ?????????? delegate ????????????site ?????????Server , ????????????????? ?????????????????????Custom site delegate???? Web site ???????. ?????? Configuration ???? site delegate ??????????????? IIS Manager2??? IIS Manager? ?????????? Connection pane3???????? ??????????????? Delegate ????? Home pane(Figure 6-11)4?????????????????????????????????????? Configuration ???????Delegate (6-12)5???????????? Delegate ,??????????????????????????????????????,??????? ??? delegate ????????????? ????? Action pane . ????????????????? Right-click ???????????????????????? Delegate state ?? pop-up menu?Picture202Picture???????????????????? site ?????????? ??? IIS Manager2??? IIS Manager? ?????????? Connection pane3???????? ??????????????? Delegate ????? Home pane(Figure 6-11)???? Custom web site delegate ?? Action pane, ???????? Custom web site delegate page(Figure 6-13)5???????????site-drop down , ????????site??????????Configure 6???????????????????? web site 2 ??? ?????????????, ?????????????????????????? ?????Button copy ??? ????????????????? site ???????????? ???????????????????????site ??????????????????, ????????????????? (Figure 6-14)7configure delegate state ??????????????????? ???????????????????????????????????????? state203 picture204Server And Application Health and Performed???????????????????????? Web Application , ?????????????????????????????????????. IIS 7.0 ??????????????? Out-of-the-box tool?????????? ??????????????????? Server ????????? ????????????????? ????????????? Runtime Status & Control API (RSCA) , ???????????????Tool and event WMI scripts ??????????????????????????????Server ????????. ???????????? Query status ?? site ????????. Application pools, working processes, ??? ??????????????????? ????????????????????????. ??????????????????????????????????????????????????? logging ???????????. ????????????????????????????????? Application performance or availability issues???????????? logging ???????????????????????????????????????????????????????. ??????? Configure IIS 7.0 ???????????? Error ?????????? ? ??????????????? Delegate ??????? ????????????????????????????????????????????????????????. ???????????????? ?????????????????????????????????????????????????????????????Server ??????????????????. ?????????????????????????Runtime Status & Control API????????? RSCA ??????????????????????????????? Runtime and Configuration??Object ???????????IIS7.0????????????????????????????????????????. ??????????????????????????????? API ??????????, Microsoft ??????????????????????????WMI ?????????????????? script ???????????????????RSCA. IIS RSCA WMI ??????????????????????Web Administration namespace????. Object ????????????????????▼ ApplicationPool■ WorkerProcess■ AppDomain■ HttpRequest▲ SiteObject ?????????????????????????? Associator class , ????????????????????????????????????Object ???????? ???????????????????? Assoriator class ?????????????????????????????????????????????? ApplicationPool object. ????????????????? Script ???????????????? WebAdministration WMI namespace ?????? ?????????????????????????????????????'--- Connect to the WebAdministration providerSet oWebAdmin = GetObject("winmgmts:root\WebAdministration")Set oW3Processes = oWebAdmin.InstancesOf("WorkerProcess")'--- Display all running worker processesFor each oProcess in oW3Processes'--- Display the information for each processWScript.Echo "Process ID: " & oProcess.PIDWScript.Echo "Application Pool: " & oProcess.ApplicationPoolNext????? ????????????????????? ????????? WMI , ????????????????? IIS Management Scripts and Tools role service ???? Server Manager’s App Role Server Wizard. ????????????????????????????????????????????????????????????????????????RSCA ??IIS Manager. ???????????????????????????????? worker processes ?????????????? Worker Processes ??Server’s home pane ????????????? IIS Manager. ???????????????????????? ????????Worker processes ?????, ????? Current state ??? CPU , Memory , ???????????????????????? Current Request link ????? Action pane ??????????????????????????????????????????Worker processes. ????????Web application ???????????, ????????????? RSCA ????????????????????????????????????????Server ?????????????????????Appication?????Automatic Failedl Request Tracing???????????????????? Application ???????????????????????????? Troubleshooting errors??????????????????????????????????????????????????????????????????????????????????????? Physically monitoring Server? ????????????????????????????????????, ????? Application ???????????? ????????????????????? ???????????????????????????????????????Error ???????? ??????????????????????????????????Server ????????(??????????????????????????????????? Delegate server performance ???????????????????????????????????disk ???????)? ????????????????? ???????????????????????????????????????????????????????????server ?????????1. Tracing must be installed as role services for the Web Server (IIS) role.2. Verify that the FailedRequestTracingModule is defined in IIS Manager.3. Enable Failed Request Tracing.4. Configure failure definitions.Hands-On Exercise: setting Up Automatic Failed Request Tracing??????????????,??????????? IIS Tracing? ??? enable ????????????????????? tracing ?????????????????????????? server ??????????????????????????? trace due ??????????????????????1. ??? Server Manager.2. ??????????? Summary section, ??? Web Server (IIS).3. ??? the ?????? ?????? Service link.??? 4.???????? Tracing ???????????????, ??????????????? Services Figure 6-15. ?????????? Next ?????????????????????? 5. ??? IIS Manager.6. ????????server????????????? Connections pane.7. ??????????? Modules ???????????? ??????????????? FailedRequestTracing? Module ??????? (Figure 6-16).8. ????? Web Sites folder?????server?????????????Connections pane, ????????Web site ???????????? enable failed request tracing.???9. ?????????? Actions pane’s Configure , ???Failed Request Tracing link.10. ?????????????? Web Site Failed Request Tracing Settings dialog box, ???Enable checkbox,???? directory??????????????????????? log files ????????????????? trace files??????????????, ??????OK (Figure 6-17).11. ????? Web Site Home pane????????, ????????????????? Failed Request Tracing ? icon (Figure 6-18).12. ?????????????????? Failed Request Tracing ????, ??? Add ????? Actions pane.13. ??????????????????????????????trace (Figure 6-19), ????????????? Next.14. ?????dialog box??????? (Figure 6-20), ??????????????????????, status (error)codes ???????????????????????????????????????????timeout????????????????????????????????????????????????????????????????traced. ?????????? Next.15.????? dialog box???????,????????????????? trace??????????????????????verbosity (Figure 6-21). ?????????? Finish. ?????????????? 6-3 ?????????????????????? trace??????? Table 6-4 for verbosity levels.???XCOPY DEPLOYMENT????? IIS 7.0, IIS ??? configurations ?????????????????????the web.config file. ???????????????????? web.config file ????????????? application directory ?????????????? application ??????servers??????????????????? configuration.?????????????????????? configuration ? application settings ????????????????????????????? application ? Web site’s web.config file ?????????????? locked ??configuration file?????????????????????????.???????????????????web.config file ?????????? centralized ?????? Web sites ??? applications????????. ???????????????????????????????????????????????????????? files ??????????. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download