First, Background introduction:
Because of job needs, want to build a OJ platform for program testing and evaluation in school. So need to build OJ, because before are in the cloud server building system, not in the actual server platform has been built, so encountered a lot of pits, all rely on their own to fill. So write this tutorial in order to make a case.
The server is better able to adopt a more formal server, read and write and access speed will be optimized many, for many special reasons, I used to be a normal host as a server.
Second, the installation process: 1, download and installation system
The system I chose for Ubuntu 16.04, the system's image selection is very important. Because the built-in software and installation source are different, at first I chose the best kylin (because I want to use a pure fool in Chinese, later found that Ubuntu can set Chinese).
Https://opsx.alibaba.com/mirror?lang=zh-cn
Choose 64-bit or 32-bit versions according to your needs
Https://mirrors.aliyun.com/ubuntu-releases/xenial/ubuntu-16.04.4-desktop-amd64.iso
https://mirrors.aliyun.com/ubuntu-releases/xenial/ubuntu-16.04.4-desktop-i386.iso
installation tutorials, referring to the Baidu tutorial, note the distinction between UEFI and traditional bios, and the coexistence of Windows systems.
2, installing SSH and VNC
For ease of control, we naturally have to install these. VNC is a graphical interface, and SSH is a remote command line
Ubuntu 16.04 LTS One-click Installation vnc:51657610
SSH Installation: 53557795
WINDWOS Remote Tools Reference: Http://server.zzidc.com/fwqrj/1107.html
Prefer putty and mobaxterm
3, Installation Hustoj
Https://github.com/zhblue/hustoj
Refer to the official tutorials:
or install ubuntu16.04 (with an updated version of the compiler), and then use the following script to quickly install OJ:
wget https://raw.githubusercontent.com/zhblue/hustoj/master/trunk/install/install-ubuntu16+.sh
sudo bash install-ubuntu16+.sh
The installation completes, registers a user with the admin as the user name, automatically becomes the administrator.
4, two times development and needs
、、、 in Update
Ubuntu 16.04 Installation Hustoj process