Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 7 #4

Open
wants to merge 1,566 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1566 commits
Select commit Hold shift + click to select a range
8c08d66
hello
shiningrise Feb 19, 2018
b9af005
del
shiningrise Feb 19, 2018
0b70dcc
Update judge_client.cc
zhblue Feb 19, 2018
0d3878f
Update judge_client.cc
zhblue Feb 19, 2018
859b7a8
Update judge_client.cc
zhblue Feb 19, 2018
218a4c6
Update judge_client.cc
zhblue Feb 19, 2018
a1e8428
fix nodejs
zhblue Feb 19, 2018
05ce4d8
Merge branch 'master' into docker-dev
shiningrise Feb 19, 2018
655f92b
docker测试安装
shiningrise Feb 19, 2018
8a72fd6
fixed nodejs in 64bit machines
amir-s Feb 19, 2018
02f73f4
ini_set("display_errors","Off")
shiningrise Feb 19, 2018
1b44c70
撤销修改
shiningrise Feb 19, 2018
160c6de
Merge pull request #235 from shiningrise/docker-dev
zhblue Feb 19, 2018
9f63e9a
Update README.md
zhblue Feb 19, 2018
656aa53
Merge pull request #236 from amir-s/nodejs_64
zhblue Feb 19, 2018
c5230fa
Merge pull request #1 from zhblue/master
shiningrise Feb 19, 2018
586120a
Update update-hustoj
zhblue Feb 19, 2018
d8e61fa
docker add --privileged
shiningrise Feb 19, 2018
5afc6bf
Merge pull request #238 from shiningrise/master
zhblue Feb 19, 2018
a73ad17
full manual judge
zhblue Feb 19, 2018
0cac18a
ubuntu1404静默安装
shiningrise Feb 19, 2018
063fc71
+mysql静默安装
shiningrise Feb 19, 2018
f877022
Merge pull request #239 from shiningrise/master
zhblue Feb 20, 2018
6c39104
autoclose autoreload
zhblue Feb 20, 2018
1cacabc
copy hustoj instance
zhblue Feb 20, 2018
99a1c3f
Dockerfile优化
shiningrise Feb 20, 2018
3368518
both english and chinese
zhblue Feb 20, 2018
a068ee1
problem_add_page_luogu.php
zhblue Feb 20, 2018
a098f78
hint
zhblue Feb 20, 2018
dd4497d
fix hint
zhblue Feb 20, 2018
02c657a
docker 数据卷集中在一起
shiningrise Feb 20, 2018
12a1a7e
docker 数据卷集中在一起
shiningrise Feb 20, 2018
5863b7f
docker 数据卷集中在一起
shiningrise Feb 20, 2018
a18b6c1
修改docker使用说明
shiningrise Feb 20, 2018
5331eef
Merge pull request #240 from shiningrise/docker
zhblue Feb 20, 2018
f3689cf
auto rename
zhblue Feb 20, 2018
5508b00
Update install-ubuntu14.04.sh
zhblue Feb 20, 2018
e3ab174
Update install-ubuntu16+.sh
zhblue Feb 20, 2018
e2c6b14
Update install-centos7.sh
zhblue Feb 20, 2018
65c9f5e
add docker-hustoj-cpp
shiningrise Feb 21, 2018
26931f7
+
shiningrise Feb 21, 2018
a1b5c33
add docker-cpp
shiningrise Feb 21, 2018
c6b7a49
add docker-cpp
shiningrise Feb 21, 2018
159aa7d
Merge branch 'master' into docker-hustoj-cpp
shiningrise Feb 21, 2018
284c30b
add docker-hustoj-cpp
shiningrise Feb 21, 2018
7244383
Merge pull request #241 from shiningrise/docker-hustoj-cpp
zhblue Feb 21, 2018
357bde7
fix 20 call in stand BJWC2018
zhblue Feb 24, 2018
0e7fc3d
Update install-ubuntu16+.sh
zhblue Feb 24, 2018
8da380d
Update install-centos7.sh
zhblue Feb 24, 2018
0ab6a5a
Update okcalls32.h
zhblue Feb 24, 2018
5e443c0
fix loader
zhblue Feb 25, 2018
e981128
Update faqs.cn.php
zhblue Feb 28, 2018
9b27740
Update faqs.php
zhblue Feb 28, 2018
2d9d63d
Update README.md
zhblue Mar 1, 2018
ee6de9c
svg https
zhblue Mar 2, 2018
eb17cf2
problem_id
zhblue Mar 2, 2018
d6d2cb5
Update problem_import.php
zhblue Mar 3, 2018
b3f3fd3
Update README.md
zhblue Mar 4, 2018
4c66f17
remove the docker temp config dir
zhblue Mar 4, 2018
d6b0d00
enable http judge with preloaded data files
zhblue Mar 10, 2018
df38a50
Update README.md
zhblue Mar 10, 2018
55b5c2e
Update README.md
zhblue Mar 10, 2018
8fcb88d
Update README.md
zhblue Mar 10, 2018
9e7085b
Update README.md
zhblue Mar 10, 2018
cda47cc
Update README.md
zhblue Mar 10, 2018
8c94404
Update contest_add.php
zhblue Mar 10, 2018
b51305b
batch
zhblue Mar 10, 2018
b85024c
fix
zhblue Mar 11, 2018
dadafb4
printer service in contest
zhblue Mar 13, 2018
f2da425
default no printer
zhblue Mar 13, 2018
8be6ac0
db update
zhblue Mar 13, 2018
e0f8454
better print
zhblue Mar 14, 2018
3466942
Create Printer.md
zhblue Mar 15, 2018
4dae154
Update Printer.md
zhblue Mar 15, 2018
d66c2aa
Add files via upload
zhblue Mar 15, 2018
2f36490
Update Printer.md
zhblue Mar 15, 2018
4dc6a9b
fix one click
zhblue Mar 15, 2018
0745be7
Update update_db.php
zhblue Mar 15, 2018
9a2359e
just copy , nerver tested
zhblue Mar 15, 2018
b6073ee
Update phpfm.php
zhblue Mar 15, 2018
90706b0
Line Number
zhblue Mar 15, 2018
4e5f716
昵称/座位号,学校
zhblue Mar 15, 2018
d733892
balloon ticket printer
zhblue Mar 16, 2018
42e49ca
clean check form
zhblue Mar 16, 2018
b866221
zhblue Mar 16, 2018
3ef9ec7
Update db.sql
zhblue Mar 16, 2018
4d22af8
Update update_db.php
zhblue Mar 16, 2018
b1821ce
Update update_db.php
zhblue Mar 16, 2018
e691774
l10n,i18n
zhblue Mar 17, 2018
c2fe98b
few lines copy from domj :P
zhblue Mar 17, 2018
2daef54
Update balloon.php
zhblue Mar 17, 2018
ee62bd9
no print
zhblue Mar 17, 2018
c269297
filter balloon and printer task list with their school field
zhblue Mar 18, 2018
a55e918
*Printer/Balloon task filter mark!y
zhblue Mar 18, 2018
f97fd10
help msg
zhblue Mar 18, 2018
c0d8a58
zhblue Mar 18, 2018
f963f29
fix clean
zhblue Mar 18, 2018
9ea5606
few prettify
zhblue Mar 18, 2018
2caf556
news made map print with balloon ticket
zhblue Mar 18, 2018
5802d3a
move pdo_query to anothery file
zhblue Mar 19, 2018
b237ea7
Update db.sql
zhblue Mar 20, 2018
edee19e
add one judge for one site with http
zhblue Mar 21, 2018
d368af8
install-judge.sh [OJ_URL] [JUDGER_NAME] [JUDGER_PASS] [LOCAL_DIR]
zhblue Mar 21, 2018
727b8c2
faster
zhblue Mar 22, 2018
ac6f6cf
search fix
zhblue Mar 22, 2018
727579f
Update reinfo.php
zhblue Mar 25, 2018
d8ac168
OJ_CPU_COMPENSATION=1.0
zhblue Mar 25, 2018
27d9a18
Update judge.conf
zhblue Mar 25, 2018
f22ae81
Create CPU_Compensation.md
zhblue Mar 25, 2018
f9d719e
Update CPU_Compensation.md
zhblue Mar 25, 2018
afbc318
TLE
zhblue Mar 25, 2018
f3a8ad5
auto cpu compensation
zhblue Mar 26, 2018
b13498c
auto
zhblue Mar 26, 2018
4a9c407
Delete install-interactive.sh
zhblue Mar 26, 2018
37f6e84
Delete install.sh
zhblue Mar 26, 2018
29d2727
few adjusts
zhblue Mar 30, 2018
cf95c9b
autocpu for livecd
zhblue Mar 30, 2018
435692c
fix on multi-core
zhblue Mar 30, 2018
a465ebc
fix multi
zhblue Mar 30, 2018
bc78d0d
Update README.md
zhblue Apr 1, 2018
da84e62
Update install-ubuntu14.04.sh
zhblue Apr 2, 2018
69a3778
Update install-judge.sh
zhblue Apr 2, 2018
00e2e53
Update install-ubuntu16+.sh
zhblue Apr 2, 2018
94c62a9
issues254
zhblue Apr 2, 2018
f7775fe
Update HUSTOJ_LiveCD.md
zhblue Apr 3, 2018
0fd433a
Update judge_client.cc
zhblue Apr 5, 2018
18400d4
wget https://github.com/zhblue/vjudge/raw/master/install.sh
zhblue Apr 5, 2018
8521cb2
hide i/o hint if empty
zhblue Apr 7, 2018
bbe25e5
TLE miss to RE
zhblue Apr 8, 2018
22977b4
fix about -240
zhblue Apr 8, 2018
a00ee45
restore.sh
zhblue Apr 10, 2018
55425f4
sql.bz2
zhblue Apr 10, 2018
c9d116b
Update restore.sh
zhblue Apr 10, 2018
fde2ce8
Update reinfo.php
zhblue Apr 10, 2018
bdac22c
Avoid overflow
ryanlee2014 Apr 10, 2018
e782928
Update README.md
zhblue Apr 11, 2018
7730edf
Update README.md
zhblue Apr 11, 2018
b71028e
Merge pull request #261 from ryanlee2014/master
zhblue Apr 11, 2018
f6cc4d0
openjdk8 want more vmsize on 64bits ubuntu16
zhblue Apr 14, 2018
389ea5f
Update judge_client.cc
zhblue Apr 15, 2018
c734d90
Update install-ubuntu16+.sh
zhblue Apr 15, 2018
398621e
few explaination
zhblue Apr 16, 2018
f3ba8cf
Update install-judge.sh
zhblue Apr 16, 2018
84156d3
Update install-judge.sh
zhblue Apr 16, 2018
86e2a94
backup original nginx.conf
zhblue Apr 16, 2018
10734b2
Update judge_client.cc
zhblue Apr 16, 2018
5ff19e0
lock improvement
zhblue Apr 17, 2018
fd874d1
PID= ABCD
zhblue Apr 20, 2018
481f1f7
fix few bugs
zhblue Apr 20, 2018
9b0df22
fix some more
zhblue Apr 20, 2018
4fe8996
A->pid
zhblue Apr 20, 2018
fca3cb8
fix after delete
zhblue Apr 20, 2018
5714ea8
Update README.md
zhblue Apr 22, 2018
d3abc3f
Update README.md
zhblue Apr 22, 2018
e0efa0f
Update README.md
zhblue Apr 25, 2018
de1302b
ABC
zhblue Apr 25, 2018
74cae87
more
zhblue Apr 25, 2018
f309b20
more
zhblue Apr 25, 2018
6904563
show contest menu
zhblue Apr 25, 2018
68c50d0
--database
zhblue Apr 26, 2018
2da51a2
$OJ_ON_SITE_CONTEST_ID
zhblue Apr 26, 2018
1b7d48d
more
zhblue Apr 26, 2018
7351fda
Update db_info.inc.php
zhblue Apr 27, 2018
203d590
first script for ubuntu 18.04
zhblue Apr 28, 2018
aefc627
fix java10/11 openjdk
zhblue Apr 28, 2018
d2c11b3
Update install-ubuntu18.04.sh
zhblue Apr 28, 2018
00468bf
Update README.md
zhblue Apr 30, 2018
6466f64
Update judge_client.cc
zhblue May 4, 2018
ae18ad0
Update judge_client.cc
zhblue May 4, 2018
efbd106
ipv6
zhblue May 11, 2018
699757d
ipv6
zhblue May 11, 2018
bfbd025
Update update_db.php
zhblue May 11, 2018
20735ad
tips & l10n
zhblue May 13, 2018
c96f589
tips
zhblue May 13, 2018
b160379
fix bug
zhblue May 13, 2018
ac8ae9c
mail switch
zhblue May 14, 2018
8021134
Update db_info.inc.php
zhblue May 14, 2018
cb62ab0
Update db_info.inc.php
zhblue May 15, 2018
4d6c263
Update db_info.inc.php
zhblue May 15, 2018
adc53ae
ubuntu16.04 32bit while(1) RE
zhblue May 16, 2018
cced985
reply
zhblue May 16, 2018
973da99
Update thread.php
zhblue May 17, 2018
fcbd78e
langmask
zhblue May 18, 2018
100afc4
Update okcalls32.h
zhblue May 18, 2018
4067216
Update conteststatus.php
zhblue May 18, 2018
df0bf55
Update conteststatus.php
zhblue May 18, 2018
5e62430
Update status.php
zhblue May 18, 2018
c768b6a
color named
zhblue May 18, 2018
f4f0c2b
,"-O2"
zhblue May 19, 2018
323316b
18.04 64bits
zhblue May 19, 2018
7b86f68
18.04 64bits
zhblue May 19, 2018
b392039
move Main.c to endy
zhblue May 19, 2018
ebbf466
Update contestrank.xls.php
zhblue May 20, 2018
824d329
Update contestrank2.php
zhblue May 20, 2018
1a16d8a
Update contestrank.xls.php
zhblue May 20, 2018
07f383f
space nick name disappear
zhblue May 20, 2018
9a2573a
c99
zhblue May 21, 2018
eb99e6a
TLE->RE
zhblue May 21, 2018
cedc76e
buffer overflow ?
zhblue May 21, 2018
2588f78
Update judge_client.cc
zhblue May 22, 2018
f5b6117
Update README
zhblue May 23, 2018
a72b3e0
Update README
zhblue May 23, 2018
644dbca
init.d
zhblue May 23, 2018
5a2faf2
ace editor 1st try
zhblue May 24, 2018
d7024c1
blockly compatible
zhblue May 24, 2018
e14f1c8
better on/off
zhblue May 24, 2018
2d74c1b
Update db_info.inc.php
zhblue May 24, 2018
5f1b514
remove checker
zhblue May 24, 2018
e2c268d
Update submitpage.php
zhblue May 24, 2018
cad9037
Create LICENSE
zhblue May 25, 2018
4fe5783
pascal TLE -> RE
zhblue May 28, 2018
ecccda7
ON SITE & EXAM can't modify userinfo
zhblue May 29, 2018
37e4482
fix user_id in online list
zhblue May 29, 2018
760f395
dd
zhblue May 29, 2018
4d4757e
mute php notice in template/xx/index.php:29
zhblue May 29, 2018
e0692f2
Avoid Compiler Bomb
ryanlee2014 May 29, 2018
1f2c060
Merge pull request #268 from ryanlee2014/master
zhblue May 30, 2018
5b57b8e
Update README.md
zhblue May 31, 2018
7c48ed7
Update js.php
zhblue Jun 1, 2018
ffab50e
upgrade to kindeditor 4.1.11
zhblue Jun 3, 2018
d7480d3
fix upgrade broken
zhblue Jun 3, 2018
ce30650
rm not need files
zhblue Jun 3, 2018
1035984
Update README.md
zhblue Jun 4, 2018
5f8b299
Update install-ubuntu16+.sh
zhblue Jun 4, 2018
037edea
only adminstrator can watch others result in ON_SITE_CONTEST
zhblue Jun 5, 2018
bfc38c6
Update bootstrap.min.css
zhblue Jun 5, 2018
c591447
Update install-ubuntu16+.sh
zhblue Jun 5, 2018
54daa68
Update install-ubuntu18.04.sh
zhblue Jun 5, 2018
0326364
xss prevent
zhblue Jun 5, 2018
61eddb2
RemoveXSS
zhblue Jun 5, 2018
167aed8
copy color from acm.hznu.edu.cn
zhblue Jun 6, 2018
8296df2
Update install-ubuntu16+.sh
zhblue Jun 8, 2018
d3bab2c
a chinese document for developers
zhblue Jun 8, 2018
b6f7260
二次开发
zhblue Jun 8, 2018
ca2428e
724199251@qq.com merge a scrollboard from
zhblue Jun 10, 2018
cfee17b
link to rolling board
zhblue Jun 10, 2018
7b17644
gold silver copperwq
zhblue Jun 10, 2018
41080b0
click or anykey
zhblue Jun 10, 2018
95ceb97
showTeam out of screen
zhblue Jun 10, 2018
bb03a7c
count in db
zhblue Jun 10, 2018
119218c
Update README.md
zhblue Jun 11, 2018
50816a6
Update install-ubuntu18.04.sh
zhblue Jun 11, 2018
0e77528
fix java on centos7.4 64 aliyuny
zhblue Jun 13, 2018
0e26057
Update msg.txt
zhblue Jun 13, 2018
26e6846
compromise with css convinience and xss prevent
zhblue Jun 13, 2018
a5bd0b5
Update judge_client.cc
zhblue Jun 13, 2018
c65201d
Update README.md
zhblue Jun 16, 2018
4712813
Update README.md
zhblue Jun 16, 2018
9b3ceab
Update README.md
zhblue Jun 16, 2018
15f7633
Update okcalls64.h
18323 Jun 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trunk/core/sim/*
trunk/web/discuss3/*
156 changes: 156 additions & 0 deletions A+B.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<?xml version="1.0" encoding="UTF-8"?>
<fps version="1.2" url="https://github.com/zhblue/freeproblemset/">
<generator name="HUSTOJ" url="https://github.com/zhblue/hustoj/"/>
<item>
<title><![CDATA[送分题-A+B Problem]]></title>
<time_limit unit="s"><![CDATA[1]]></time_limit>
<memory_limit unit="mb"><![CDATA[256]]></memory_limit>

<description><![CDATA[<p>Calculate a+b</p>]]></description>
<input><![CDATA[<p>Two integer a,b (0&lt;=a,b&lt;=10)</p>]]></input>
<output><![CDATA[<p>Output a+b</p>]]></output>
<sample_input><![CDATA[1 2]]></sample_input>
<sample_output><![CDATA[3]]></sample_output>
<test_input><![CDATA[500 17]]></test_input>
<test_output><![CDATA[517]]></test_output>
<test_input><![CDATA[2 3
]]></test_input>
<test_output><![CDATA[5
]]></test_output>
<hint><![CDATA[<p>Q: Where are the input and the output? A: Your program shall always <font color="#ff0000">read input from stdin (Standard Input) and write output to stdout (Standard Output)</font>. For example, you can use 'scanf' in C or 'cin' in C++ to read from stdin, and use 'printf' in C or 'cout' in C++ to write to stdout. You <font color="#ff0000">shall not output any extra data</font> to standard output other than that required by the problem, otherwise you will get a &quot;Wrong Answer&quot;. User programs are not allowed to open and read from/write to files. You will get a &quot;Runtime Error&quot; or a &quot;Wrong Answer&quot; if you try to do so. Here is a sample solution for problem 1000 using C++/G++:</p>
<pre>
#include &lt;iostream&gt;
using namespace std;
int main()
{
int a,b;
cin &gt;&gt; a &gt;&gt; b;
cout &lt;&lt; a+b &lt;&lt; endl;
return 0;
}</pre>
<p>It's important that the return type of main() must be int when you use G++/GCC,or you may get compile error. Here is a sample solution for problem 1000 using C/GCC:</p>
<pre>
#include &lt;stdio.h&gt;

int main()
{
int a,b;
scanf(&quot;%d %d&quot;,&amp;a, &amp;b);
printf(&quot;%d\n&quot;,a+b);
return 0;
}</pre>
<p>Here is a sample solution for problem 1000 using PASCAL:</p>
<pre>
program p1000(Input,Output);
var
a,b:Integer;
begin
Readln(a,b);
Writeln(a+b);
end.</pre>
<p>Here is a sample solution for problem 1000 using JAVA: Now java compiler is jdk 1.5, next is program for 1000</p>
<pre>
import java.io.*;
import java.util.*;
public class Main
{
public static void main(String args[]) throws Exception
{
Scanner cin=new Scanner(System.in);
int a=cin.nextInt();
int b=cin.nextInt();
System.out.println(a+b);
}
}</pre>
<p>Old program for jdk 1.4</p>
<pre>
import java.io.*;
import java.util.*;

public class Main
{
public static void main (String args[]) throws Exception
{
BufferedReader stdin =
new BufferedReader(
new InputStreamReader(System.in));

String line = stdin.readLine();
StringTokenizer st = new StringTokenizer(line);
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
System.out.println(a+b);
}
}</pre>]]></hint>
<source><![CDATA[系统原理,熟悉OJ]]></source>
<solution language="C"><![CDATA[#include <stdio.h>
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{
printf("%d\n",a+b);
}
return 0;
}]]></solution>
<solution language="C++"><![CDATA[#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
#ifndef ONLINE_JUDGE
freopen("in.txt","r",stdin);
#endif
int a,b;
while(cin >>a >>b)
{
cout <<a+b <<endl;
}
return 0;
}]]></solution>
<solution language="Pascal"><![CDATA[program abprob;
var
a,b:longint;
begin
readln(a,b);
writeln(a+b);
end.]]></solution>
<solution language="Java"><![CDATA[import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner cin = new Scanner(System.in);
int a,b;

while(cin.hasNextInt())
{
a = cin.nextInt();
b = cin.nextInt();
System.out.println(a+b);
}
}
}]]></solution>
<solution language="Bash"><![CDATA[read a b
let c=$a+$b
echo $c]]></solution>
<solution language="Python"><![CDATA[#!/usr/bin/python2
a=raw_input()
b=a.split(" ")
print eval(b[0]+"+"+b[1])
]]></solution>
<solution language="C#"><![CDATA[using System;
class Program {
public static void Main() {
string line;
string []p;
int a,b;
while((line=Console.ReadLine())!=null){
p=line.Split(' ');
a=int.Parse(p[0]);b=int.Parse(p[1]);
Console.WriteLine(a+b);
}
}
}]]></solution>
</item>
</fps>
134 changes: 134 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
hustoj -- 请一定认真看完本页再动手安装,以免无谓的折腾!
======

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

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

首先安装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


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

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

/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安装,<b>仅供docker熟练用户参考使用,假如你不知道什么是docker,请假装没看见这一段!</b>
```
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。

[更多安装方法](https://github.com/zhblue/hustoj/blob/master/trunk/install/README)

有问题请先查阅
<b>[FAQ](https://github.com/zhblue/hustoj/blob/master/wiki/FAQ.md)</b> 和
<b>[Wiki](https://github.com/zhblue/hustoj/tree/master/wiki)</b> 或使用搜索引擎。  

使用上需要帮助,请加用户交流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简介](https://github.com/zhblue/hustoj/tree/master/wiki/HUSTOJ_LiveCD.md)

Linux新手请看[鸟哥的私房菜](http://cn.linux.vbird.org/linux_basic/linux_basic.php)

建好系统需要题目,请访问[TK题库](http://tk.hustoj.com/) 和 [freeeproblemset项目](https://github.com/zhblue/freeproblemset)


[前台演示](http://hustoj.com/oj/)

后台功能:
<img src="https://raw.githubusercontent.com/zhblue/hustoj/master/wiki/menu.png" >
----------------------
硬件需求:
<img src="https://raw.githubusercontent.com/zhblue/hustoj/master/wiki/hardware.png" >

微信公众号:hustoj
<img src="http://hustoj.com/wx.jpg" height="180">
HUSTOJ is an GPL FreeSoftware?.

HUSTOJ 是采用GPL的自由软件。

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

论文请引用参考文献[基于开放式云平台的开源在线评测系统设计与实现](http://kns.cnki.net/KCMS/detail/detail.aspx?dbcode=CJFQ&dbname=CJFD2012&filename=JSJA2012S3088&uid=WEEvREcwSlJHSldRa1FhdXNXYXJwcFhRL1Z1Q2lKUDFMNGd0TnJVVlh4bz0=$9A4hF_YAuvQ5obgVAqNKPCYcEjKensW4ggI8Fm4gTkoUKaID8j8gFw!!&v=MjgwNTExVDNxVHJXTTFGckNVUkwyZlllWm1GaURsV3IvQUx6N0JiN0c0SDlPdnJJOU5iSVI4ZVgxTHV4WVM3RGg=)

如果打算进行二次开发,[Wiki](https://github.com/zhblue/hustoj/tree/master/wiki)和这份[文档](https://github.com/zhblue/hustoj/blob/master/wiki/hustoj%E6%96%87%E6%A1%A3%E5%A4%A7%E5%85%A8.pdf)可能有帮助。

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

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

Star us, please!




Loading