惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
Spread Privacy
Spread Privacy
T
Threatpost
C
Cisco Blogs
P
Palo Alto Networks Blog
AI
AI
Cyberwarzone
Cyberwarzone
NISL@THU
NISL@THU
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
T
Tor Project blog
Latest news
Latest news
AWS News Blog
AWS News Blog
D
Docker
S
SegmentFault 最新的问题
博客园 - 聂微东
WordPress大学
WordPress大学
Vercel News
Vercel News
S
Securelist
爱范儿
爱范儿
J
Java Code Geeks
Know Your Adversary
Know Your Adversary
S
Schneier on Security
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
D
DataBreaches.Net
宝玉的分享
宝玉的分享
D
Darknet – Hacking Tools, Hacker News & Cyber Security
MongoDB | Blog
MongoDB | Blog
Engineering at Meta
Engineering at Meta
K
Kaspersky official blog
美团技术团队
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
量子位
博客园_首页
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
腾讯CDC
T
Threat Research - Cisco Blogs
雷峰网
雷峰网
有赞技术团队
有赞技术团队
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
S
Security Affairs

博客园 - aquilahkj

在Flutter中使用极光推送集成华为通道踩坑 Flutter中生成Android的jks签名文件并使用 ABP Vnext使用mysql数据库 实现ElementUI Dialog宽度响应式变化 使用Vue Baidu Map对百度地图实现输入框搜索定位 在dotnet core实现类似crontab的定时任务 使用Docker搭建HttpRunnerManager环境 docker搭建nginx反代ngrok服务 - aquilahkj 开源一个基于dotnet standard的轻量级的ORM框架-Light.Data VMware Fusion下安装Win8启用Hyper-V centos下安装rinetd(转载) 在Mac OS X上安装JavaHL SVN数据仓库配置 在MONO下实现WCF所遇到的问题 mysql 创建 主键索引 唯一索引 全文索引 多列索引 添加索引 关于MYSQL 远程登录的授权方法 命令 CentOS 6.0 编译安装 MySQL 5.5.17 linux下允许root用户远程登录 Linux Vi命令
CentOS 6.0 安装 MONO 2.10.8
aquilahkj · 2011-11-03 · via 博客园 - aquilahkj

1.更新系统   

 yum update

2.安装必要的相关库   

 yum install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel giflib-devel libX11-devel freetype-devel fontconfig-devel  cairo-devel httpd httpd-devel

3.安装 libgdiplus

 cd /usr/local/src/

 wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2

 tar -jxvf libgdiplus-2.10.tar.bz2

 cd libgdiplus-2.10

 ./configure --prefix=/opt/mono

 make

 make install

 echo "/opt/mono/lib" > /etc/ld.so.conf.d/mono.conf

 ldconfig 

4.安装 mono  

 cd /usr/local/src/ 

 wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.bz2

 tar -jxvf mono-2.10.8.tar.bz2

 cd mono-2.10.8

 ./configure --prefix=/opt/mono

 make  

 漫长的等待.......

 make install

 echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile

 echo export LD_LIBRARY_PATH=/opt/mono/lib:$LD_LIBRARY_PATH>>~/.bash_profile

 echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile

 source ~/.bash_profile

 输入 mono -V 如有mono版本信息,则安装成功. 

 5.安装mono xsp-2.10

 cd /usr/local/src/ 

 wget http://download.mono-project.com/sources/xsp/xsp-2.10.tar.bz2

 tar jxvf xsp-2.10.tar.bz2

 cd xsp-2.10

 ./configure -prefix=/opt/mono

 make

 make install

6.安装mod_mono-2.10

 cd /usr/local/src/ 

 wget http://download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2

 tar jxvf mod_mono-2.10.tar.bz2

 cd mod_mono-2.10

 ./configure -prefix=/opt/mono

 make; 

 make install

mod_mono配置:

cp /etc/httpd/conf/mod_mono.conf /etc/httpd/conf.d/mod_mono.conf

MonoServerPath /opt/mono/bin/mod-mono-server4 

修改/etc/profile,在末端添加

MONO_HOME=/opt/mono

PATH=$MONO_HOME/bin:$PATH

CLASSPATH=.:$MONO_HOME/lib/

export MONO_HOME

export PATH

export CLASSPATH

测试是否能够执行aspx: 

在/var/www/html/目录下建一个test.aspx页面,内容为 
<%="Hello World!"%> 
通过wget http://localhost/test.aspx来下载该页面的内容。