Centos Asp.net runtime environment Configuration

Source: Internet
Author: User

# Install centos. When you configure the system, select all the components except the last one.

# Update the system

Yum-y update

# Install related Compilers
Yum install glib2-devel
Yum install gcc
Yum install gcc-C ++
Yum install bison

# Check whether Apache is installed
Apachectl

# Find the Apache installation directory
Which httpd

# Delete
Rm-r/usr/sbin/httpd

# Download and install again
Wget http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.14.tar.bz2
Tar jxvf httpd-2.2.14.tar.bz2
CD httpd-2.2.14
. /Configure -- prefix =/usr/local/apache2 -- enable-shared = max -- enable-module = rewrite -- with-apxs2 =/usr/local/Apache/bin/apxs -- enable-Module = so
Make
Make install

# Download and install mono
CD ../
Wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2
Tar jxvf mono-2.4.2.3.tar.bz2
CD mono-2.4.2.3
./Configure
Make
Make install

# Install xsp
CD ../
Wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.4.2.tar.bz2
Tar jxvf xsp-2.4.2.tar.bz2
CD xsp-2.4.2
./Configure
Export pkg_config_path =/usr/local/lib/pkgconfig
Make
Make install

# Install mod_mono
CD ../
Wget http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.4.2.tar.bz2
Tar jxvf mod_mono-2.4.2.tar.bz2
CD mod_mono-2.4.2
./Configure
Make
Make install

# Add two lines in the configuration file/usr/local/apache2/mod_mono.conf
Monoserverpath/usr/local/bin/ mod-mono-server2-verbose
Monoautoapplication Enabled

# Restart Apache later
/Usr/local/apache2/bin/apachectl restart

# Add the test Asp.net page and add the read permission.

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.