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
原文地址:https://www.cnblogs.com/hqzxwm/p/14506228.html