记录生活
存档 Archives : April, 2010

sqlserver2008安装报错 “Previous releases of Microsoft Visual Studio 2008″ failed.

<Category: .NET, SQL Server> 发表评论

“Previous releases of Microsoft Visual Studio 2008″ failed.

问题原因,vs2008未安装sp1

解决办法:

1.去掉下面3个安装组件

  • Management Tools
  • Integration Services
  • Business Intelligence Development Studio
  • 2.转到安装目录,执行:

    Setup /ACTION=install /SkipRules=VSShellInstalledRule RebootRequiredCheck

     

     

    本文来自: sqlserver2008安装报错 “Previous releases of Microsoft Visual Studio 2008″ failed.

    nginx下fastcgi方式运行Perl程序

    <Category: Linux> 发表评论

    见鬼了,这篇文章又丢失了,vps的数据难道回滚了,靠。
    perl
    1.安装FCGI:

      wget http://www.cpan.org/modules/by-module/FCGI/FCGI-0.67.tar.gz
      tar zxvf FCGI-0.67.tar.gz
      cd FCGI-0.67
       Makefile.PL
      make && make 

    2.安装FCGI-ProcManager

    wget http://www.cpan.org/modules/by-module/FCGI/FCGI-ProcManager-0.18.tar.gz
        tar zxvf FCGI-ProcManager-0.18.tar.gz
        cd FCGI-ProcManager-0.18
        perl Makefile.PL
        make && make install

    3.编辑两个文件

    cd /usr/local//
      ls
      cd sbin/
      ls
      vi cgiwrap-fcgi.pl
      chmod +x cgiwrap-fcgi.pl

    4.cgiwrap-fcgi.pl文件内容
    #!/usr/bin/perl -w
    use FCGI;
    use Socket;
    use FCGI::ProcManager;
    sub shutdown { FCGI::CloseSocket($socket); exit; }
    sub restart  { FCGI::CloseSocket($socket); &main; }
    use sigtrap 'handler', &shutdown, 'normal-signals';
    use sigtrap 'handler', &restart,  'HUP';
    require 'syscall.ph';
    use POSIX qw(setsid);
     
    #&daemonize; we don't daemonize when running under runsv
    #this keeps the program alive or something after exec'ing perl scripts
    END()   { }
    BEGIN() { }
    {
        no warnings;
        *CORE::GLOBAL::exit = sub { die "fakeexitnrc=" . shift() . "n"; };
    };
    eval q{exit};
    if ($@) {
        exit unless $@ =~ /^fakeexit/;
    }
    &main;
     
    sub daemonize() {
        chdir '/' or die "Can't chdir to /: $!";
        defined( my $pid = fork ) or die "Can't fork: $!";
        exit if $pid;
        setsid() or die "Can't start a new session: $!";
        umask 0;
    }
     
    sub main {
     
    #$socket = FCGI::OpenSocket( "127.0.0.1:8999", 10 ); #use IP sockets
    #$socket = FCGI::OpenSocket( "/var/run/nginx/perl_cgi-dispatch.sock", 10 ); #use UNIX sockets - user running this script must have w access to the 'nginx' folder!!
    #foreach $item (keys %ENV) { delete $ENV{$item}; }
        $proc_manager = FCGI::ProcManager->new( {n_processes => 5} );
        $socket = FCGI::OpenSocket( "/var/run/fcgi.sock", 10 )
            ; #use UNIX sockets - user running this script must have w access to the 'nginx' folder!!
        $request =
            FCGI::Request( *STDIN, *STDOUT, *STDERR, %req_params, $socket,
            &FCGI::FAIL_ACCEPT_ON_INTR );
        $proc_manager->pm_manage();
        if ($request) { request_loop() }
        FCGI::CloseSocket($socket);
    }
     
    sub request_loop {
        while ( $request->Accept() >= 0 ) {
            $proc_manager->pm_pre_dispatch();
     
            #processing any STDIN input from WebServer (for CGI-POST actions)
            $stdin_passthrough = '';
            { no warnings; $req_len = 0 + $req_params{'CONTENT_LENGTH'}; };
            if ( ( $req_params{'REQUEST_METHOD'} eq 'POST' ) && ( $req_len != 0 ) )
            {
                my $bytes_read = 0;
                while ( $bytes_read < $req_len ) {
                    my $data = '';
                    my $bytes = read( STDIN, $data, ( $req_len - $bytes_read ) );
                    last if ( $bytes == 0 || !defined($bytes) );
                    $stdin_passthrough .= $data;
                    $bytes_read += $bytes;
                }
            }
     
            #running the cgi app
            if (
                ( -x $req_params{SCRIPT_FILENAME} ) &&    #can I execute this?
                ( -s $req_params{SCRIPT_FILENAME} ) &&    #Is this file empty?
                ( -r $req_params{SCRIPT_FILENAME} )       #can I read this file?
                )
            {
                pipe( CHILD_RD,   PARENT_WR );
                pipe( PARENT_ERR, CHILD_ERR );
                my $pid = open( CHILD_O, "-|" );
                unless ( defined($pid) ) {
                    print("Content-type: text/plainrnrn");
                    print
    "Error: CGI app returned no output - Executing $req_params{SCRIPT_FILENAME} failed !n";
                    next;
                }
                $oldfh = select(PARENT_ERR);
                $|     = 1;
                select(CHILD_O);
                $| = 1;
                select($oldfh);
                if ( $pid > 0 ) {
                    close(CHILD_RD);
                    close(CHILD_ERR);
                    print PARENT_WR $stdin_passthrough;
                    close(PARENT_WR);
                    $rin = $rout = $ein = $eout = '';
                    vec( $rin, fileno(CHILD_O),    1 ) = 1;
                    vec( $rin, fileno(PARENT_ERR), 1 ) = 1;
                    $ein    = $rin;
                    $nfound = 0;
     
                    while ( $nfound =
                        select( $rout = $rin, undef, $ein = $eout, 10 ) )
                    {
                        die "$!" unless $nfound != -1;
                        $r1 = vec( $rout, fileno(PARENT_ERR), 1 ) == 1;
                        $r2 = vec( $rout, fileno(CHILD_O),    1 ) == 1;
                        $e1 = vec( $eout, fileno(PARENT_ERR), 1 ) == 1;
                        $e2 = vec( $eout, fileno(CHILD_O),    1 ) == 1;
     
                        if ($r1) {
                            while ( $bytes = read( PARENT_ERR, $errbytes, 4096 ) ) {
                                print STDERR $errbytes;
                            }
                            if ($!) {
                                $err = $!;
                                die $!;
                                vec( $rin, fileno(PARENT_ERR), 1 ) = 0
                                    unless ( $err == EINTR or $err == EAGAIN );
                            }
                        }
                        if ($r2) {
                            while ( $bytes = read( CHILD_O, $s, 4096 ) ) {
                                print $s;
                            }
                            if ( !defined($bytes) ) {
                                $err = $!;
                                die $!;
                                vec( $rin, fileno(CHILD_O), 1 ) = 0
                                    unless ( $err == EINTR or $err == EAGAIN );
                            }
                        }
                        last if ( $e1 || $e2 );
                    }
                    close CHILD_RD;
                    close PARENT_ERR;
                    waitpid( $pid, 0 );
                } else {
                    foreach $key ( keys %req_params ) {
                        $ENV{$key} = $req_params{$key};
                    }
     
                    # cd to the script's local directory
                    if ( $req_params{SCRIPT_FILENAME} =~ /^(.*)/[^/]+$/ ) {
                        chdir $1;
                    }
                    close(PARENT_WR);
     
                    #close(PARENT_ERR);
                    close(STDIN);
                    close(STDERR);
     
                    #fcntl(CHILD_RD, F_DUPFD, 0);
                    syscall( &SYS_dup2, fileno(CHILD_RD)0 );
                    syscall( &SYS_dup2, fileno(CHILD_ERR), 2 );
     
                    #open(STDIN, "<&CHILD_RD");
                    exec( $req_params{SCRIPT_FILENAME} );
                    die("exec failed");
                }
            } else {
                print("Content-type: text/plainrnrn");
                print
    "Error: No such CGI app - $req_params{SCRIPT_FILENAME} may not exist or is not executable by this process.n";
            }
        }
    }

    运行脚本


    961  ./cgiwrap-fcgi.pl &
    962  ./cgiwrap-fcgi.pl >/dev/null 2>&1 &    #不输出日志

    运行下面的命令来查看perl是否运行

    948  ps aux|grep perl-fcgi|grep -v grep | awk '{print $0}'

    5.添加文件

    vi /var/run/fcgi.sock

    6.Nginx配置

     
    location ~ .*.pl$ {
            gzip off; #gzip makes slow
            _pass  unix:/var/run/fcgi.sock;
            fastcgi_index index.pl;
            include fastcgi_params;
            }

    fascgi_params内容如下:

    fastcgi_param  QUERY_STRING       $query_string;
    fastcgi_param  REQUEST_METHOD     $request_method;
    fastcgi_param  CONTENT_TYPE       $content_type;
    fastcgi_param  CONTENT_LENGTH     $content_length;
     
    fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
    fastcgi_param  REQUEST_URI        $request_uri;
    fastcgi_param  DOCUMENT_URI       $document_uri;
    fastcgi_param  DOCUMENT_ROOT      $document_root;
    fastcgi_param  SERVER_PROTOCOL    $server_protocol;
     
    fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
    fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
     
    fastcgi_param  REMOTE_ADDR        $remote_addr;
    fastcgi_param  REMOTE_PORT        $remote_port;
    fastcgi_param  SERVER_ADDR        $server_addr;
    fastcgi_param  SERVER_PORT        $server_port;
    fastcgi_param  SERVER_NAME        $server_name;
     
    #  only, required if  was built with --enable-force-cgi-redirect
    fastcgi_param  REDIRECT_STATUS    200;
    fastcgi_param  PATH_INFO          "";
     fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;

    本文来自: nginx下fastcgi方式运行Perl程序

    Centos中安装snmp用监控宝监测VPS

    <Category: Linux> 发表评论

    首先安装snmp
    yum -y net-snmp net-snmp-utils

    v3c的验证方式,添加一个只读帐号,如下:rouser jiankongbao auth
    上面添加帐号的意思是:在v3c中,“rouser”用于表示只读帐号类型,随后的“jiankongbao”是指定的用户名,后边的“auth”指明需要验证。
    接下来需要创建 jiankongbao这个用户,我们需要这个文件:/var/net-snmp/snmpd.conf,这个文件会在snmpd启动的时候被自动调用,由于此时我们还没有运行snmp,所以手动创建这个文件
    mkdir /var/net-snmp
    touch /var/net-snmp/snmpd.conf
    vim /var/net-snmp/snmpd.conf

    输入以下文字
    createUser jiankongbao MD5 mypassword
    这行配置的意思是创建一个名为“jiankongbao”的用户,密码为“mypassword”,并且用MD5进行加密传输。这里要提醒的是,密码至少要有8个字节,这是SNMP协议的规定,如果小于8个字节,通信将无法进行

    运行snmp

    service snmpd start
    设置成开机自动运行
    chkconfig snmpd on

    完了就可以在监控宝后台添加服务器监控了

    本文来自: Centos中安装snmp用监控宝监测VPS

    nginx下WordPress的WP-SuperCache RewriteRule设置

    <Category: Linux> 发表评论

    因为空间搬家,所以报了一个The path to wp-cache-phase1. in wp-content/advanced-cache. must be fixed!的错误,重新安装一下Wp-,更新下配置就行了。
    nginx配置如下:

    location /
            {
                    autoindex off;
                    gzip_static on;
     
                    set $wp_super_cache_file '';
                    set $wp_super_cache_uri $request_uri;
     
                    if ( $request_method = POST )
                    {
                            set $wp_super_cache_uri '';
                    }
     
                    if ( $query_string )
                    {
                            set $wp_super_cache_uri '';
                    }
     
                    if ( $http_cookie ~* "comment_author_|wordpress|wp-postpass_" )
                    {
                            set $wp_super_cache_uri '';
                    }
     
                    if ( $wp_super_cache_uri ~ ^(.+)$ )
                    {
                            set $wp_super_cache_file /wp-content/cache/wp_super_cache/$http_host/$1index.html;
                    }
     
                    if ( -f $document_root$wp_super_cache_file )
                    {
                            rewrite ^(.*)$ $wp_super_cache_file break;
                    }
     
                    if (-f $request_filename)
                    {
                            expires 30d;
                            break;
                    }
     
                    if (!-e $request_filename)
                    {
                            rewrite ^(.+)$ /index.php?q=$1 last;
                    }
            }

    本文来自: nginx下WordPress的WP-SuperCache RewriteRule设置

    nginx相关配置与WordPress的Rewrite Rule

    <Category: Linux> 发表评论

    nginx的cofig里加上:

    if (-f $request_filename/index.html){
                    rewrite (.*) $1/index.html break;
            }
            if (-f $request_filename/index.php){
                    rewrite (.*) $1/index.php;
            }
            if (!-f $request_filename){
                    rewrite (.*) /index.php;
            }

    阻止对文件的访问:

    location ~ /.ht {
        deny  all;
    }

    nginx泛域名需要在编译时加上参数: --with-http_sub_module
    nginx配置: server_name www.yourdomain.com *.yourdomain.com;

    本文来自: nginx相关配置与WordPress的Rewrite Rule

    网站监视利器 监控宝 试用

    <Category: 小道消息, 资源分享> 发表评论
    发现一个可以监视网站的工具,不需要做太多的设置,可以免费无限试用,多种通知功能,好像还不错。
    访问地址:http://www.jiankongbao.com
    截图:
    jiankongbao
    阅读这篇文章的其余部分 »

    本文来自: 网站监视利器 监控宝 试用

    博客搬家成功

    <Category: 小道消息> 1 条评论

    博客搬到Burst.net的vps上了,感觉速度比较慢,很多地方还得优化。

    本文来自: 博客搬家成功

    centos FTP

    <Category: Linux> 发表评论

    1.安装
    yum vsftpd

    2.启动/重启/关闭vsftpd服务器
    [root@localhost ]# /sbin/service vsftpd restart
    Shutting down vsftpd: [ OK ]
    Starting vsftpd for vsftpd: [ OK ]
    OK表示重启成功了.
    启动和关闭分别把restart改为start/stop即可.
    如果是源码安装的,到安装文件夹下找到start.sh和shutdown.sh文件,执行它们就可以了.

    3.与vsftpd服务器有关的文件和文件夹
    vsftpd服务器的配置文件的是: /etc/vsftpd/vsftpd.conf

    vsftpd服务器的根目录,即FTP服务器的主目录:
    [root@localhost ftp]# more /etc/passwd|grep ftp
    ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
    这样你就能看到FTP的服务器的目录在/var/ftp处
    如果你想修改服务器目录的路径,那么你只要修改/var/ftp到别处就行了

    4.添加FTP本地用户
    有的FTP服务器需要用户名和密码才能登录,就是因为设置了FTP用户和权限.
    FTP用户一般是不能登录系统的,只能进入FTP服务器自己的目录中,这是为了安全.这样的用户就叫做虚拟用户了.实际上并不是真正的虚拟用户,只是不能登录SHELL了而已,没能力登录系统.

    /usr/sbin/adduser -d /opt/test_ftp -g ftp -s /sbin/nologin test
    这个命令的意思是:
    使用命令(adduser)添加test用户,不能登录系统(-s /sbin/nologin),自己的文件夹在(-d /opt/test_ftp)),属于组ftp(-g ftp)
    然后你需要为它设置密码 passwd test
    这样就添加了一个FTP用户了.下面的示例可以帮助你进入FTP服务器了.

    [root@localhost ftp]# ftp
    ftp> open 192.168.0.33
    Connected to 192.168.0.33 (192.168.0.33).
    220 (vsFTPd 2.0.5)
    Name (192.168.0.33:gxl): test
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> quit
    221 Goodbye.

    注:如果登录时遇到500 OOPS: cannot change directory:可以在终端输入

    setsebool ftpd_disable_trans 1
    service vsftpd restart 解决。

    在windows中,只要在浏览器中输入 ftp://192.168.0.33 进入FTP服务器,然后 右键 登录,输入用户名和密码就可以登录自己的目录了.
    当然你要保证自己能读写自己的目录,就要在配置文件vsftpd.conf里设置一下就可以读写了.
    local_enable=yes
    write_enable=yes
    local_umask=022

    5.匿名上传下载
    修改配置文件即可vsftpd.conf,确定有以下几行,没有自己添加进去就可以了.
    anonymous_enable=yes
    anon_upload_enable=yes
    anon_mkdir_write_enable=yes
    anon_umask=022

    然后你可以新建一个文件夹,修改它的权限为完全开放,任何用户就可以登录这个文件夹,并上传下载文件:
    mkdir /var/ftp/guest
    chmod 777 /var/ftp/guest

    6.定制进入FTP服务器的欢迎信息
    在vsftpd.conf文件中设置:
    dirmessage_enable=yes
    然后进入用户目录建立一个.message文件,输入欢迎信息即可(我这里写入的是Welcome to gxlinux’s FTP!):
    [root@localhost test_ftp]# ftp 192.168.0.33
    Connected to 192.168.0.33 (192.168.0.33).
    220 (vsFTPd 2.0.5)
    Name (192.168.0.33:gxl): test
    331 Please specify the password.
    Password:
    230-Welcome to gxlinux’s FTP!
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.

    7.实现虚拟路径
    将某个目录挂载到FTP服务器下供用户使用,这就叫做虚拟路径.
    比如将gxl用户的目录挂载到FTP服务器中,供FTP服务器的用户使用,使用如下命令即可:
    [root@localhost opt]# mount –bind /home/gxl /var/ftp/pub #使用挂载命令
    [root@localhost opt]# ls /var/ftp/pub
    LumaQQ Screenshot.png 桌面

    8.打开vsFTPd的日志功能
    添加下面一行到vsftpd.conf文件中,一般情况下该文件中有这一行,只要把前面的注释符号#去掉即可,没有的话就添加,或者修改:
    xferlog_file=/var/log/vsftpd.log

    9.限制链接数,以及每个IP最大的链接数
    修改配置文件中,例如vsftp最大支持链接数100个,每个IP能支持5个链接:
    max_client=100
    max_per=5

    10.限制传输速度
    修改配置文件中,例如让匿名用户和vsftd上的用户(即虚拟用户)都以80KB=1024*80=81920的速度下载
    anon_max_rate=81920
    local_max_rate=81920

    11.将用户(一般指虚拟用户)限制在自家目录
    修改配置文件中,这样用户就只能访问自己家的目录了:
    chroot_local_user=yes
    如果只想某些用户仅能访问自己的目录,其它用户不做这个限制,那么就需要在chroot_list文件(此文件一般是在/etc/vsftpd/中)中添加此用户.
    编辑此文件,比如将test用户添加到此文件中,那么将其写入即可.一般的话,一个用户占一行.
    [root@localhost vsftpd]# cat chroot_list
    test

    12.绑定某个IP到vsFTPd
    有时候要限制某些IP访问服务器,只允许某些IP访问,例如只允许192.168.0.33访问这个FTP,同样修改配置文件:
    listen_address=192.168.0.33

    配置vsftpd.conf
    anonymous_enable=NO            #禁止匿名
    local_enable=YES                       #允许本地登录
    write_enable=YES #允许写,如需上传,则必须
    local_umask=027 #将上传文件的权限设置为:777-local_umask
    anon_upload_enable=YES          #允许虚拟用户和匿名用户上传
    anon_other_write_enable=YES
    #允许虚拟用户和匿名用户修改文件名和删除文件
    dirmessage_enable=YES
    xferlog_enable=YES                      #打开日志记录
    connect_from_port_20=YES
    xferlog_file=/var/log/vsftpd.log
    #日志存放位置
    xferlog_std_format=YES #标准日志格式
    idle_session_timeout=600 #空闲连接超时
    data_connection_timeout=120
    ftpd_banner=Welcome to ChinaRise FTP service       #欢迎信息
    guest_enable=yes                       #允许虚拟用户
    guest_username=vsftpdguest
    #虚拟用户使用的系统账号
    virtual_use_local_privs=YES #虚拟用户拥有本地系统权限

    chroot_local_user=NO
    chroot_list_enable=YES
    #以上两行将虚拟用户限制在其目录下,不能访问其他目录,或者直接用
    chroot_local_user=YES

    listen=yes #监听/被动模式
    listen_port=21        #监听端口

    chroot_list_file=/etc/vsftpd/vsftpd.chroot_list #虚拟用户名单保存在文件/etc/vsftpd/vsftpd.chroot_list 中
    user_config_dir=/etc/vsftpd/vsftpd_user_conf #每个虚拟用户名的更加详细的培植保存在/etc/vsftpd/vsftpd_user_conf 中

    虚拟用户其他设置

    /etc/vsftpd/vsftpd.chroot_list 文件中写入允许登陆的虚拟用户名称,每行一个
    在/etc/vsftpd/vsftpd_user_conf 文件夹中创建一个以虚拟用户用户名命名的文件,
    写入:
    local_root = /var/FTP/子目录名
    然后在/var/FTP下创建一个对应的目录即可

    本文来自: centos FTP

    lnmp、mono与asp.net环境安装

    <Category: Linux, 小道消息> 发表评论

    kloxo虽然比较强大,但是太耗资源,有些东西不一定需要,所以决定还是装LNMP。另外需要调试下ASP.NET程序,把MONO也装上了,使用fastcgi、mysql和nginx。

    1.安装lnmp

     wget http://soft.vpser.net/lnmp/lnmp0.3.tar.gz
     tar vxzf lnmp0.3.tar.gz
      cd lnmp0.3
     ./centos.sh

    asp.net支持
    2.编译安装mono 2.0

    wget http://ftp.novell.com/pub//sources//mono-2.0.tar.bz2
    tar jvxf -2.0.tar.bz2
    cd -2.0
    ./configure --prefix=/usr/local
    make
    make 

    3.安装完毕后可以通过“mono -V”查看mono版本

    [root@medcl mono-2.0]# mono -V
    Mono JIT compiler version 2.0 (tarball)
    Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
            TLS:           __thread
            GC:            Included Boehm (with typed GC)
            SIGSEGV:       altstack
            Notifications: epoll
            Architecture:  amd64
            Disabled:      none

    4.安装fastcgi-mono-server

    yum  install subversion
    svn co http://mono-soc-2007.googlecode.com/svn/trunk/brian/FastCgi/ fastcgi-mono-server
    cd fastcgi-mono-server/
    ./autogen.sh
    make
    make install

     

    下面的方法经测可用
    #yum groupinstall Mono
    But I noticed the version of Mono I installed is 1.2.4, seems that the lastversion of mono (2.4.2.3) is not in the package repositories.
    Then I tried to find the last version distribution from Mono Home page and google, but no result, So I had to download the source code and compile it all by my self.
    After some attempts, I got the following steps to compile and install the last version Mono on my CentOS 5.2 host,
    1.prepare the compile environment,
    # yum install gcc bison pkgconfig glib2-devel gettext make

    2.Go to this page and download the last version Mono(in my case, mono-2.4.2.3.tar.bz2),
    #wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2

    3.Extract the downloaded file,
    # tar jxvf mono-2.4.2.3.tar.bz2

    4.Change to the newly created directory,
    # cd mono-2.4.2.3

    5.I put my built packages in /opt so, run the following command to build mono,
    # ./configure –prefix=/opt/mono; make; make install
    6.Update ~/.bash_profile,

    #echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile
    #echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile
    #source ~/.bash_profile

    7. Test it,
    #mono -V
    and I got the output:

    Mono JIT compiler version 2.4.2.3 (tarball Thu Oct 22 06:42:24 MSD 2009)
    Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
    TLS: __thread
    GC: Included Boehm (with typed GC)
    SIGSEGV: altstack
    Notifications: epoll
    Architecture: x86
    Disabled: none

    Great, I got it.
    I think I’d better put all script I used in one place,

    mkdir ~/software
    yum install gcc bison pkgconfig glib2-devel gettext make
    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 –prefix=/opt/mono; make; make install
    echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile
    echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile
    source ~/.bash_profile
    mono -V
    cd ..
    rm -rf mono-2.4.2.3

    references,
    Mono Home Page
    [HOWTO] Install Mono 2.4 on CentOS 5.3

    nginx配置server节点之后
    -mono-server2 /socket=tcp:9000 &

    重启nginx:kill -HUP `cat /usr/local//logs/.pid`

    asp.net探针截图

    本文来自: lnmp、mono与asp.net环境安装

    vps安装kloxo控制面板

    <Category: 小道消息> 发表评论

    一个命令搞定:

    wget http://download.lxlabs.com/download/kloxo/production/kloxo-install-master.sh


    安装截图

    大功告成
    安装结果

    本文来自: vps安装kloxo控制面板