CentOS配置安装相关常用系统

  • 来源: 互联网 作者: 李祥敬   2010-01-13/16:47
  • CentOS配置安装常用系统,于是我学习研究了CentOS配置安装asp.net运行,在这里对大家详细介绍下CentOS系统应用,希望对大家有用centos asp.net运行环境CentOS配置安装,配置系统时,开发部分除最后一个不选之外全部选上更新系统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

    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

    在CentOS配置安装文件 /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页面,添加读权限,即可Tag标签: centos,asp.net,apache,mono,xsp


    评论 {{userinfo.comments}}

    {{money}}

    {{question.question}}

    A {{question.A}}
    B {{question.B}}
    C {{question.C}}
    D {{question.D}}
    提交

    驱动号 更多