我到达了下面提到的问题
Host ServiceStack, MVC3 or MVC4 on mono or windows and what is the state of mono
答案是:
“ServiceStack.net 一直在 Linux/Mono 上运行”这不是我想知道的:
我想知道如何部署它。有很多关于如何创建服务堆栈应用程序的示例,但没有太多关于如何部署它的示例。
我的情况如下:我已经下载了MS VS 2013(网络速成版)。
我想在其中编写一个服务堆栈服务(已经通过网络上的 helloworld 示例实现了这一点),然后将此代码部署到 Ubuntu 服务器 12.4,在 Apache 上运行单声道。
请任何人解释如何做到这一点(请逐步)。任何关于坑洼的指示都将受到欢迎。
谢谢。
最佳答案
有一个文档如何在单声道上运行 ServiceStack https://github.com/ServiceStack/ServiceStack/wiki/Mono
顺便说一句,如果您要将 apache 更改为 nginx 作为您的前端,最好使用 HyperFastCgi而不是单服务器fastcgi。 HyperFastCgi 不会泄漏内存并且运行速度更快。
描述了标准 mono-server-fastcgi 的问题 here
要在单声道机器上安装 HyperFastCgi,您应该获取源代码并编译它们:
git clone https://github.com/xplicit/HyperFastCgi.git
cd HyperFastCgi
#if you have got mono installed not in /usr/bin/mono, change the prefix
#to the directory, where mono is located (without 'bin' part)
./autogen.sh --prefix=/usr
make
sudo make install
关于c# - 如何在 VS 2013 中将 ServiceStack 开发的应用程序部署到 Ubuntu 12.4 服务器上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24219126/