linux ubuntu安装 mono,Ubuntu 14.04 安装 Mono

sudo apt-get install mono-gmcs mono-devel

mono -V

sudo service apache2 stop

sudo apt-get install libapache2-mod-mono libmono-i18n2.0-cil

# For .NET 2.0

sudo apt-get install mono-apache-server2

# For .NET 4.0

sudo apt-get install mono-apache-server4

sudo a2enmod mod_mono

sudo service apache2 restart

hostname

hostname -f

http://go-mono.com/config-mod-mono/Default.aspx

sudo vi /etc/apache2/sites-enabled/000-default.conf

ServerName localserver127.com

ServerAdmin web-admin@li-ubuntu

DocumentRoot /home/li/WebDoc/

# MonoServerPath can be changed to specify which version of ASP.NET is hosted

# mod-mono-server1 = ASP.NET 1.1 / mod-mono-server2 = ASP.NET 2.0

# For SUSE Linux Enterprise Mono Extension, uncomment the line below:

# MonoServerPath li-ubuntu "/opt/novell/mono/bin/mod-mono-server2"

# For Mono on openSUSE, uncomment the line below instead:

MonoServerPath li-ubuntu "/usr/bin/mod-mono-server2"

# To obtain line numbers in stack traces you need to do two things:

# 1) Enable Debug code generation in your page by using the Debug="true"

# page directive, or by setting in the

# application's Web.config

# 2) Uncomment the MonoDebug true directive below to enable mod_mono debugging

MonoDebug li-ubuntu true

# The MONO_IOMAP environment variable can be configured to provide platform abstraction

# for file access in Linux. Valid values for MONO_IOMAP are:

# case

# drive

# all

# Uncomment the line below to alter file access behavior for the configured application

MonoSetEnv li-ubuntu MONO_IOMAP=all

#

# Additional environtment variables can be set for this server instance using

# the MonoSetEnv directive. MonoSetEnv takes a string of 'name=value' pairs

# separated by semicolons. For instance, to enable platform abstraction *and*

# use Mono's old regular expression interpreter (which is slower, but has a

# shorter setup time), uncomment the line below instead:

# MonoSetEnv li-ubuntu MONO_IOMAP=all;MONO_OLD_RX=1

MonoApplications li-ubuntu "/:/home/li/WebDoc/"

Allow from all

Order allow,deny

MonoSetServerAlias li-ubuntu

SetHandler mono

SetOutputFilter DEFLATE

SetEnvIfNoCase Request_URI ".(?:gif|jpe?g|png)$" no-gzip dont-vary

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript

vi /home/li/WebDoc/index.aspx

ASP Test Page

ASP Test Page

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值