手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

让Linux解析支持微软的asp.net [Apache+Mono]

[日期:2012-07-16] 来源:Linux社区  作者:rfyiamcool [字体:大 中 小]

解析复杂的aspx有点问题,一会修正

mono的下载地址:http://www.go-mono.com/mono-downloads/download.html

源码的安装方法:

  1. cd /lamp/httpd-2.2.20 
  2. ./configure --prefix=/usr/local/apache/ --with-included-apr --disable-userdir --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support 
  3. make 
  4. make install 
  5. cp build/rpm/httpd.init /etc/init.d/httpd 
  6. chmod 755 /etc/init.d/httpd 
  7. chkconfig --add httpd 
  8. chkconfig --level 35 httpd on 
  9. cd /etc 
  10. mv httpd httpd_old 
  11. ln -s /usr/local/apache/ httpd 
  12. cd /usr/sbin/ 
  13. ln -fs /usr/local/apache/bin/httpd 
  14. ln -fs /usr/local/apache/bin/apachectl 
  15. cd /var/log 
  16. rm -rf httpd/ 
  17. ln -s /usr/local/apache/logs httpd 
  18. groupadd apache 
  19. useradd -g apache apache 
  20. sed -i 's/\bdaemon\b/apache/g' /etc/httpd/conf/httpd.conf 
  21.   
  22. sed -i '$a\ 
  23. <Location />\ 
  24. AddOutputFilterByType DEFLATE text/plain\ 
  25. AddOutputFilterByType DEFLATE text/css\ 
  26. AddOutputFilterByType DEFLATE application/xml\ 
  27. AddOutputFilterByType DEFLATE application/rss+xml\ 
  28. AddOutputFilterByType DEFLATE application/atom_xml\ 
  29. AddOutputFilterByType DEFLATE application/x-javascript\ 
  30. AddOutputFilterByType DEFLATE application/x-httpd-php\ 
  31. AddOutputFilterByType DEFLATE text/html\ 
  32. </Location> ' /etc/httpd/conf/httpd.conf 
  33. tar jxvf mono-2.2.tar.bz2   
  34. cd mono-2.2   
  35. ./configure --prefix=/usr/locol/mono   
  36. make   
  37. make install   
  38.   
  39. 安装xsp  
  40. tar jxvf xsp-2.2.tar.bz2   
  41. cd xsp-2.2   
  42. ./configure --prefix=/usr/local/xsp   
  43. make   
  44. make install   
  45.   
  46. 安装mod-mono支持  
  47. tar jxvf mod_mono-2.2.tar.bz2   
  48. cd mod_mono-2.2   
  49. ./configure --with-apxs=/usr/local/httpd/bin/apxs   
  50. make   
  51. make install  

yum的安装方法

yum -y install httpd mono-gmcs mono-xsp2 libapache2-mod-mono mono-apache* httpd*

 

linux
相关资讯       Linux服务器 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款