background:
Compared to the great God we are just far away, only know blindly looking for, looking for a lot of information, but really do not know which one is right.
A previous article also wrote how to install Jexus but always only HTML static pages can not be ASP (http://www.cnblogs.com/xiaoruilin/p/7777478.html)
Was himself pit, but there is no way, finally in https://linuxdot.net/(Linux dotnet Camp) found a QQ group 103810355, by group master pointing (mono/5.2.0.224,jexus/5.8.3.0 Linux This version of the line).
Configure these things are not you can think out of, or is carefully read the official documents, or consult others pointing.
1, installation Jexus
Official website: https://www.jexus.org/, great God built to install the standalone version
Jexus Standalone version of the installation
Jexus "Standalone" refers to the self-contained. NET runtime (mono), which does not require a Jexus version that can be run properly on the client server, which only supports the 64-bit Linux operating system.
The commands for installing the Jexus standalone version are:
Curl Https://jexus.org/release/x64/install.sh|sh
Note: Running the install command requires the operator to have root privileges.
[Email protected]_44_205_centos ~]# Curl Https://jexus.org/release/x64/install.sh|sh
[Email Protected]_44_205_centos ~]# vi/usr/jexus/jws.conf
[Email Protected]_44_205_centos ~]# Vi/usr/jexus/siteconf/default
[[Email Protected]_44_205_centos ~]#/usr/jexus/jws Start
[Email Protected]_44_205_centos ~]#/usr/jexus/jws-v
mono/5.2.0.224
jexus/5.8.3.0 Linux
2. New ASP. NET MVC using vs2017
The new process is no different than our usual, the most important thing is that VS2017 has included this two NuGet package (this is also to update the package to the latest version), if less than the VS2017 version, use NuGet installation
Microsoft.CodeDom.Providers.DotNetCompilerPlatform
Microsoft.Net.Compilers
Posted: Website someone said "pre-compilation" Can not tick, I have not tried, interested can test
3. Publish the project to the server
My server is installed: vftpd upload the Hellojexus folder to the server
Complex default site configuration files, configuring
[Email protected]_44_205_centos ~]# cp/usr/jexus/siteconf/default /USR/JEXUS/SITECONF/HELLOMVC
[Email Protected]_44_205_centos ~]# VI/USR/JEXUS/SITECONF/HELLOMVC
Modify port and Site Directory location
port=6929
root=//home/vftproot/pub/hellojexus
[Email protected]_44_205_centos ~]#/usr/jexus/jws restart
[Email protected]_44_205_centos ~]# Curl http://localhost:6929/
The display also shows that we succeeded.
[Email protected]_44_205_centos ~]# firewall-cmd--zone=public--add-port=6929/tcp--permanent
[Email protected]_44_205_centos ~]# firewall-cmd--reload
It's finally a success.
Reference Documentation:
Http://www.cnblogs.com/shanyou/p/5720733.html (Deployment to Mono/jexus using Visual Studio 2015 to develop an ASP. NET MVC 5 project)
centos7+mono5.2.0.224 +jexus5.8.3.0 ASP. NET MVC (vs2017)