如何将大量站点从IIS 7迁移到IIS 8.5? [英] how to migrate a number of large sites from IIS 7 to IIS 8.5?

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

问题描述

我有许多大型网站,其中有数千张图片,每张图片消耗几千兆字节。我们有了一台新服务器,我必须在那里移动所有这些站点(旧服务器将退役)。什么是最好的方法,我应该注意什么?

I have a number of large sites with thousands of images consuming few gigabytes each. We got a new server and I have to move all these sites there (old server will be decommissioned). What's the best way to do this and what I should be paying attention to?

旧服务器是Windows 2008 R2 IIS 7.5
新服务器是Windows 2012 IIS 8.5

Old server is Windows 2008 R2 IIS 7.5 New server is Windows 2012 IIS 8.5

推荐答案

我探索了几个选项:


  1. IIS共享配置 - 由于某种原因对我不起作用。我得到DLL冲突错误,说没有找到一些.Net 7.5模块。我想这意味着我只能在同一个IIS版本中导出/导入配置?不确定。但在一天结束时,我不得不在我的新服务器上完全重新安装IIS - 它在导入后无法正常工作。所以除非你知道你做了什么,否则我不建议这样做。

  1. IIS shared configuration - did not work for me for some reason. I got DLL conflict errors saying that some .Net 7.5 module was not found. I guess that means I can export/import configuration only within the same IIS version? not sure. But at the end of the day I had to completely reinstall IIS on my new server - it just would not work after import. So I would not recommend this unless you know what you do.

WebDeploy - 我认为这对我有用 - 但是由于对于大量的文件和网站大小,它无法压缩网站 - 或者可能是我没有耐心。我想它适用于较小的网站。

WebDeploy - I think it could work for me - but due to the huge number of files and site size it was not able to ZIP the sites - or may be i was not patient enough. I guess it would work for smaller sites.

XML导出/导入 - 最后,我找到了这篇文章:它允许我出口网站&将app池转换为XML,然后在新服务器上导入它们。这非常有效:

XML export/import - finally, I found this article: it allowed me to export websites & app pool into XML and then import them on the new server. That worked beautifully:




导出

%windir%\system32 \inetsrv \ appcmd list apppool / config / xml>
c:\\\ apppools.xml

%windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml

%windir%\system32 \inetsrv \ appcmd list site / config / xml>
c:\ thesites.xml

%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml

导入

%windir%\system32 \inetsrv \ appcmd add apppool / in< c:\\\ apppools.xml

%windir%\system32\inetsrv\appcmd add apppool /in < c:\apppools.xml

%windir%\ systemLc \inetsrv \ appcmd add site / in< c:\sites.xml

%windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml

之后我只需将我的文件FTP到新服务器 - 我很高兴去!

after that I only had to FTP my files to the new server - and I was good to go!

要记住的几件事:


  1. 目录结构 - 保持不变在旧服务器上 - 不需要调整XML文件然后

  2. HTTPS证书 - 不要忘记导出它们

  3. 安全 - 如果你已为您网站的文件夹分配了任何特殊权限 - 请确保在新服务器上重新创建它们

  4. 其他IIS模块 - 如URL重写 - 逐项列出并安装它们

  5. 绑定 - 如果您有通配符,无需担心,但如果您的网站绑定了IP地址 - 请在sites.XML文件中使用search / replace来更新它。

  1. Directory structure - keep it the same as on old server - no need to tweak XML files then
  2. HTTPS certificates - don't forget to export them as well
  3. Security - if you have assigned any special permissions to your sites' folders - make sure you re-create them on the new server
  4. Additional IIS modules - like URL Rewrite - itemize and install them
  5. Bindings - if you have wildcard ones, no need to worry but if your sites were bound to an IP address - use search/replace in sites.XML file to update it.

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

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