This article directory
Objective
Thank:
http://www.jexus.org/
Http://www.cnblogs.com/shanyou/archive/2012/01/07/2315982.html
Http://www.cnblogs.com/hanyinglong/p/5456757.html
Http://www.jb51.net/article/83550.htm
Http://www.cnblogs.com/hanyinglong/p/5456757.html
http://bbs.csdn.net/topics/390944302
Environment preparation
Virtual machine: vmware-workstation-full-11.0.0-2305329_0;
Linux system: Centos-7-x86_64-dvd-1511.iso;
Visual Studio 2013: Create a default ASP. NET MVC 4 WEB application;
Linux Connection tool: SECURECRT;
Environment preparation under Linux
Update System
Can skip, there are more than 400 updates.
yum –y update
install the required libraries for mono source installation
Yum-y install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel Giflib-devel libx11-devel freetype-devel fontconfig-devel cairo-devel
Install a library of the GDI + compliant API required by Mono Libgdiplus
cd /usr/local/src/
Libgdiplus, current latest version libgdiplus-4.2.tar.gz | 2015-12-20 17:33 | 671K
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-4.2.tar.gz
tar -zxvf libgdiplus-4.2.tar.gz
cd libgdiplus-4.2
./configure --prefix=/usr
make && make install
Installing mono
cd /usr/local/src/
Mono, current latest version mono-4.6.2.6.tar.bz2 | 2016-11-02 14:22 | 79M
wget http://download.mono-project.com/sources/mono/mono-4.6.2.6.tar.bz2
tar -jxvf mono-4.6.2.6.tar.bz2
cd mono-4.6.2
./configure --prefix=/usr
Make this step a little bit longer.
make && make install
Use Mono-v to view version information when you are finished installing.
Jexus Installation
cd /usr/local/src/
Jexus, current latest version jexus-5.8.1.tar.gz
wget http://www.linuxdot.net/down/jexus-5.8.1.tar.gz
tar -zxvf jexus-5.8.1.tar.gz
cd jexus-5.8.1
./install
Start the command.
/usr/jexus/jws start
After successful launch, access to the following page via Http://localhost/info.
This completes the environment preparation.
Deploying an ASP. Jexus configuration
cd /usr/jexus/siteconf/
cp default simple
Assignment default configuration modify port, root.
After the configuration modification is complete, create the WWW folder in the/var directory.
cd /var
mkdir www
VS2013 Creating an MVC Project Packaging release
Use Securefx to upload the packaged folder simple to the/var/www/simple directory.
Restart after Jexus is stopped
/usr/jexus/jws stop
/usr/jexus/jws start
After successful startup, the following error message occurs through Http://localhost/info access.
Replace the contents of the Web. config file with the following information to re-upload.
<?XML version= "1.0" encoding= "Utf-8"?><!--For more information about how to configure an ASP. NET application, go to http://go.microsoft.com/fwlink/?LinkId=169433 - <Configuration> <appSettings> <AddKey= "Webpages:version"value= "2.0.0.0" /> <AddKey= "webpages:enabled"value= "false" /> <AddKey= "Preserveloginurl"value= "true" /> <AddKey= "clientvalidationenabled"value= "true" /> <AddKey= "unobtrusivejavascriptenabled"value= "true" /> </appSettings> <Runtime> <assemblybindingxmlns= "Urn:schemas-microsoft-com:asm.v1"> <dependentassembly> <assemblyidentityname= "System.Web.Helpers"PublicKeyToken= "31bf3856ad364e35"/> <BindingRedirectoldversion= "1.0.0.0-2.0.0.0"newversion= "2.0.0.0" /> </dependentassembly> <dependentassembly> <assemblyidentityname= "SYSTEM.WEB.MVC"PublicKeyToken= "31bf3856ad364e35" /> <BindingRedirectoldversion= "1.0.0.0-4.0.0.0"newversion= "4.0.0.0" /> </dependentassembly> <dependentassembly> <assemblyidentityname= "System.Web.WebPages"PublicKeyToken= "31bf3856ad364e35" /> <BindingRedirectoldversion= "1.0.0.0-2.0.0.0"newversion= "2.0.0.0" /> </dependentassembly> <dependentassembly> <assemblyidentityname= "Webgrease"PublicKeyToken= "31bf3856ad364e35" /> <BindingRedirectoldversion= "1.0.0.0-1.3.0.0"newversion= "1.3.0.0" /> </dependentassembly> <dependentassembly> <assemblyidentityname= "System.Net.Http"PublicKeyToken= "b03f5f7f11d50a3a" /> <BindingRedirectoldversion= "0.0.0.0-4.0.0.0"newversion= "4.0.0.0" /> </dependentassembly> </assemblybinding> </Runtime> <system.web> <customErrorsMode= "Off"/> <pages> <Namespaces> <Addnamespace= "System.Web.Helpers" /> <Addnamespace= "SYSTEM.WEB.MVC" /> <Addnamespace= "System.Web.Mvc.Ajax" /> <Addnamespace= "System.Web.Mvc.Html" /> <Addnamespace= "System.Web.Routing" /> <Addnamespace= "System.Web.WebPages" /> </Namespaces> </pages> </system.web> <system.webserver> <Validationvalidateintegratedmodeconfiguration= "false" /> <handlers> <Removename= "Extensionlessurlhandler-isapi-4.0_32bit" /> <Removename= "Extensionlessurlhandler-isapi-4.0_64bit" /> <Removename= "extensionlessurlhandler-integrated-4.0" /> <Addname= "Extensionlessurlhandler-isapi-4.0_32bit"Path="*."verb= "Get,head,post,debug,put,delete,patch,options"Modules= "Isapimodule"ScriptProcessor= "%windir%\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll"Precondition= "Classicmode,runtimeversionv4.0,bitness32"Responsebufferlimit= "0" /> <Addname= "Extensionlessurlhandler-isapi-4.0_64bit"Path="*."verb= "Get,head,post,debug,put,delete,patch,options"Modules= "Isapimodule"ScriptProcessor= "%windir%\microsoft.net\framework64\v4.0.30319\aspnet_isapi.dll"Precondition= "Classicmode,runtimeversionv4.0,bitness64"Responsebufferlimit= "0" /> <Addname= "extensionlessurlhandler-integrated-4.0"Path="*."verb= "Get,head,post,debug,put,delete,patch,options"type= "System.Web.Handlers.TransferRequestHandler"Precondition= "integratedmode,runtimeversionv4.0" /> </handlers></system.webserver></Configuration>
/usr/jexus/jws restart
Log4net referenced in the project.
The refresh can be accessed after a restart is displayed as follows, but the style information is not applied. This is because Linux is case-sensitive and needs to be configured with Jexus.
cd /usr/jexus/
vi jws
Cancel # export mono_iomap= "All" in front of this section of the #, save, and then restart Jexus.
After you restart JWs, revisit the results.
Summarize
Not finished.
Mono+jexus let C # run on Linux (centos7_x64), learn notes