Linux下mono配置,Linux下mono配置
【 tulaoshi.com - Linux 】
Mono相关安装包在http://www.go-mono.com/download.html下载/DownloadFilesa2002-01-29(br> apache2在www.apache.org下载/DownloadFilesa2002-01-29(br> 1. 安装gcc编译环境(如果有可以跳过此步)/DownloadFilesa2002-01-29(br> rpm -ivh *cc*/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> 2. 安装apache2/DownloadFilesa2002-01-29(br> tar xvzf httpd-2.0.47.tar.gz/DownloadFilesa2002-01-29(br> cd httpd*/DownloadFilesa2002-01-29(br> ./configure --prefix=/mono/apache2 --enable-so/DownloadFilesa2002-01-29(br> make/DownloadFilesa2002-01-29(br> make install/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> 3. 安装所有下载的mono的rpm(mono的runtime,mono-0.26等等)/DownloadFilesa2002-01-29(br> rmp -ivh *.rpm/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> 3. 安装xsp/DownloadFilesa2002-01-29(br> tar xvzf xsp-0.5.tar.gz/DownloadFilesa2002-01-29(br> cd xsp-0.5/DownloadFilesa2002-01-29(br> make/DownloadFilesa2002-01-29(br> make install/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> 4. 安装mono(如果没有pkgconfig要先从linux安装盘上面安装)/DownloadFilesa2002-01-29(br> tar xvzf mod_mono-0.4.tar.gz/DownloadFilesa2002-01-29(br> ./configure --with-apache2=/mono/apache2 --with apxs=/usr/sbin/apxs/DownloadFilesa2002-01-29(br> make/DownloadFilesa2002-01-29(br> make install/DownloadFilesa2002-01-29(br> cd src/DownloadFilesa2002-01-29(br> make -f makedll.mak/DownloadFilesa2002-01-29(br> copy ModMono.dll /usr/lib/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> 5. 配置apache/DownloadFilesa2002-01-29(br> include /mono/apache2/conf/mono.conf/DownloadFilesa2002-01-29(br> 在httpd.conf里面加入包含一个文件mono.conf内容如下/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> LoadModule mono_unix_module modules/mod_mono_unix.so/DownloadFilesa2002-01-29(br> MonoApplicationUnix /TestC /tmp/mod_mono_server/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> 6. 运行程序/DownloadFilesa2002-01-29(br> 要先启动/DownloadFilesa2002-01-29(br> mono mod-mono-server.exe --virtual 虚拟目录名/DownloadFilesa2002-01-29(br> 然后启动apache即可/DownloadFilesa2002-01-29(br> apachectl start/DownloadFilesa2002-01-29(br> 如果出现错误,注意看apache2/logs/error_log文件/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> 7. 如果出现空白页面/DownloadFilesa2002-01-29(br> 打开/etc/mono/machine.config文件/DownloadFilesa2002-01-29(br> 将下列行注释:/DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br> /DownloadFilesa2002-01-29(br>来源:http://www.tulaoshi.com/n/20160129/1507519.html
看过《Linux下mono配置》的人还看了以下文章 更多>>