在 Mac 上运行 IIS 的最简单方法?

编程入门 行业动态 更新时间:2024-10-26 01:25:36
本文介绍了在 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.

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

更多推荐

在 Mac 上运行 IIS 的最简单方法?

本文发布于:2023-07-05 01:17:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1031280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:最简单   方法   Mac   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!