centos deployment aspnetMVC page

To run a traditional ASP.NET Web site or WebApi on Linux is to install libgdiplus, then install mono, and then install Jexus. In this process, although the installation Jexus is very simple thing, but installing mono on the relative comparison of the time-consuming.

Now the situation is different, in order to overcome the cumbersome installation of Mono, simplifying the deployment process ASP.NET WEB applications on the Linux operating system, we have created is a Jexus 5.8.1 without having to install mono will be able to use the " standalone " the "standalone" 64-bit CentOS 6.5, Ubuntu 12.04 or later operating system that can run WebForm, Mvc3-5, WebService and WebApi, support for PHP, support OWIN, reverse proxy support, that is, without having to install mono the "standalone" and the need to install mono "universal Edition" are functionally identical.

The following specific about Jexus "standalone" use.

First, download:

Jexus download the archive to the temporary folder in linux.

cd /tmp

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

After this command is completed, jexus independent version can be downloaded to the / tmp folder, size is 13.8m.

Second, unzip:

Jexus -zxvf tar-5.8.1-x64.tar.gz

After the extraction is completed, you will get a jexus folder in / tmp.

Third, mobile:

The jexus folders moved or copied to a designated working position, this position you decide, we recommend consistent use / usr path.

Jexus sudo mv / usr

Then clean in / tmp jexus:

sudo rm -rf /tmp/jexus*

Fourth, build a simple aspx pages for testing:

Since the physical path jexus the default Web site configuration file points to the / var / www / default, so we create www folder under / var, create a default folder under www. Once created, enter the default folder, write a simple index.aspx with vim, only the following two sentences:

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

 Save and exit.

Fifth, start jexus and try to access the default Web site:

cd / usr / Jexus

sudo ./jws start

curl localhost

Six, Jexus "Uninstall":

Jexus "green software", in addition jexus folder, but it does not write any file elsewhere in the system, it will not register any information, so it's very simple to uninstall: delete jexus folder on the line.

Seven, Jexus commonly used commands:

Start: sudo ./jws start

Restart: sudo ./jws restart

Stop: sudo ./jws stop

Start a website: sudo start site name

Restart a Web site: sudo restart the site name

Stop a Web site: sudo stop website name

 Eight, Https:

libssl the need to support https. Approach is mounted for libssl (if already present in the system do not need to install, can be used to find "sudo find / -name libssl.so *."), And then connected to the flexible 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

Guess you like

Origin www.cnblogs.com/googlegis/p/12046681.html