Liunx 腾讯开发框架Tars 使用一键安装

  1. git clone https://github.com/TarsCloud/Tars
    git clone --recursive https://github.com/TarsCloud/Tars.git
    git clone --recursive https://github.com/TarsCloud/Tars.git
    1.1. git submodule init 初始化子模块
    1.2. git submodule update 更新子模块
  2. 复制相关依赖到build目录。链接:https://pan.baidu.com/s/1RfySkU1ZPmatJ0PglAHXEA 密码:3gv6
    apache-maven-3.3.9-bin.tar.gz
    cmake-2.8.8.tar.gz
    jdk-8u111-linux-x64.tar.gz
    mysql-5.6.26.tar.gz
    resin-4.0.49.tar.gz
    3.修改install.sh
    MachineIp=172.17.147.232
    MachineName=iZdiok61212jquZ
    yum install -y gcc gcc-c++ make automake
    yum install -y perl-Module-Install.noarch
    perl scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
    cd -
    4.修改/root/Tars-master/build/conf/my.cnf
    bind-address=172.17.147.232 就是你自己的本地IP,据说不让是127.0.0.1
    5.修改运行权限:chmod +x install.sh
    运行脚本:./install.sh

6 删除 my.cnf
rm -rf /etc/my.cnf

git无法使用
yum update -y nss curl libcurl

你可能感兴趣的:(Tars)