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

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

问题描述

我想知道将网站移动到另一台服务器的最佳做法是什么(以及所有设置等)

I'm wondering what is the best practice for moving a website to another server (along with all settings, etc.)

  • 在新服务器上手动重新创建站点(由于显而易见的原因无法维护)
  • 复制 applicationHost.config 设置文件
  • 使用 appcmd 进行备份和恢复
  • 使用 MSDeploy 在新机器上发布站点
  • 使用第三方工具

只是想知道其他人的经历.

Just wondering what others' experiences have been.

推荐答案

我想在 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.

    砰!去喝啤酒!

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

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