The installation process is as follows: 1. Install nginxLinuxidc @ Ubuntu :~ $ Sudoapt-getupdateLinuxidc @ ubuntu :~ $ Sudoapt-getinstallnginx2. Compile and install mono2.0 // install required packages to avoid compilation errors & nbsp
The installation process is as follows:
1. Install nginx
Linuxidc @ Ubuntu :~ $ Sudo apt-get update
Linuxidc @ ubuntu :~ $ Sudo apt-get install nginx
2. Compile and install mono 2.0
// Install necessary packages to avoid compilation errors
Linuxidc @ ubuntu :~ $ Sudo apt-get build-dep mono
Linuxidc @ ubuntu :~ $ Wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.0.tar.bz2
Linuxidc @ ubuntu :~ $ Tar jvxf mono-2.0.tar.bz2
Linuxidc @ ubuntu :~ $ Cd mono-2.0
Linuxidc @ ubuntu :~ $./Configure -- prefix =/usr/local
Linuxidc @ ubuntu :~ $ Make
Linuxidc @ 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
Linuxidc @ ubuntu :~ $ Sudo apt-get install subversion
Linuxidc @ ubuntu :~ $ Svn co http://mono-soc-2007.googlecode.com/svn/trunk/brian/FastCgi/ fastcgi-mono-server
Linuxidc @ ubuntu :~ $ Cd fastcgi-mono-server/
Linuxidc @ ubuntu :~ $./Autogen. sh
Linuxidc @ ubuntu :~ $ Make
Linuxidc @ 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
Linuxidc @ ubuntu:/$ sudo mv/etc/nginx/sites-enabled/default ../
Linuxidc @ 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.
Linuxidc @ ubuntu:/$ sudo/etc/init. d/nginx start
Linuxidc @ ubuntu :~ $ Sudo fastcgi-mono-server2/sockets = tcp: 9000 &
Linuxidc @ ubuntu:/$ echo "hello">/var/www/index. aspx
When you access the corresponding address, you can see the cute hello.
5. Install the aspx probe.
Linuxidc @ ubuntu:/$ cd/var/www
Linuxidc @ ubuntu:/var/www $ wget http://www.linuxidc.com/system/systembak/ aspnetsysinfo-revision_23.zip
Linuxidc @ ubuntu:/var/www $ unzip aspnetsysinfo-revision_23.zip
Enter the corresponding info. aspx and it will be displayed normally.