Configure Jexus + Mono3.2 in Ubuntu13.04 to run Asp. Net Mvc 4 site (1)

Source: Internet
Author: User
Tags install mongodb

This article is intended to be written in two parts. The first part introduces the installation and configuration in Ubuntu. net Framework4.5 environment. The second part describes how to deploy Asp. net Mvc 4 site and ensure that several important features of Mvc4 can work normally.

1. install and configure the. Net Framework4.5 environment in Ubuntu

Two years ago, I tried to install and configure Mono, mod_mono, and Apache in Ubuntu to host the Mvc 3 site. Afterwards, I recorded a blog. Today, Mono has gone through the 3.x version since it supports. Net Framework 4.5. version 3.2 was just released four days ago. The Mono 3.0.x series has been tried during this period. However, since Mono installation requires an existing Mono C # compiling environment, it has never been successful, until the day before yesterday, I saw Zhang Shanyou install Mono 6.3 and Jexus 3.2 Under CentOS 5.4. According to his steps, he finally copied his success on Ubuntu. During this period, I also took a detour. At last, I will introduce how to solve the problem.

1. Install the environment required for Mono Compilation

The first action is required. The second action is optional.

 apt-get  build-essential automake autoconf libtool bison gettext  libgdiplus apt-get  libglib2.-dev libfreetype6-dev libfontconfig-dev gettext libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg-dev

If your network environment still works together, the above process should not take much time, but the two below will be slow. You may wish to have a cup of tea and put the two versions of Mono down.

cd ~/ http: http:

2. Install Mono 2.10.8

cd ~/ -xjvf mono-..-.

Then

./configure --prefix=/ 

Note that the "-- prefix =/usr" option must be used to ensure that Mono 2.10.8, Mono 3.2, and Jexus are both installed in the same location. After the installation is successful, mono-V should be able to see the version information.

3. Install MongoDB 3.2

Similarly, decompress the package first, and then compile the package with the "-- prefix =/usr" parameter configure. Do not install

cd ~/ -xjvf mono-..-./autogen. --prefix=/

After compiling 3.2, uninstall 2.10.8 first.

cd ~/mono/mono-. uninstall

Then install Mono 3.2 again.

 

After the installation is complete, mono-V should be able to see version 3.2. Ldconfig is also required to ensure that the newly installed dynamic library can be found.

ldconfig

4. Install Jexus

cd ~/ http: -zvxf jexus-.-  ./

By default, Jexus is installed under/usr/jexus. You can view the info page when you start jexus in this installation path.

cd /usr/ ./jws start

The Jexus site configuration file is in siteconfig, and the log is in log and executed. /After jws start, no message is prompted whether the request succeeds or fails. /jws status.

For Jexus site configuration, refer to here: http://www.linuxdot.net/bbsfile-3084

For performance comparison between Jexus and IIS8, refer to here: http://www.cnblogs.com/linqingfeng/archive/2013/06/14/3135716.html

After the Jexus is started successfully, http: // localhost/info shows the Jexus info page. In the default site directory, set the content to <% = DateTime. now %> Default. aspx file, if you can see

Postscript-error process

Before proceeding to the preceding steps, I have installed jexus in the following steps and finally encountered an error where jexus cannot be started normally.

- ::: ==================== jws.exe error message =========================]  <filename unknown>:]  <filename unknown>:]  <filename unknown>:

1. Use apt to install Mono. The version is 2.10.8.

2. Install Mono3.2 using the Mono 3.2 method described on github

3. Install Jexus under/usr/local

This error of Jexus was not found on Google for a long time, but you only need to install Mono 2.10.8, Mono 3.2, and Jexus in/usr to run it successfully. Although the problem has been solved, the specific cause of this error is unknown.

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.