Ubuntu server 10.0.4 + configure mono to run Asp.net

Source: Internet
Author: User
Modify the network configuration file sudo VI/etc/Network/interfaces to add or modify part of auto eth0: auto eth0iface eth0 Inet staticaddress 192.168.3.90 # fixed ipgateway 192.168.3.1 # Default Gateway netmask 255.255.255.0 # Replace the above content with your modified dnssudo VI/etc/resolv. use sudo/etc/init. d/networking restart to make the network settings take effect immediately. We will not talk about these parts. If you do not understand them, you can go to Google. next we will install Open SSH. It is very important to allow us to remotely manage our servers. The installation is very simple: sudo apt-Get install OpenSSH-server I will provide you with two tools, we will download putty, which is used to manage Linux and execute shell, winscp, which can manage files on Linux. you can use winscp to manage server files. After installing apachesudo apt-Get install apache2, we can immediately test it in the browser and enter the Server IP Address: install monosudo apt-Get install mono-GMCs mono-xsp2 libapache2-mod-mono mono-apache-server2sudo a2enmod mod_mono encountered a problem here, after installing the libapache2-mod-mono will appear for a long time unable to return status, each time is restarted to solve, after the restart, the system prompts E: dpkg was interrupted when executing the next command, you must manually run 'sudo dpkg -- configure-a' to correct the problem causes this prompt because the installation was interrupted, but the execution of the libapache2-mod-mono For A Long Time cannot return, so only restart. but it doesn't matter. As he said, executing sudo dpkg -- configure-A uploads a help. aspx file to/var/www. detected during running. net Code No execution at all. The server control is basically invalid and the final reason is found. Mono is not correctly configured. net Engine Directory, of course, will not be executed. find the/etc/apache2/mod-available/mod_mono.conf file. use the command to edit sudo Vim/etc/apache2/mod-available/mod_mono.conf to addtype application/X-Asp-net. aspx. ashx. asmx. ascx. asax. confi. ascx. axddirectoryindex index. aspxmonoautoapplication enabledmonoserverpath "/usr/bin/mod-mono-server2" include/etc/mono-server2/mono-server2-hosts.conf after editing is complete, restart apachesudo/etc/init. d/apache2 restart: refresh the page just now. It's normal. There are no problems with simple server controls and event sending back.
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.