asp.net-mvc 如何最好地在服务器上安装 MVC 3?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5768070/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How best to install MVC 3 on a server?
提问by Howard Pinsley
Now that MVC 3 Tools Update has been released, that's all I see on the Web Platform Installer -- I no longer see MVC 3? Is this because the Tools Update is essentially MVC 3 PLUS enhancements to the development environment? Presumably, none of these additions are needed on a server so I thought that MVC 3 would still be offered for server installs.
现在 MVC 3 工具更新已经发布,这就是我在 Web 平台安装程序上看到的全部内容——我不再看到 MVC 3?这是因为工具更新本质上是对开发环境的 MVC 3 PLUS 增强吗?据推测,服务器上不需要这些添加项,所以我认为 MVC 3 仍可用于服务器安装。
So can/should I install the MVC 3 "Tools Update" from the Web Platform installer on a server?
那么我可以/应该从服务器上的 Web 平台安装程序安装 MVC 3“工具更新”吗?
采纳答案by marcind
You can use the installer from WebPI on the server just fine. It will detect if you don't have Visual Studio installed and will only install the runtime.
您可以在服务器上使用来自 WebPI 的安装程序就好了。它会检测您是否没有安装 Visual Studio,并且只会安装运行时。
You could also try unzipping the installer fileand only copying the runtime MSIs but I think that's overkill.
您也可以尝试解压缩安装程序文件并仅复制运行时 MSI,但我认为这太过分了。
回答by Darren
I know this doesn't help you Decker, but it may help others:
我知道这对 Decker 没有帮助,但它可能会帮助其他人:
The easiest way to get MVC on the server is by using the "Add Deployable Dependancies..." menu:
在服务器上获取 MVC 的最简单方法是使用“添加可部署依赖项...”菜单:
Also useful for deploying SQL CE.
也可用于部署 SQL CE。
回答by David Martin
You could also use Web Platform Installer from the command line:
您还可以从命令行使用 Web 平台安装程序:
webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot
If your servers don't have internet access, you can use the offline flag from a machine which does have access to download a copy of the required install files.
如果您的服务器没有互联网访问权限,您可以从一台可以下载所需安装文件副本的机器上使用离线标志。
So your flow would be as follows:
所以你的流程如下:
Prepare Cached Version of Installers
准备安装程序的缓存版本
webpicmd /Offline /Products:MVC3Runtime /log:webpi.log /Path:"%~dp0wbpiCache"
Install from cache (copy folder structure to target machine)
从缓存安装(将文件夹结构复制到目标机器)
webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot /XML:"%~dp0wbpiCache"
回答by SLaks
You don't need to install MVC3 on a server.
您不需要在服务器上安装 MVC3。