对大家推荐很好使用的CentOS安装系统,像让大家对CentOS安装系统有所了解,然后对CentOS安装系统全面讲解介绍,希望对大家有用#CentOS安装,配置系统时,开发部分除***一个不选之外全部选上。
#更新系统yum -y update#安装相关的编译器
- yum install glib2-devel
- yum install gcc
- yum install gcc-c++
- yum install bison
#检查是否CentOS安装了apacheapachectl#查找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
#下载CentOS安装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
#CentOS安装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
#CentOS安装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页面,添加读权限,即可
【编辑推荐】