Webdeploy IIS6 synchronization application developed by Microsoft

Source: Internet
Author: User
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
    1. Start Service: Net start msdepsvc
    2. Enter the listening address in the browser, for example, http: // SERVERNAME: 9999/msdeployagentservice/
    3. 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
    1. Use iisback. vbs to back up IIS to configure http://technet.microsoft.com/zh-cn/library/cc775682 (ws.10). aspx
    2. webdeploy function preview http://learn.iis.net/page.aspx/346/web-deploy/
    3. merge iis6http: // merge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.