|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
小知识:社区支持的免费Linux发行版一般不会从商业支持中寻求什么好处,但对CentOS来说,这种情况即将改变。
Linux和Microsoft一直是水不容,这些年Microsft和Novell互助后情形有了些许的变动。可是想要各自的使用步伐能无缝地迁徙估量都是对照坚苦的事变。而MONO是由Novell公司倡议的一个开源项目,用于在Linux情况中供应ASP.NET撑持。
在CentOS5linux(注:今朝只兼容32位体系)上源码的安装依附响应的开辟包,以是在安装mono之前需先安装apache组件。
#yum-yinstallhttp*
Mono的安装有多种体例,RedhatLinux下最复杂间接yum安装,在CentOS5上面,能够经由过程上面的体例来yum安装
#yuminstallmono*xspmod_mono
DependenciesResolved
====================================================================================================================================
PackageArchVersionRepositorySize
====================================================================================================================================
Installing:
mod_monoi3861.2.1-1.el5.centosextras36k
mono-corei3862.4-4.3Mono14M
mono-datai3862.4-4.3Mono1.5M
mono-data-firebirdi3862.4-4.3Mono252k
mono-data-oraclei3862.4-4.3Mono184k
mono-data-postgresqli3862.4-4.3Mono203k
mono-data-sqlitei3862.4-4.3Mono157k
mono-data-sybasei3862.4-4.3Mono160k
mono-develi3862.4-4.3Mono1.8M
mono-extrasi3862.4-4.3Mono1.5M
mono-jscripti3862.4-4.3Mono410k
mono-locale-extrasi3862.4-4.3Mono783k
mono-moonlighti3862.4-4.3Mono1.5M
mono-nuniti3862.4-4.3Mono223k
mono-nunit-develi3862.4-4.3Mono14k
mono-webi3862.4-4.3Mono3.1M
mono-web-develi3862.4-4.3Mono14k
mono-winformsi3862.4-4.3Mono3.0M
monodoci3862.4-4.3Mono7.3M
monodoc-develi3862.4-4.3Mono14k
xspi3861.2.1-1.el5.centosextras233k
Installingfordependencies:
giflibi3864.1.3-7.1.el5_3.1base39k
httpdi3862.2.3-43.el5.centosbase1.2M
libgdiplusi3862.4-5.3Mono1.3M
TransactionSummary
====================================================================================================================================
Install24Package(s)
Update0Package(s)
Remove0Package(s)
Totaldownloadsize:39M
#
安装后应当失掉:
#rpm-qa|grepmono
mono-winforms-2.4-4.3
mono-data-sqlite-2.4-4.3
mono-locale-extras-2.4-4.3
mono-moonlight-2.4-4.3
mono-nunit-2.4-4.3
mono-data-2.4-4.3
mono-core-2.4-4.3
monodoc-2.4-4.3
monodoc-devel-2.4-4.3
mono-data-sybase-2.4-4.3
mono-data-oracle-2.4-4.3
mono-devel-2.4-4.3
mono-extras-2.4-4.3
mono-nunit-devel-2.4-4.3
mono-web-devel-2.4-4.3
mod_mono-1.2.1-1.el5.centos
mono-data-firebird-2.4-4.3
mono-data-postgresql-2.4-4.3
mono-web-2.4-4.3
mono-jscript-2.4-4.3
然后设置mod_mono,测试可否与apache整合:
#vi/etc/httpd/conf.d/mod_mono.conf
增加:
Alias/test“/usr/lib/xsp/test”
MonoApplications“/test:/usr/lib/xsp/test”
<Location/test>
SetHandlermono
</Location>
测试httpd:
#/usr/sbin/httpd-t
SyntaxOK
#chown-Rapache.apache/usr/lib/mono/
#chown-Rapache.apache/usr/lib/xsp/
#servicehttpdrestart
中断httpd:[断定]
启动httpd:[断定]
如今就能够会见http://localhost/test/
小知识:CentOS是一个基于RedHatLinux提供的可自由使用源代码的企业级Linux发行版本。 |
|