WebDeploy IIS6 Synchronous Application _win server developed by Microsoft

Source: Internet
Author: User
Tags log log
WebDeploy Sync IIS6 Document download

Brief introduction

WebDeploy is a simple application developed by Microsoft for IIS management. WebDeploy is deployed on IIS6 by simple command-line scripting applications to IIS7 Application Server transfer, IIS6 application Server synchronization, and IIS7 Application Server synchronization. WebDeploy synchronization contains synchronization of IIS configuration and deployed applications. It is worth noting that you are backing up before any action is taken on IIS.

Application environment

    • . Net Framework 2.0 SP1 or later
    • Web Deployment Tool 1.0

Sync mode

    • Push push way, sync local server to remote server
    • Pull, synchronizing remote server to target server
    • Independent Sync
    • Manually sync, the packaged site is replicated to the remote server.

Download Address

Http://www.iis.net/expand/WebDeploy

Install WebDeploy

Installation WebDeploy will be installed on the server Remote Agent Service Service, which is responsible for listening for HTTP requests for administrative operations. WebDeploy Default Listener http://+/MSDEPLOYAGENTSERVICE/. %20%0D because Web applications are generally listeningBecause Web applications are typically listening on port 80, 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: Install program name
    • ServerName: corresponding machine name or IP Address
    • 9999: Listening port

Test installation

    1. Start the service: Net start msdepsvc
    2. Enter the listener address in the browser such as http://ServerName:9999/MSDEPLOYAGENTSERVICE/
    3. The correct page response result is 500 error

Figure: Test WebDeploy Installation

Step to see site dependencies

Command: MSDEPLOY-VERB:GETDEPENDENCIES-SOURCE:METAKEY=LM/W3SVC/1 View the IIS site configuration environment dependencies and set the appropriate settings on the target server. For example, permissions, dependencies, and so on.
    • METAKEY=LM/W3SVC/1 is used in IIS6, where "1" is the site identity. You can click on the site to view it through IIS Manager.
    • apphostconfig= "Default Web site" is used in IIS7 for the site name.

Step 2– View IIS Synchronization

Command:
    • Push: Executing on local server

MSDEPLOY-VERB:SYNC-SOURCE:METAKEY=LM/W3SVC/1-dest:metakey=lm/w3svc/1,computername=server1:9999-whatif > Msdeploysync.log

    • Pull: Executing on 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 access rights, you need to provide a username and password, parameters: Username,password. The IIS synchronization update information is written to the Msdeploysync.log log file. Directory Address: Program Files\iis\microsoft Web Deploy.

Step 3-Perform IIS synchronization

After the check is complete, remove the-whatif label from the command
    • Push: Executing on local server

MSDEPLOY-VERB:SYNC-SOURCE:METAKEY=LM/W3SVC/1-dest:metakey=lm/w3svc/1,computername=server1:9999 > Msdeploysync.log

    • Pull: Executing on remote server

MSDEPLOY-VERB:SYNC-SOURCE:METAKEY=LM/W3SVC/1,COMPUTERNAME=SERVER1-DEST:METAKEY=LM/W3SVC/1 > Msdeploysync.log

Other

IIS Configuration Backup

    • Backup: iisback/backup/b <filename>
    • View Backup list: Iisback/list
    • Recovery: iisback/resotre/b <filename>

IIS APP POOL

    • Save App Pool configuration:

Msdeploy-verb:sync-source:metakey=lm/w3svc/apppools-dest:archivedir=c:\apppoolconfig,encryptpassword=testiis

    • To 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 configuration http://technet.microsoft.com/zh-cn/library/cc775682 (ws.10). aspx
    2. WebDeploy feature preview http://learn.iis.net/page.aspx/346/web-deploy/
    3. Merging IIS6http://blogs.msdn.com/rakkimk/archive/2010/03/02/ Msdeploy-can-i-use-it-to-migrate-my-iis6-to-another-iis6-oh-yes.aspx

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.