解析复杂的aspx有点问题,一会修正
mono的下载地址:http://www.go-mono.com/mono-downloads/download.html
源码的安装方法:
- cd /lamp/httpd-2.2.20
- ./configure --prefix=/usr/local/apache/ --with-included-apr --disable-userdir --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support
- make
- make install
- cp build/rpm/httpd.init /etc/init.d/httpd
- chmod 755 /etc/init.d/httpd
- chkconfig --add httpd
- chkconfig --level 35 httpd on
- cd /etc
- mv httpd httpd_old
- ln -s /usr/local/apache/ httpd
- cd /usr/sbin/
- ln -fs /usr/local/apache/bin/httpd
- ln -fs /usr/local/apache/bin/apachectl
- cd /var/log
- rm -rf httpd/
- ln -s /usr/local/apache/logs httpd
- groupadd apache
- useradd -g apache apache
- sed -i 's/\bdaemon\b/apache/g' /etc/httpd/conf/httpd.conf
- sed -i '$a\
- <Location />\
- AddOutputFilterByType DEFLATE text/plain\
- AddOutputFilterByType DEFLATE text/css\
- AddOutputFilterByType DEFLATE application/xml\
- AddOutputFilterByType DEFLATE application/rss+xml\
- AddOutputFilterByType DEFLATE application/atom_xml\
- AddOutputFilterByType DEFLATE application/x-javascript\
- AddOutputFilterByType DEFLATE application/x-httpd-php\
- AddOutputFilterByType DEFLATE text/html\
- </Location> ' /etc/httpd/conf/httpd.conf
- tar jxvf mono-2.2.tar.bz2
- cd mono-2.2
- ./configure --prefix=/usr/locol/mono
- make
- make install
- 安装xsp
- tar jxvf xsp-2.2.tar.bz2
- cd xsp-2.2
- ./configure --prefix=/usr/local/xsp
- make
- make install
- 安装mod-mono支持
- tar jxvf mod_mono-2.2.tar.bz2
- cd mod_mono-2.2
- ./configure --with-apxs=/usr/local/httpd/bin/apxs
- make
- make install
yum的安装方法
yum -y install httpd mono-gmcs mono-xsp2 libapache2-mod-mono mono-apache* httpd*
