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)