梦飞数据中心 > 帮助中心 > 系统配置 > centos asp.net运行环境配置

centos asp.net运行环境配置

#更新系统

yum -y update

#安装相关的编译器
yum install glib2-devel
yum install gcc
yum install gcc-c++
yum install bison

#检查是否安装了apache
apachectl

#查找apache安装目录
which httpd

#删除之
rm -r /usr/sbin/httpd

#重新下载安装
wget http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.14.tar.bz2
tar jxvf httpd-2.2.14.tar.bz2
cd httpd-2.2.14
./configure --prefix=/usr/local/apache2 --enable-shared=max --enable-module=rewrite --with-apxs2=/usr/local/apache/bin/apxs --enable-module=so
make
make install

#下载安装mono
cd ../
wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2
tar jxvf mono-2.4.2.3.tar.bz2
cd mono-2.4.2.3
./configure
make
make install

#安装xsp
cd ../
wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.4.2.tar.bz2
tar jxvf xsp-2.4.2.tar.bz2
cd xsp-2.4.2
./configure
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
make
make install

#安装mod_mono
cd ../
wget http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.4.2.tar.bz2
tar jxvf mod_mono-2.4.2.tar.bz2
cd mod_mono-2.4.2
./configure
make
make install

#在配置文件 /usr/local/apache2/mod_mono.conf 添加2行
MonoServerPath /usr/local/bin/mod-mono-server2 –verbose
MonoAutoApplication enabled

#之后重新启动apache
/usr/local/apache2/bin/apachectl restart

#添加测试asp.net页面,添加读权限,即可

(责任编辑:梦飞科技) 部分网站内容及图片来源于网络,如有侵权或违规内容请联系管理员删除!