Qingdao University Open Source OJ build tutorial (linux: redhat)

First, install docker

Reference: https: //blog.csdn.net/Brave_heart4pzj/article/details/105089352


Second, the installation docker-compose

Redhat system docker-compose mounting assembly
https://blog.csdn.net/hebsun/article/details/102953970

Home address to download faster (recommended)

curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

Third, the system downloads QOJ

git clone -b 2.0 https://github.com/QingdaoU/OnlineJudgeDeploy.git && cd OnlineJudgeDeploy

Fourth, the system starts QOJ

docker-compose up -d

The speed circumstances, about 5 to 30 minutes for completion can be automatically set up, the entire process without human intervention.
Such as command completion, then run Docker PS -a , when you see the status of all containers are not unhealthy or Exited (x) xxx on behalf of the OJ has been launched successfully.


V. access QOJ project

Access the server through a browser HTTP 80 HTTPS 443 port or ports, you can start using it. Admin path / admin, super admin user during the installation process automatically adds the name root , password is rootroot , be sure to modify the password.


Sixth, modify QOJ start port

The project started with 80 is the default port
modify the configuration file docker-compose.yml in:
Here Insert Picture Description
Then, you can restart the docker-compose

docker-compose -f /root/ProjectNeeds/QDUoj/OnlineJudgeDeploy/docker-compose.yml up -d


Reference Information:

The whole building process
Reference: https: //blog.csdn.net/w1304636468/article/details/89300237

The official document:
https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0
https://github.com/QingdaoU/OnlineJudge

ubantu environment
Reference: https: //my.oschina.net/finchxu/blog/1927273

Published 126 original articles · won praise 9 · views 10000 +

Guess you like

Origin blog.csdn.net/Brave_heart4pzj/article/details/105112798