Jexus is Jexus Web server, referred to as JWS, is a Linux platform asp.net Web server, Linux, Unix, FreeBSD and other non-Windows systems set up asp.net Web Server Core program, is an optional solution for enterprise-level asp.net deployments across platforms. Compared with other Web servers, Jexus not only has the characteristics of cross-platform asp.net server, but also has kernel-level security monitoring, intrusion detection, URL rewriting, no file routing and other important functions and proprietary features.
First, the use of Jexus5.8.1 Independent version
URL Http://www.linuxdot.net/ps: This "standalone" support 64-bit CentOS 6.5, Ubuntu 12.04 version of the operating system, can run WebForm, mvc3-5, WebService and Webapi, Support PHP, support Owin, support reverse proxy, that is, no need to install mono "independent version" and the need to install Mono "Common Edition" is exactly the same function.
Download Cd/tmp wget http://www.linuxdot.net/down/jexus-5.8.1-x64.tar.gz
Decompression TAR-ZXVF jexus-5.8.1-x64.tar.gz
Mobile MV Jexus/usr/local
Test in/var/www/default/with Vim to create a simple index.apsx<% @Page language= "C #"%><%=datetime.now.tostring ()%>
Second, Jexsus Common command
Start./jws Start
Reboot./jws restart
Stop './jws stop '
Start a Web site start site name
Restart a Web site restart site name
Close a site stop site name
Third, use vs2013 to create a new basic MVC4 project
Modify reference Microsoft.Web.Infrastructure copy locally set to False
New HomeController and view/home/index.chstml (important, no new is no default page exception: System.Web.HttpException)
New Apitestcontroller (optional)
Modify configuration file (important)
<?xml version= "1.0" encoding= "Utf-8"?> <!--for more information about how to configure the ASP.net application, visit http://go.microsoft.com/fwlink/?
linkid=169433--> <configuration> <appSettings> <add key= "webpages:version" value= "2.0.0.0"/> <add key= "webpages:enabled" value= "false"/> <add key= "Preserveloginurl" value= "true"/> <add key= "Cl Ientvalidationenabled "value=" true "/> <add key=" unobtrusivejavascriptenabled "value=" true "/> appsettings> <runtime> <assemblybinding xmlns= "Urn:schemas-microsoft-com:asm.v1" > <dependent assembly> <assemblyidentity name= "System.Web.Helpers" publickeytoken= 31bf3856ad364e35 "/>" <binding Redirect oldversion= "1.0.0.0-2.0.0.0" newversion= "2.0.0.0"/> </dependentAssembly> <dependentassembl y> <assemblyidentity name= "SYSTEM.WEB.MVC" publickeytoken= "31bf3856ad364e35"/> <bindingredirect o ldversion= "1.0.0.0-4.0.0.0" newversion="4.0.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyidentity name= "system.web . Webpages "publickeytoken=" 31bf3856ad364e35 "/> <bindingredirect oldversion=" 1.0.0.0-2.0.0.0 "newVersion=" 2.0. 0.0 "/> </dependentAssembly> <dependentAssembly> <assemblyidentity name=" Webgrease "Pu
blickeytoken= "31bf3856ad364e35"/> <bindingredirect oldversion= "1.0.0.0-1.3.0.0" newVersion= "1.3.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyidentity name= "System.Net.Http" PublicKey token= "b03f5f7f11d50a3a"/> <bindingredirect oldversion= "0.0.0.0-4.0.0.0" newversion= "4.0.0.0"/> < /dependentassembly> </assemblyBinding> </runtime> <system.web> <customerrors m Ode= "Off"/> <pages> <namespaces> <add namespace= "System.Web.Helpers"/> <add, Namespac E= "SYSTEM.WEB.MVC"/>
<add namespace= "System.Web.Mvc.Ajax"/> <add namespace= "System.Web.Mvc.Html"/> <add = "System.Web.Routing"/> <add namespace= "System.Web.WebPages"/> </namespaces> </pages> ;/system.web> <system.webServer> <validation validateintegratedmodeconfiguration= "false"/>