#!/bin/sh #pathDir="/usr/local/src/Mono" pathDir=$(cd `dirname $0`; pwd) echo "Mono install ..." sleep 1 yum –y update 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 cd ${pathDir} tar -jxvf libgdiplus-2.10.tar.bz2 cd ${pathDir}/libgdiplus-2.10 ./configure --prefix=/usr make make install cd ${pathDir} tar -jxvf mono-3.12.1.tar.bz2 cd mono-3.12.1 ./configure --prefix=/usr make make install cd /usr/local/lib ln -s /usr/lib64/libgdiplus.so.0 ln -s /usr/lib64/libgdiplus.so.0.0.0 ln -s /usr/lib64/libgdiplus.so.0.0.0 libgdiplus.so cd /etc/ld.so.conf.d echo /usr/local/lib > local.conf ldconfig mono -V echo "jexus install ..." sleep 3 cd ${pathDir} tar -zvxf jexus-5.6.4.tar.gz cd jexus-5.6.4 sudo ./install echo "jexus instaled" sleep 3 cd ${pathDir} cp -f jexus /etc/rc.d/init.d/jexus cd /etc/rc.d/init.d chmod +x /etc/rc.d/init.d/jexus chkconfig --add /etc/rc.d/init.d/jexus chkconfig jexus on chkconfig | grep jexus cd ${pathDir} cp -rf adminui /usr/jexus/siteconf/adminui cp -rf default /usr/jexus/siteconf/default cd /usr/jexus sed -i "s/# export MONO_IOMAP/export MONO_IOMAP/g" jws sed -i "s/# export MONO_EXTERNAL_ENCODINGS/export MONO_EXTERNAL_ENCODINGS/g" jws ./jws restart cd ${pathDir} rm -rf jexus-5.6.4 rm -rf libgdiplus-2.10 rm -rf mono-3.12.1 iptables -I INPUT -p tcp --dport 80 -j ACCEPT iptables -I INPUT -p tcp --dport 8080 -j ACCEPT