1 because 163 does not have a CentOs7 mirror. So I didn't add this wget .Http://mirrors.163.com/.help/CentOS6-Base-163.repo
cd/etc/yum.repos.d/
wget Http://download.opensuse.org/repositories/home:tpokorra:mono/CentOS_CentOS-7/home:tpokorra:mono.repo
Yum Makecache
Yum Install mono-opt
Yum Install mod_mono-opt
2 Check if it is installed.
Yum List Installed | grep Mono
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3jlzw5lcnk=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
3 Join Mono Working path
Change/etc/profile, add VI at end/etc/profile
Mono_home=/opt/mono
Path= $MONO _home/bin: $PATH
Classpath=.: $MONO _home/lib/
Export Mono_home
Export PATH
Export CLASSPATH
4 Installing Jexus
Cd/tmp
wget linuxdot.net/down/jexus-5.6.2.tar.gz
TAR-ZXVF jexus-5.6.2.tar.gz
CD jexus-5.6.2
sudo./install
Cd..
Rm-f jexus-5.6.2.tar.gz
RM-FR jexus-5.6.2
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3jlzw5lcnk=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3jlzw5lcnk=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
Assume an exception is thrown by the type initializer for Mono.Unix.Native.Stdlib
It is possible that Mod_mono is not installed. Or not Ldconfig
5 Start Jexus
Manual Start/usr/jexus/jws Start
Boot yourself actively:
Add the following line to the boot script for/etc/rc.local or class test:
mono/usr/jexus/jws.exe >/dev/null 2>&1 &
6 test Page Mkdir/var/www/defalut
echo \<% = "Hello World"%\> > Default.aspx
Browser view is available
References http://jexus.org/
Linux build aspx.net Environment: CentOs 7 Installation Mono and Jexus Step Records