• centos 7 mini 安装青岛OJ


     1、ultraISO 将centos7 mini写入U盘
    2、ip addr 查看IP地址
    3、vi etc/sysconfig/nework-scripts/ifcfg-ens33
            修改onboot =yes
            保存
    4、重启网络:sevice network restart
    

    4、换阿里源

     安装wget:yum -y install wget
     下载repo:wget http://mirrors.aliyun.com/repo/Centos-7.repo
     mv Centos-7.repo /etc/yum.repos.d/
     cd /etc/yum.repos.d/
     mv CentOS-Base.repo CentOS-Base.repo.bak
     mv Centos-7.repo CentOS-Base.repo
     yum clean all
     yum makecache
     yum update
    

    5、安装依赖

    sudo yum -y install vim
    sudo yum -y install curl
    sudo yum install -y git
    sudo yum -y install epel-release
    sudo yum -y install python3-pip
    pip3 install --upgrade pip
    pip3 install docker-compose -i https://pypi.douban.com/simple
    docker-compose --version
    

    6、安装docker

    curl -sSL https://get.daocloud.io/docker | sh
    sudo systemctl start docker
    sudo systemctl enable docker
    docker version
    

    7、开始安装oj

    git clone -b 2.0 https://github.com/QingdaoU/OnlineJudgeDeploy.git && cd  OnlineJudgeDeploy
    docker-compose up -d
    docker ps -a
    
  • 相关阅读:
    xpath教程-逐层检索和全局检索 转
    xpath教程-通过ID和Class检索 转
    minianaconda3安装
    爬取表情
    进程线程(转)
    centos 安装docker方法2
    关于Dockerfile
    根据指定规则生成游戏选项编码实战
    分布式对象存储 读书笔记
    muduo 的windows下的编译
  • 原文地址:https://www.cnblogs.com/hqzxwm/p/14506228.html
Copyright © 2020-2023  润新知