anolis 8.8 (CentOS 8) 环境下搭建青岛大学OJ
#yum -y install python3-pip // system replied: Package python3-pip-9.0.3-22.an8.noarch is already installed.
#pip install docker-compose //system replied: bash: pip: command not found...
#whereis pip //system replied: pip: /usr/bin/pip3.6
#cd /usr/bin
#ln -s pip3.6 pip
#pip install docker-compose //system replied: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lo78cwi1/bcrypt/
#where is python //system replied: python: /usr/bin/python3.6
#cd /usr/bin
#ln -s python3 python
#pip install docker-compose //system replied:
Could not find a version that satisfies the requirement cryptography>=3.3 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]>=5->docker-compose) (from versions: )
No matching distribution found for cryptography>=3.3 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]>=5->docker-compose)
#yum -y install python39
#cd /usr/bin
#ln -s python39 python
#rm pip
#ln -s pip3.9 pip
#cd /home/cjl/OnlineJudgeDeploy
#pip install docer-compose //succed!
#git clone -b 2.0 https://github.com/QingdaoU/OnlineJudgeDeploy.git && cd OnlineJudgeDeploy
#docker-compose up -d
#docker-compose up -d
#docker ps -a
通过浏览器访问服务器的 HTTP 80 端口或者 HTTPS 443 端口,就可以开始使用了。后台管理路径为/admin, 安装过程中自动添加的超级管理员用户名为 root,密码为 rootroot, 请务必及时修改密码。
遇到的问题:
1.安装宝塔面板(不是必须的,这只是我的需求)
https://liuyanzhao.com/6323.html
install baotao panel
#yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
2.搭建文档
https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0
https://www.cnblogs.com/youcong/p/10085387.html
3.过程中的奇奇怪怪的问题
apt-get不能用
https://www.cnblogs.com/yadongliang/p/8660046.html
docker安装镜像找不到
https://www.cnblogs.com/yufeng218/p/8370670.html
80端口被占用
https://blog.csdn.net/qq_37495786/article/details/83274290
浙公网安备 33010602011771号