简体   繁体   English

如何将IIS 7.0网站复制到运行IIS 8.0的本地计算机

[英]How to copy IIS 7.0 website to local computer running IIS 8.0

i want to copy contents, code, build files and configuration files from a IIS(7.0) server which is running a live file and copy everything to another machine which got IIS 8 installed. 我想从运行实时文件的IIS(7.0)服务器复制内容,代码,构建文件和配置文件,并将所有内容复制到安装了IIS 8的另一台计算机上。 the destination computer has other web sites installed, so i dont want to disturb configuration for those sites. 目的地计算机上还安装了其他网站,所以我不想打扰那些网站的配置。 do i first copy the code from the source and create a folder on destination and copy the files there and than follow with the configuration settings? 我首先要从源代码复制代码并在目标位置创建一个文件夹,然后在其中复制文件,然后再进行配置设置吗?

Probably meant for serverfault ...but here goes.. 可能意味着发生服务器故障 ...但是这里去了。

  1. Review/inventory current application. 查看/盘点当前应用程序。 eg 例如
    • "config files" for any explicit settings that may have to do with paths , connections (db), certificates (ssl), and/or expected depedencies (assemblies, framework version/s, other web applications, etc.) “配置文件”,用于可能与paths ,连接(db),证书(ssl)和/或预期的depedencies (程序集,框架版本,其他Web应用程序等)有关的任何显式设置。
    • hopefully the application is documented and/or original developers are handy to assist in this inventory process 希望该应用程序已被记录在案和/或原始开发人员可以很方便地协助完成此清单过程
    • the point is to first "know" what you're moving before doing anything, this would be the most important step..the rest is more or less config.... 关键是要在执行任何操作之前先“知道”您要移动的内容,这将是最重要的步骤。其余的或多或少是配置。
  2. create folder in target machine 在目标机器上创建文件夹
    • doesn't have to be in C:\\inetpub\\wwwroot , but you'll have to modify permissions as necessary. 不必位于C:\\inetpub\\wwwroot ,但是您必须根据需要修改permissions
      • also if there's an existing app in wwwroot , possible headaches can arise with settings inheritance 另外,如果wwwroot已有一个应用程序,则设置继承可能引起麻烦
  3. copy files from source -> target 从源->目标复制文件
  4. IIS Manager -> set up the new "web site"/"Application" as necessary ( AppPool , etc.) IIS Manager ->根据需要设置新的“网站” /“应用程序”( AppPool等)
  5. Test, test, test 测试,测试,测试
  6. Fallback plan (if all goes to hell, need to "revert") 后备计划(如果一切陷入困境,则需要“还原”)
  7. Applicable network stuff - DNS , etc. (the moment of truth) 适用的网络资料DNS等(关键时刻)
  8. Coffee. 咖啡。 Lots. 很多。 Pray you don't have to go to #6 :) 祈祷你不必去#6 :)

Hth... 嗯...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM