如何将IIS 7站点迁移到另一个服务器? [英] How do you migrate an IIS 7 site to another server?

查看:1142
本文介绍了如何将IIS 7站点迁移到另一个服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

    $ b

我是IIS的新世界,但我想知道将网站移动到其他服务器的最佳做法$ b

  • 在新服务器上手动重新创建站点(由于明显原因而无法维护)

  • 复制applicationHost.config设置文件

  • 使用appcmd进行备份和还原

  • 使用MSDeploy在新机器上发布站点

  • 使用第三方工具

    • Manually recreate the site on the new server (not maintainable for obvious reasons)
    • Copy the applicationHost.config settings file
    • Use appcmd to make a backup and restore
    • Use MSDeploy to publish the site on the new machine
    • Use a 3rd party tool

    只是想知道别人的经历。谢谢!

    Just wondering what others' experiences have been. Thanks!

    推荐答案

    我会说在IIS管理器中导出您的服务器配置:

    I'd say export your server config in IIS manager:


    1. 在IIS管理器中,单击服务器节点

    2. 转到管理下的共享配置

    3. 单击导出配置。 (如果您要通过互联网发送密码,您可以使用密码,如果您要通过USB钥匙移动它们,则不要出汗)。

    4. 移动这些文件到您的新服务器

    1. In IIS manager, click the Server node
    2. Go to Shared Configuration under "Management"
    3. Click "Export Configuration". (You can use a password if you are sending them across the internet, if you are just gonna move them via a USB key then don't sweat it.)
    4. Move these files to your new server

    administration.config
    applicationHost.config
    configEncKey.key 
    


  • 在新服务器上,返回到共享配置部分,然后选中启用共享配置。输入这些文件的物理路径中的位置并应用它们。

  • On the new server, go back to the "Shared Configuration" section and check "Enable shared configuration." Enter the location in physical path to these files and apply them.

    BAM!去喝一杯啤酒!

    BAM! Go have a beer!

    这篇关于如何将IIS 7站点迁移到另一个服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆