博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ubuntu上安装mono
阅读量:7008 次
发布时间:2019-06-28

本文共 1746 字,大约阅读时间需要 5 分钟。

How do I use badgerports?

badgerports is an Ubuntu repository. In order to use it, you must add it to your Software Sources.

  1. Click on "System", "Administration", "Software Sources".

  2. Click on the "Other Software" tab.

  3. Click on "Add...", and enter the line:

    deb http://badgerports.org lucid main

    Screenshot from Software Sources

  4. Click on "Add Source"

  5. Click on "Authentication", then on "Import Key File"

  6. Download , ID 0E1FAD0C, and select it in the "Import Key File" window

  7. Click on "Close", then "Reload" when the pop-up appears. You're all set!

From now on, whenever you try to install or update Mono-related packages on your system, you will be given the
badgerports version for preference. You don't need to do anything more than update your system as usual to get started!

先按照如上的步骤配置文件

ubuntu10.4 配置mono+apache环境

1.使用光盘或镜像安装ubuntu10.4系统

2.更新ubuntu 系统

命令:
sudo apt-get update
sudo apt-get upgrade

3.安装apache 服务器

命令:
sudo apt-get install apahce2

4.暂停apache 服务

命令:
sudo /etc/init.d/apache2 stop

5.安装mono 相关组件

命令:
sudo apt-get install mono-apache-server4 libapache2-mod-mono libmono-i18n2.0-cil
sudo apt-get install mono-2.0-service

6.打开并编辑/etc/apache2/mods-available/mod_mono.conf配置文件

命令:
sudo vi /etc/apache2/mods-available/mod_mono.conf
sudo gedit /etc/apache2/mods-available/mod_mono.conf

7.使用vi 编辑器编辑配置文件/

mod_mono.conf 文件内容如下:
AddType application/x-asp-net .aspx .ashx .asmx .ascx .config .ascx .axd
DirectoryIndex Default.aspx
MonoAutoApplication enabled
MonoServerPath “/usr/bin/mod-mono-server4”
Include /etc/mono-server4/mono-server4-hosts.conf

8.启动apache 服务器

命令:
sudo /etc/init.d/apache2 start
 
至此 apache+mono的环境已经配置完成
可以在 apache默认目录/var/www/ 下放入aspx页面来测试配置是否成功。
 

使用putty和winscp连接Ubuntu,需要安装ssh
sudo apt-get install ssh

转载于:https://www.cnblogs.com/zhxshseu/p/5292251.html

你可能感兴趣的文章
MFC Dialog 初始化几个地方
查看>>
IDEA 整合Junit实现自动生成测试代码
查看>>
cookie
查看>>
58进制转换工具
查看>>
ES6中的const,set,map,Symbol
查看>>
学习链接
查看>>
[06]项目实战-移动端流体布局
查看>>
2.TCP/IP的三次握手与四次挥手
查看>>
windows使用composer.phar
查看>>
Windows下安装MySQL.zip
查看>>
Net体系结构组件
查看>>
python学习之老男孩python全栈第九期_day001知识点总结
查看>>
修复Extjs6.x表格最后一列的列头无右边线的BUG
查看>>
用vector实现矩阵, vector传参必须用模板泛型
查看>>
C#socket客户端自己输入消息发送到服务端通信实现通信
查看>>
Linux 之dhcp服务搭建
查看>>
SQL语句练习(四)
查看>>
C# WebAPI设置跨域
查看>>
vue(3)--生命周期,组件传值---2019.5.22学习笔记
查看>>
linux下根据进程名字获取PID,类似pidof(转)
查看>>