Configure Nginx + Mono2.0 on Ubuntu to support asp.net

Source: Internet
Author: User
We would like to celebrate the release of mono2.0 today. Remember Ubuntu8.04Lighttpd + Mono support. net (http://www.linuxidc.com/Linux/2008-09/15684.htm )? In this attempt, nginx + mono2.0 supports aspx environment configuration. The installation process is as follows: 1. Install nginxLinux @ ubuntu :~ $ Sudoapt-getupdateLinux @

Mono 2.0 is released today. Remember Ubuntu 8.04 Lighttpd + Mono support. net (http://www.linuxidc.com/Linux/2008-09/15684.htm )? In this attempt, nginx + mono 2.0 supports aspx environment configuration.

The installation process is as follows:

1. Install nginx

Linux @ ubuntu :~ $ Sudo apt-get update
Linux @ ubuntu :~ $ Sudo apt-get install nginx

2. Compile and install mono 2.0

// Install necessary packages to avoid compilation errors
Linux @ ubuntu :~ $ Sudo apt-get build-dep mono
Linux @ ubuntu :~ $ Wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.0.tar.bz2
Linux @ ubuntu :~ $ Tar jvxf mono-2.0.tar.bz2
Linux @ ubuntu :~ $ Cd mono-2.0
Linux @ ubuntu :~ $./Configure -- prefix =/usr/local
Linux @ ubuntu :~ $ Make
Linux @ ubuntu :~ $ Sudo make install

It takes some time to compile. After the installation is complete, you can view the mono version through "mono-V ".

3. Install fastcgi-mono-server

Linux @ ubuntu :~ $ Sudo apt-get install subversion
Linux @ ubuntu :~ $ Svn co http://mono-soc-2007.googlecode.com/svn/trunk/brian/FastCgi/ fastcgi-mono-server
Linux @ ubuntu :~ $ Cd fastcgi-mono-server/
Linux @ ubuntu :~ $./Autogen. sh
Linux @ ubuntu :~ $ Make
Linux @ ubuntu :~ $ Sudo make install

Because the source code of fastcgi-mono-server must be obtained using SVN, we first installed the subversion.

4. Configure nginx

Linux @ ubuntu:/$ sudo mv/etc/nginx/sites-enabled/default ../
Linux @ ubuntu:/$ sudo nano/etc/nginx/sites-enabled/default

Copy the content in nginx-config.txt to the/etc/nginx/sites-enabled/default file. The default directory is in/var/www. If you are not familiar with nano, refer to Nano shortcut keys. Then run the following script to start nginx and fastcgi-mono-server2.

Linux @ ubuntu:/$ sudo/etc/init. d/nginx start
Linux @ ubuntu :~ $ Sudo fastcgi-mono-server2/sockets = tcp: 9000 &
Linux @ ubuntu:/$ echo "hello">/var/www/index. aspx

When you access the corresponding address, you can see the cute hello.

5. Install the aspx probe.

Linux @ ubuntu:/$ cd/var/www
Linux @ ubuntu:/var/www $ wget http://www.linuxidc.com/system/aspnetsysinfo-revision_23.zip
Linux @ ubuntu:/var/www.unzip aspnetsysinfo-revision_23.zip

Enter the corresponding info. aspx and it will be displayed normally.

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.