我有一个想在 Mac 机器上运行的 ASP.NET MVC 4 应用程序.当我真正需要的是 IIS7 来运行 MVC 应用程序时,我不想运行一个完整的 Windows 虚拟机.运行它的最简单的方法是什么(VirtualBox、Parallels、IIS7 Express 等)?真的,我的目标是在我的 Mac 上编写应用程序的 Javascript/客户端,我正在努力不在 Windows 机器上进行开发:)
I have an ASP.NET MVC 4 app that I would like to run on a Mac machine. I would hate to run a full blown Windows virtual machine when all I really need is IIS7 to run the MVC app. What is the lightest way to run this (VirtualBox, Parallels, IIS7 Express, etc)? Really my goal is to code the Javascript/client-side of the app on my Mac and I am trying really hard not to do my development on a Windows machine :)
推荐答案关注 这个链接(由@LexLi 在上面的评论中提供)以了解如何设置您的 MVC 环境.
Follow this link (provided by @LexLi in a comment above) to know how to set up your MVC environment.
关于 IIS,据我所知是做不到的.您应该使用操作系统的本机 Web 服务器.IIS 不能在 Mac 上运行,所以我想你应该尝试 Apache,然后安装模块mod_mono".
With regards to IIS, as far as I know it cannot be done. You should use the native web server of your operating system. IIS doesn't run on Mac, so I guess you should try Apache, and then install module "mod_mono".
或者,如果这太麻烦,只需使用名为 XSP 的独立单声道 Web 服务器.
Or if that gets too hairy, just use the standalone mono web server called XSP.
或者运行 FastCGI,或者 nginx.
Or run FastCGI, or nginx.
这里都有解释:www.mono-project/ASP.网络
更多推荐
在 Mac 上运行 IIS 的最简单方法?
发布评论