vos2.0install

作者: 离岛之后 | 来源:发表于2017-07-27 11:05 被阅读0次

    #!/bin/sh

    echo"Starting install VOS2009 System"

    IP=vos.ucserver.org

    FILE=vos2009.2.1.2.0.tar.gz

    VOS2009_FILE=$FILE

    URL=http://$IP/$VOS2009_FILE

    echo$URL

    OS=`head -n 1 /etc/issue|awk'{ print $3}'`

    echo$OS

    check_version()

    {

    if["$OS"!=5.5 ]

    then

    echo"CentOS version must be 5.5"

    exit0

    fi

    }

    download_vos()

    {

    wget$URL

    tar -xvzf$FILE

    }

    install_rpm()

    {

    rpm -ivh jdk.i586.rpm

    rpm -ivh MySQL-server-community-5.0.51a-0.rhel5.i386.rpm --nodeps --force

    rpm -ivh MySQL-client-community-5.0.51a-0.rhel5.i386.rpm --nodeps --force

    rpm -ivh perl-DBI-1.40-5.i386.rpm --nodeps --force

    mysql -uroot -e'create database vosdb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;'

    chkconfig --level mysqld 2345 on

    }

    tar_tomcat()

    {

    PWD=`pwd`

    mv$PWD/apache-tomcat-5.5.15.tar.bz2  /usr

    tar -xvjf /usr/apache-tomcat-5.5.15.tar.bz2 -C /usr

    }

    java_home()

    {

    cp -f$PWD/profile /etc/profile

    }

    install_vos()

    {

    source/etc/profile

    PWD=`pwd`

    rpm -ivh$PWD/emp-2.1.2-0.noarch.rpm

    rpm -ivh$PWD/ivr-2.1.2-0.i586.rpm

    rpm -ivh$PWD/mbx2009-2.1.2-0.i586.rpm

    rpm -ivh$PWD/vos2009-2.1.2-0.i586.rpm

    LIBJVM=/usr/java/jdk1.5.0_08/jre/lib/i386/client/libjvm.so

    ln -s$LIBJVM/lib/libjvm.so

    }

    make_license()

    {

    mkdir -p /usr/kunshi/license

    CRACK_FILE=$PWD/vos20092120.bin

    CRACK_LOG=$PWD/crackvos.log

    $PWD/vos20092120.bin>$PWD/crackvos.log

    JDK_TIME=`sed -n 12p$CRACK_LOG`

    VOS_TIME=`sed -n 10p$CRACK_LOG`

    RPM_TIME=`sed -n 8p$CRACK_LOG`

    IP_ADDRESS=`ifconfig|grep -v'127.0.0.1'|awk'/inet addr/ {split($2,x,":");print x[2]}'`

    MAC=`ifconfig|grep -o -E'([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'|sed's|:|-|g'`

    echo"IP_ADDRESS="$IP_ADDRESS

    echo"MAC="$MAC

    echo"JDK_TIME="$JDK_TIME

    echo"VOS_TIME="$VOS_TIME

    echo"RPM_TIME="$RPM_TIME

    rm -rf$CRACK_LOG

    rm -rf$PWD/$FILE

    }

    check_version

    download_vos

    install_rpm

    tar_tomcat

    java_home

    source/etc/profile

    install_vos

    make_license

    echo"Congratulation! VOS2009 has been installed successfully!"

    echo"Contact me if you want to crack the vos2009 2.1.2.0"

    echo"My QQ: 85959493"

    相关文章

      网友评论

        本文标题:vos2.0install

        本文链接:https://www.haomeiwen.com/subject/tqczkxtx.html