简体   繁体   English

如何在Linux服务器上托管的Mono中部署.NET Web应用程序?

[英]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.

相关问题 如何在 ZEDC9F0A5A5D57797BF68E373674 服务器中部署 ASP.NET Web 应用程序到 Docker - How to Deploy ASP.NET Web App To Docker In Linux Server 如何将ASP.NET应用程序部署到Linux服务器上的Docker容器? - How to deploy asp.net application to docker container on Linux server? 如何在本地服务器上托管和部署ASP.NET Web应用程序 - How to host and deploy an ASP.NET web application on a local server 如何使用mono mod在Apache上部署ASP.Net Web窗体 - How to deploy an ASP.Net Web Forms on Apache with mono mod 如何将Mono ASP.NET MVC应用程序部署到XSP? - How to deploy mono ASP.NET MVC application to xsp? asp.net Web应用程序是本地还是托管服务器? 哪个更好 - asp.net web application local or hosted server? which is better 如何对ASP.NET开发服务器托管的Web应用程序进行负载测试? - How to load test an ASP.NET Development Server hosted web application? 如何使用SQL Server和Asp.net在专用服务器中部署Web应用程序? - How can I deploy my web application In dedicated server using SQL Server and Asp.net? 在具有Mono的Linux上运行时要查找的ASP.NET 2.0 Web应用程序中的问题 - Issues within an ASP.NET 2.0 Web Application to Look for When Running on Linux with Mono Web应用程序部署在Web服务器上 - Web application deploy on web server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM