.net 在linux运行环境,在 Arch Linux 下配置 ASP.NET 运行环境

昨天我们成功配置了Lighttpd + FastCGI + PHP,今天我们需要让Lighttpd 支持http://www.doczj.com/doc/717dc75abe23482fb4da4ca0.html,Linux 下要部署一个http://www.doczj.com/doc/717dc75abe23482fb4da4ca0.html 服务器,Mono 这个 .NET 在Linux 下的实现是必不可少的。我们首先直接用Pacman 安装Mono,至于Mono 的FastCGI 支持需要从SVN 下载回来编译安装,所以我们同时也安装一些必需的工具。

pacman -S mono svn automake autoconf libtool

然后我们随便建立一个目录,进入后运行

svn co http://www.doczj.com/doc/717dc75abe23482fb4da4ca0.html/svn/trunk/brian/FastCgi/ fastcgi-mono-server

源代码下载回来后进入fastcgi-mono-server 目录打开configure 文件,把第2387行注释掉,然后运行

./autogen.sh --prefix=/usr && make && make install

到这里,Mono 的FastCGI 功能已经安装完成,剩下的就是继续配置Lighttpd 了,打开/etc/lighttpd/lighttpd.conf 文件,把昨天修改过的地方稍微修改一下就可以了fastcgi.server = (

".php" => ("localhost" => ("socket" => "/tmp/php-fastcgi.socket","bin-path" => "/usr/bin/php-cgi")),

".aspx" => ("localhost" => ("socket" => "/tmp/fastcgi-mono-server", "bin-path" => "/usr/bin/fastcgi-mono-server2", "bin-environment" => ("MONO_SHARED_DIR" => "/tmp/")))

)

fastcgi.map-extensions = (".asmx" => ".aspx", ".ashx" => ".aspx", ".asax" => ".aspx", ".ascx" => ".aspx", ".soap" => ".aspx", ".rem" => ".aspx", ".axd" => ".aspx", ".cs" => ".aspx", ".config" => ".aspx", ".dll" => ".aspx")

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值