Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile and install mono 2.0 in Ubuntu nginx environment

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to compile and install mono 2.0 in Ubuntu nginx environment. It is very detailed and has certain reference value. Friends who are interested must finish it.

1. Install Ubuntu nginx

Benben@ubuntu:~$ sudo apt-get update

Benben@ubuntu:~$ sudo apt-get install nginx

two。 Compile and install mono 2.0

/ / install the necessary packages to avoid compilation errors

Benben@ubuntu:~$ sudo apt-get build-dep mono

Benben@ubuntu:~$ wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.0.tar.bz2

Benben@ubuntu:~$ tar jvxf mono-2.0.tar.bz2

Benben@ubuntu:~$ cd mono-2.0

Benben@ubuntu:~$. / configure-- prefix=/usr/local

Benben@ubuntu:~$ make

Benben@ubuntu:~$ sudo make install

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

3. Install fastcgi-mono-server

Benben@ubuntu:~$ sudo apt-get install subversion

Benben@ubuntu:~$ svn co http://mono-soc-2007.googlecode.com/svn/trunk/brian/FastCgi/ fastcgi-mono-server

Benben@ubuntu:~$ cd fastcgi-mono-server/

Benben@ubuntu:~$. / autogen.sh

Benben@ubuntu:~$ make

Benben@ubuntu:~$ sudo make install

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

4. Configure Ubuntu nginx

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

Benben@ubuntu:/$ sudo nano / etc/nginx/sites-enabled/default

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

Benben@ubuntu:/$ sudo / etc/init.d/nginx start

Benben@ubuntu:~$ sudo fastcgi-mono-server2 / socket=tcp:9000 &

Benben@ubuntu:/$ echo "hello" > / var/www/index.aspx

Visit the corresponding address and you can see the lovely hello.

5. Install aspx probe

Benben@ubuntu:/$ cd / var/www

Benben@ubuntu:/var/www$ wget http://aspnetsysinfo.googlecode.com/files/aspnetsysinfo-revision_23.zip

Benben@ubuntu:/var/www$ unzip aspnetsysinfo-revision_23.zip

Enter the corresponding info.aspx, and it should display normally.

These are all the contents of the article "how to compile and install mono 2.0 in Ubuntu nginx". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report