ArticleDirectory
- IIS configuration backup
- IIS app pool
Webdeploy synchronize IIS6 documentation download
Introduction
Webdeploy is a simple application developed by Microsoft for IIS management.Program. Webdeploy transfers applications deployed on IIS6 to the iis7 application server, synchronizes between IIS6 application servers, and synchronizes between iis7 application servers through a simple command line script. Webdeploy synchronization includes IIS configuration and deployment application synchronization. It is worth noting that please back up IIs before performing any operations.
Application Environment
- . NET Framework 2.0 SP1 or later
- Web Deployment Tool 1.0
Synchronization mode
- Push mode: Synchronize the local server to the remote server
- Pull Mode to synchronize the remote server to the target server
- Independent sync
- Manually synchronize and copy the packaged site to a remote server.
Http://www.iis.net/expand/WebDeploy
Install webdeploy
Install webdeploy on the serverRemote Agent serviceService, Responsible for listening to HTTP requests for management operations. Webdeploy listens to http: // +/msdeployagentservice/by default /. % 20% 0d because Web applications generally listen to port 80, because Web applications generally listen to port 80, so we need to modify the default configuration. Create a BAT file and execute:
Msiexec/I <msi_filename>/Passive addlocal = All listenurl = http: // SERVERNAME: 9999/msdeployagentservice/
- Msi_filename:Installer name
- Servername:Corresponding machine name or IP addressAddress
- 9999: indicates the listening port
Test installation
- Start Service: Net start msdepsvc
- Enter the listening address in the browser, for example, http: // SERVERNAME: 9999/msdeployagentservice/
- The correct page response result is 500 Error
Figure: Test webdeploy Installation
Step 1-view site Dependencies
Command: msdeploy-verb: getdependencies-Source: metakey = lm/w3svc/1. view the environment dependency of the IIS Site configuration and set it on the target server. For example, permission and dependency.
- In IIS6, metakey = lm/w3svc/1 is used, where "1" is the website ID. You can click site in the IIS manager.
- Use apphostconfig = "in iis7"Default web site", Is the site name.
Step 2-view IIS Synchronization
Command:
- Push: executed on the local server
Msdeploy-verb: sync-Source: metakey = lm/w3svc/1-Dest: metakey = lm/w3svc/1, computername = server1: 9999-Whatif> msdeploysync. Log
- Pull: run on a remote server
Msdeploy-verb: sync-Source: metakey = lm/w3svc/1, computername = server1-Dest: metakey = lm/w3svc/1-Whatif> msdeploysync. Log
If you do not have the access permission, you must provide the user name and password. The parameter is username and password. IIS synchronously updates information into the msdeploysync. log file. Directory address: Under Program Files \ IIS \ Microsoft Web deploy.
Step 3-Execute IIS Synchronization
After checking, remove the-Whatif label in the command.
- Push: executed on the local server
Msdeploy-verb: sync-Source: metakey = lm/w3svc/1-Dest: metakey = lm/w3svc/1, computername = server1: 9999> msdeploysync. Log
- Pull: run on a remote server
Msdeploy-verb: sync-Source: metakey = lm/w3svc/1, computername = server1-Dest: metakey = lm/w3svc/1> msdeploysync. Log
Other IIS configuration backups
- Backup: iisback/backup/B <FILENAME>
- View the backup list: iisback/List
- Restore: iisback/resotre/B <FILENAME>
IIS app pool
- Save the app pool Configuration:
Msdeploy-verb: sync-Source: metakey = lm/w3svc/apppools-Dest: archivedir = c: \ apppoolconfig, encryptpassword = testiis
- Restore the app pool Configuration:
Msdeploy-verb: sync-Source: archivedir = c: \ apppoolconfig, encryptpassword = testiis-Dest: metakey = lm/w3svc/apppools
Other resources
- Use iisback. vbs to back up IIS to configure http://technet.microsoft.com/zh-cn/library/cc775682 (ws.10). aspx
- webdeploy function preview http://learn.iis.net/page.aspx/346/web-deploy/
- merge iis6http: // merge