Giter Site home page Giter Site logo

zangfenziang / doj Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doveccl/doj

0.0 2.0 0.0 15.81 MB

Doveccl Online Judge

License: GNU General Public License v2.0

Python 0.40% Shell 0.05% CSS 12.58% PHP 13.47% HTML 32.59% Batchfile 0.01% JavaScript 37.77% CoffeeScript 2.65% ActionScript 0.49%

doj's Introduction

概述

DOJ 是一个开源的在线评测系统,运行于Ubuntu系统。

DOJ 使用php作为后台语言,使用开源的 Lo-runner 作为评测内核。

使用条款

该项目使用 GPL 2.0 开原协议

如有商业用途请联系作者授权

安装

  1. 建议使用Ubuntu 14.04或以上版本的操作系统作为OJ服务器

  2. 下载最新版本的 DOJ:

    wget https://github.com/doveccl/DOJ/archive/master.zip
  3. 解压压缩文件并进入 DOJ 目录:

    unzip master.zip
    cd DOJ-master
  4. 运行安装脚本:

    bash ./install.sh
  5. 如果你之前没有安装过 mysql,安装脚本会帮助你安装 mysql ,你需要在安装过程中为 mysql 的 root 用户设置密码。

  6. 安装脚本会提示你输入 mysql 用户名(默认为 root),然后你需要输入你设定的密码,安装脚本会自动检查用户名密码的正确性。

  7. 等待安装脚本运行完成,使用以下命令即可启动评测服务:

    sudo /etc/init.d/doj start

    如果你需要评测服务开机启动,请使用 root 权限编辑 /etc/rc.local 脚本:

    sudo gedit /etc/rc.local

    在该文件 exit 0 之前加入一行代码并保存:

    sudo /etc/init.d/doj start
  8. 在浏览器中输入 localhost 来测试 OJ 搭建情况(初始用户为管理员,用户名为 admin,密码为 oj_admin),并及时修改密码。

评测

如果你发现无论如何都无法AC,请在评测记录中找到该代码运行编号,并在终端中输入以下命令(命令中 %d 处写你获取的运行编号):

dojudge %d config

如果你看到 #0 {res: 1, ...} 代表该语言已经被成功配置。

反馈

如有任何问题请通过以下邮箱反馈:

[email protected]

doj's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.