No need to install mono Jexus

Source: Internet
Author: User
Tags tmp folder

The traditional procedure for running an ASP. NET Web site or WEBAPI is to install Libgdiplus, install Mono, and then install Jexus. In this process, although it is easy to install Jexus, it is relatively time-consuming and laborious to install mono.

The situation is different now, in order to overcome the tedious installation of mono, simplifying the deployment of the ASP. NET WEB application on the Linux operating system, we have created a " standalone version " for Jexus 5.8.1 without the need to install mono , which "Standalone version" supports 64-bit CentOS 6.5, Ubuntu 12.04 or above operating systems, can run WebForm, mvc3-5, WebService and Webapi, support PHP, support Owin, support reverse proxy, that is, There is no need to install Mono's "standalone version" and the "universal version" that requires mono to be installed is functionally identical.

The following is specifically about the use of Jexus "standalone version".

One, download:

Download the Jexus compressed package to the Linux Temp folder.

Cd/tmp

wget linuxdot.net/down/jexus-5.8.1-x64.tar.gz

When the command is completed, the Jexus standalone version is downloaded to the/tmp folder, which is 13.8m in size.

Two, unzip:

TAR-ZXVF jexus-5.8.1-x64.tar.gz

When the decompression is complete, a Jexus folder is obtained in/TMP.

Three, move:

Move or copy the Jexus folder to a designated work location, which you decide, and recommend that you use the/usr path uniformly.

sudo mv Jexus/usr

Then clean the Jexus in/tmp:

sudo rm-rf/tmp/jexus*

Four, build a simple ASPX Web page for testing:

Since Jexus's default Web site configuration file points to the physical path is/var/www/default, we create a WWW folder under/var and create the default folder under www. Once created, go to the default folder and use Vim to write a simple index.aspx with just the following two sentences:

12 <%@Page Language="C#"%><%=DateTime.Now.ToString()%>

Exit after saving.

Five. Start Jexus and try to access the default Web site:

Cd/usr/jexus

sudo./jws start

Curl localhost

Six, Jexus's "uninstall":

Jexus is "green software", in addition to the Jexus folder, it does not write any files anywhere else in the system, nor does it register any information, so its uninstallation is simple: Deleting the Jexus folder is OK.

Seven. Common commands for Jexus:

Start: sudo./jws start

Restart: sudo./jws restart

Stop: sudo./jws stop

Start a Web site: sudo start site name

Restart a Web site: sudo restart website name

Stop a Web site: sudo stop site name

Viii. Other:

A) about https:

HTTPS requires LIBSSL support. The process is to install LIBSSL (if the system already exists there is no need to install, you can use "sudo find/-name libssl.so.*" lookup), and then soft connect to the jexus/runtime/lib/libssl.so, such as: Ln-s/lib/ X86_64-linux-gnu/libssl.so.1.0.0/usr/jexus/runtime/lib/libssl.so

ii) about graphics processing:

Mono's System.Drawing class library requires libgdiplus.so support. Jexus stand-alone version of the Runitme/lib folder, there is already a libgdiplus.so, but does not come with the libgdiplus.so itself need to rely on the library, need to install separately, by using LDD libgdiplus.so to view the dependency missing situation, Then install them, and when done, restart the Jexus.

Alternatively, you can install Libgdiplus separately (refer to Www.linuxdot.net or blog Park Zhang Shanyu, small butterfly Jinghong and other tall man's article on the installation of mono), after the installation is complete, the soft connection to Jexus of Runtime/lib, The connection name is libgdiplus.so, such as: Ln-s/usr/lib/libgdiplus.so/usr/jexus/runtime/lib/libgdiplus.so, (before connecting to the runtime/ Libgduplus.so in Lib), and then restart Jexus.

III) Technical Support:

Jexus Official website: www.jexus.org, Technical Community: Www.linuxdot.net,QQ Group: 103810355, 102732979.

No need to install mono Jexus

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.