Linux (CentOS) system on the erection of asp.net web site __c language

Source: Internet
Author: User

Currently, erecting asp.net websites and building Web application projects on Linux Systems has become popular in China,

The "Mono+jexus" architecture pattern is a very important architectural way for Linux to host other levels of asp.net enterprise applications.


Configure ASP.net Linux (CentOS 6.5) Operating environment MONO + Jexus

This experiment is tested by virtual machine
Virtual Machine IP 192.168.199.146

After installing CentOS 6.5,

1, update the system

Executing at the command line

Yum–y Update

2, install the necessary software

Install GCC gcc-c++ Bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel yum-y Giflib-devel libx11-devel freetype-devel fontconfig-devel  cairo-devel

3, install mono needs of the GDI + compatible API library Libgdiplus

This address has the latest libgdiplus.
http://download.mono-project.com/sources/libgdiplus/
The latest version 3.8 that can currently be downloaded

cd/usr/local/src/
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-3.8.tar.gz
tar ZXVF libgdiplus-3.8.tar.gz
cd libgdiplus-3.8
./configure--prefix=/usr make make
install

4, install mono (process time is longer, patiently waiting)

Under this address, there is the latest version of Mono http://download.mono-project.com/sources/mono/
The latest version that can currently be downloaded 3.10.0

cd/usr/local/src/
wget http://download.mono-project.com/sources/mono/mono-3.10.0.tar.bz2
TAR-JXVF mono-3.10.0.tar.bz2
cd mono-3.10.0
./configure--prefix=/usr make make
install

After the above command completes, the installation succeeds if the input mono-v has mono version information.
As follows:

[Root@localhost ~]# mono-v
Mono JIT compiler version 3.10.0 (Tarball December 28, 2014 Sunday 02:47:02 CST)
Copyright (C ) 2002-2014 Novell, Inc., Xamarin Inc. and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    notifications:epoll
    Architecture:  AMD64
    Disabled:      None
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            SGen

5. Installation Jexus

Download the latest version at Jexus's official website 5.6.3
Official website: http://www.jexus.org/

cd/usr/local/src/
wget http://www.linuxdot.net/down/jexus-5.6.3.tar.gz
tar-zxvf jexus-5.6.3.tar.gz
CD jexus-5.6.3
sudo./install

6, start to stop restart Jexus

Start:

Sudo/usr/jexus/jws start

Stop it:

Sudo/usr/jexus/jws stop

Reboot:

Sudo/usr/jexus/jws restart

7, testing

First configure firewall Open 80 ports

/sbin/iptables-i input-p TCP--dport 80-j ACCEPT/etc/rc.d/init.d/iptables
Save

Open browser Access

Http://192.168.199.146/info

So far, you can see that Jexus is working.

Detailed Jexus use instructions for late finishing

Like what:

To restart the specified Web site:

Sudo/usr/jexus/jws Restart SiteName

Stop the specified Web site:

Sudo/usr/jexus/jws Stop SiteName
Reference: https://segmentfault.com/a/1190000002449629
Http://www.makaidong.com/%E5%8D%9A%E5%AE%A2%E5%9B%AD%E6%90%9C/40585.shtml


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.