1.安装Mono源码安装需要的库
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
2.安装Mono需要的GDI+兼容API的库Libgdiplus
[root@ecs-7b55 /]# cd /usr/local/src/
[root@ecs-7b55 src]# wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
[root@ecs-7b55 src]# tar -jxvf libgdiplus-2.10.tar.bz2
[root@ecs-7b55 src]# cd libgdiplus-2.10
[root@ecs-7b55 libgdiplus-2.10]# ./configure --prefix=/usr
[root@ecs-7b55 libgdiplus-2.10]# make
[root@ecs-7b55 libgdiplus-2.10]# make install
3.源码安装Mono
[root@ecs-7b55 /]# cd /usr/local/src/
[root@ecs-7b55 src]# wget http://download.mono-project.com/sources/mono/mono-3.2.1.tar.bz2
[root@ecs-7b55 src]# tar -jxvf mono-3.2..tar.bz2
[root@ecs-7b55 src]# cd mono-3.2.
[root@ecs-7b55 mono-3.2.]# ./configure --prefix=/usr
[root@ecs-7b55 mono-3.2.]# make
[root@ecs-7b55 mono-3.2.]# make install
4.安装Jexus 5.4 :从5.3.1版本开始,Jexus的安装过程简化了,内置了两个新的脚本,它们分别是install和upgrade
[root@ecs-7b55 src]# wget http://www.linuxdot.net/down/jexus-5.4.tar.gz
[root@ecs-7b55 src]# tar -zvxf jexus-5.4.tar.gz
[root@ecs-7b55 src]# cd jexus-5.4
[root@ecs-7b55 jexus]# sudo ./jws start
5.Jexus5.4配置文件在/siteconf/default文件
[root@ecs-7b55 siteconf]# vi default ######################
# Web Site: Default
######################################## port=
root=/ /var/www/default
hosts=* #OR your.com,*.your.com # addr=0.0.0.0
# CheckQuery=false
# NoLog=true
# NoFile=/index.aspx
# Keep_Alive=false
# UseGZIP=true
# UseHttps=true
# DenyFrom=192.168.0.233, 192.168..*, 192.168.2.0/
# AllowFrom=192.168.*.*
# DenyDirs=~/cgi, ~/upfiles # rewrite=^/.+?\.(asp|php|cgi|pl|sh)$ /index.aspx # reproxy=/bbs/ http://192.168.1.112/bbs/ # Jexus php fastcgi address is '/var/run/jexus/phpsvr'
#######################################################
# fastcgi.add=php|socket:/var/run/jexus/phpsvr # php-fpm listen address is '127.0.0.1:9000'
############################################
# fastcgi.add=php|tcp:127.0.0.1:
6.测试 在/var/www/default/ 用vim新建一个简单index.apsx
[root@ecs-7b55 default]# vi index.aspx
<%@Page Language="c#" %><%=DateTime.Now.ToString()%>