Giter Site home page Giter Site logo

hjeonee / hustoj Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhblue/hustoj

0.0 0.0 0.0 35.3 MB

HUSTOJ open source online judge, an Online Judge System for ACM/ICPC and NOIP training, with easy installation. 开源OJ系统

Home Page: http://www.hustoj.com/?cat=2

C++ 0.55% Makefile 0.14% C 1.25% Objective-C 0.07% Shell 0.20% PLSQL 0.07% Lex 0.34% Roff 0.13% TeX 0.10% Dockerfile 0.04% JavaScript 87.83% PHP 7.82% CSS 1.01% Hack 0.01% Python 0.29% HTML 0.16%

hustoj's Introduction

hustoj -- 请一定认真看完本页再动手安装,以免无谓的折腾!

根据你选择的发行版不同,从下面三个脚本里选一个来用。

不要相信百度来的长篇大论的所谓教程,那些都是好几年前的老皇历了,会导致不判题,不显示,不好升级等等问题。

尤其别装apache

近期github的svn访问缓慢,可以到release中下载tar.gz版本,然后用install目录下的*-bytgz.sh脚本安装。 但是注意这样安装的实例,将来升级时只能手工升级。

首先安装Ubuntu14.04(最稳定),然后用下面脚本快速安装OJ:  

wget https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-ubuntu14.04.sh
sudo bash install-ubuntu14.04.sh

或者安装ubuntu16.04(拥有更新的编译器版本),然后用下面脚本快速安装OJ:

wget https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-ubuntu16+.sh
sudo bash install-ubuntu16+.sh

https://www.youtube.com/watch?v=nlhmfZqyHnA

发烧级用户ubuntu18.04(至少1年以上debian系Linux使用经验,欢迎帮忙踩坑测试,有问题会尽快修复)

wget https://github.com/zhblue/hustoj/raw/master/trunk/install/install-ubuntu18.04.sh
sudo bash install-ubuntu18.04.sh

假如你不得已非要用centos7 (有的语言可能不支持),可以用下面脚本快速安装OJ:  

wget https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-centos7.sh
sudo bash install-centos7.sh

https://www.youtube.com/watch?v=hRap7ettUWc

安装完成,用admin作为用户名注册一个用户,自动成为管理员。

安装后几个重要配置文件的位置

/home/judge/etc/judge.conf
/home/judge/src/web/include/db_info.inc.php
/etc/php5/fpm/php.ini 或 /etc/php7.0/fpm/php.ini
/etc/nginx/sites-enabled/default

如果用户量比较大,报50x错误,可能需要修改/etc/nginx/nginx.conf中的设置:

	worker_processes 8;    #其中数字8可以取CPU核心数的整数倍。
	events {
		worker_connections 2048;
		multi_accept on;
	}

如果遇到比赛人数多,比赛排名xls文件无法下载,请修改/etc/nginx/sites-enabled/default,在fastcgi_pass一行的后面增加

 	fastcgi_buffer_size 128k;
        fastcgi_buffers 32 32k;

保存后,重启nginx

REDHAT / CENTOS 用户请浏览

https://github.com/zhblue/hustoj/blob/master/wiki/CentOSx86_64.md

https://github.com/zhblue/hustoj/blob/master/wiki/CentOS.md

docker安装,仅供docker熟练用户参考使用,假如你不知道什么是docker,请假装没看见这一段!

docker run -d -it \
    -v /data/docker/docker-wxy/data:/data \
    --privileged \
    --name hustoj \
    -p 80:80 shiningrise/hustoj:latest

docker测试安装
	docker run -d -it --name hustoj -p 80:80 --privileged shiningrise/hustoj:latest
仅安装C++版本
	docker run -d -it --name hustoj -p 80:80 --privileged shiningrise/hustoj:cpp

树莓派用户请用rpi分支源码(实验性质)手工搭建web,并编译安装core目录下的judged和judge_client。

更多安装方法

有问题请先查阅 FAQWiki 或使用搜索引擎。  

使用上需要帮助,请加用户交流QQ群23361372,仅支持开通支付功能的手机QQ加群,不接受其他方式加群。 群共享有题库 安装盘 文档 ,群内可以讨论 答疑 。 新加群,请改群名片,5分钟后可以发言 。 请尊重开源软件开发者的辛苦劳动,出言不逊者将被踢出,群费不退。

Linux不熟悉的用户推荐使用: HUSTOJ_LiveCD(关注微信公众号onlinejudge获得百度云下载链接) https://proxy.us.storage.wooden.fish/aria2/hustoj20180331-16.04.iso https://proxy.us.storage.wooden.fish/aria2/hustoj20180331-14.04.iso

HUSTOJ_Windows(仅支持XP,QQ群23361372共享文件)进行安装。

使用说明见iso中README,也可以参考LiveCD简介

Linux新手请看鸟哥的私房菜

建好系统需要题目,请访问TK题库freeeproblemset项目

前台演示

后台功能:

硬件需求:

常见问题自动应答微信公众号:hustoj

关注后回复: 新装系统、升级、目录等关键词,系统会自动回复相关帮助。

HUSTOJ is an GPL FreeSoftware?.

HUSTOJ 是采用GPL的自由软件。

注意:基于本项目源码从事科研、论文、系统开发,"最好"在文中或系统中表明来自于本项目的内容和创意,否则所有贡献者可能会鄙视你和你的项目。使用本项目源码和freeproblemset题库请尊重程序员职业和劳动。

论文请引用参考文献基于开放式云平台的开源在线评测系统设计与实现

如果打算进行二次开发,Wiki和这份文档可能有帮助。

PS: GPL保证你可以合法忽略以上注意事项但不能保证你不受鄙视,呵呵。

如果这个项目对你有用,请挥动鼠标,右上角给个Star!

Star us, please!

hustoj's People

Contributors

zhblue avatar shiningrise avatar melongist avatar q1angch0u avatar slixurd avatar ryanlee2014 avatar maticsl avatar mastojun avatar trickness avatar tico88612 avatar sflsgfs avatar kevin50406418 avatar gzz2000 avatar cattail avatar prclx323800 avatar greedydaam avatar progh2 avatar gagiel avatar lixin-wei avatar hsxfjames avatar amir-s 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.