1 because 163 does not have the CENTOS7 mirror, so does not add this wgetHttp://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 Checking whether the installation is good
Yum List Installed | grep Mono
3 Adding a mono work path
Modify/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
If an exception is thrown by the type initializer for Mono.Unix.Native.Stdlib appears
May be mod_mono not installed, or not ldconfig
5 Start Jexus
Manual Start/usr/jexus/jws Start
Boot auto Start:
Add this line of command 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 can
Reference http://jexus.org/
Linux build aspx.net Environment: CentOs 7 Installation Mono and Jexus Step Records