Ubuntu11.04 + Mono + Nginx run Asp.net HelloWorld

Source: Internet
Author: User
I have long known that mono has always wanted to contact you, and only recently began to spend time learning about you-mono, giving me a lot of ideas to run on linux. net Program friends create unlimited possibilities. If you have little contact with mono like me, you can understand it here. I am a linux cainiao. To be precise, I am not an idiot. Therefore, when selecting a linux system, I also made a step-by-step compromise. From CentOS --- Debian --- Ubuntu Desktop version, I don't know much about linux, so I have long known that mono is such a thing that I always wanted to contact you, it's only recently that I started to spend time learning about you-mono, which gave me a lot of ideas to run on linux. net Program friends create unlimited possibilities. If you have little contact with mono like me, you can understand it here. I am a linux cainiao. To be precise, I am not an idiot. Therefore, when selecting a linux system, I also made a step-by-step compromise. From CentOS --- Debian --- Ubuntu Desktop version, I don't know much about linux, so I finally chose Ubuntu (the easiest way to get started, huh, please let the old birds who passed by despise me ). This section describes my entire environment. I installed VirtualBox on win7 to run Ubuntu 11.04.

1. Prepare the environment:

Install MonoDevelop in the Software Center (in linux. net development tools, similar to vs2010), Nginx, mono-fastcgi-server2. (mono already exists after you install Ubuntu, but the version 2.6 is not the latest, which does not affect)

2. Use monodevelop to write down my first HelloWorld running in linux

Simple: a label is used to display a line of text during page loading.

Backend. cs

3. Deployment started.

I chose to deploy it to the default Nginx file/usr/share/nginx/www/(if you select another directory, set Nginx later to be consistent with the deployed directory)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.