在 Mac 上运行 IIS 的最简单方法? [英] Lightest way to run IIS on Mac?

查看:31
本文介绍了在 Mac 上运行 IIS 的最简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

这里都有解释:http://www.mono-project.com/ASP.网络

这篇关于在 Mac 上运行 IIS 的最简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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