[英]How to deploy a .NET web application in Mono hosted on a Linux Server?
We have a web application we've been writing in VB.NET. 我们已经使用VB.NET编写了一个Web应用程序。 We want to get that running within a Linux server, specifically CentOS.
我们想让它在Linux服务器(特别是CentOS)中运行。 I installed Mono version 4.0.1 on the server, as well as xsp and mod_mono.
我在服务器上安装了Mono版本4.0.1,以及xsp和mod_mono。 I'm not sure however, how to properly configure the setup to get the application running.
但是,我不确定如何正确配置安装程序以使应用程序运行。 We have several .aspx and .dll files.
我们有几个.aspx和.dll文件。 Do I just FTP them over to the server?
是否仅将它们通过FTP传输到服务器? I think we would need some wrapper executable script to get the application going, since all the websites I have been looking at state that, but I'm not sure how that works for a web application.
我认为我们需要一些包装程序可执行脚本来使应用程序运行,因为我一直在浏览的所有网站都指出了这一点,但是我不确定这对于Web应用程序如何工作。
If you are using Visual Studio , you should use FTP to deploy your asp.net applications into GNU Linux environment. 如果使用的是Visual Studio ,则应使用FTP将asp.net应用程序部署到GNU Linux环境中。 The IDE would take care of what files has to be deployed in order to get your asp.net application working.
IDE将处理必须部署哪些文件才能使asp.net应用程序正常工作。
But if you are using MonoDevelop you could use SSH Fuse . 但是,如果您使用的是MonoDevelop ,则可以使用SSH Fuse 。 Here you have a Getting Started guide about working and deploying ASP.NET apps from MonoDevelop to an Linux environment:
在这里,您可以获得有关将Mono.ASP应用程序从MonoDevelop部署和部署到Linux环境的入门指南 :
http://www.monodevelop.com/documentation/creating-aspnet-projects/ http://www.monodevelop.com/documentation/creating-aspnet-projects/
If you don't have experience with FUSE, don't worry I get this for you 如果您没有使用FUSE的经验,请不要担心我会为您准备的
https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh
That's all. 就这样。 You don't need a wrapper as you mentioned before, it is pretty much like and an standard IIS site.
您不需要前面提到的包装器,它很像一个标准的IIS站点。 Quite easy right?
很容易吧? It has to work always that your application and its dependencies are compatible with mono, and indeed with apache or xsp configured correctly.
它必须始终工作,以确保您的应用程序及其依赖项与mono兼容,甚至与正确配置的apache或xsp兼容。 Cheers!
干杯!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.