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

FAQ #4

Open
muzea opened this issue May 7, 2019 · 4 comments
Open

FAQ #4

muzea opened this issue May 7, 2019 · 4 comments

Comments

@muzea
Copy link
Owner

muzea commented May 7, 2019

索引

@muzea
Copy link
Owner Author

muzea commented May 7, 2019

面向场景

  • 测试时快速安装
  • 新装时快速体验

@muzea
Copy link
Owner Author

muzea commented May 14, 2019

环境要求

debian8(我在用)或者ubuntu18(LTS)

@muzea
Copy link
Owner Author

muzea commented May 14, 2019

如何安装

apt update

# 然后想办法下载一个 deb 到本地
# 比如 https://github.com/zhblue/hustoj/releases/latest 这里的deb包
# debian8就选有debian8字样的
# ubuntu18就选有ubuntu18字样的
# 大概操作是下面这样子
wget https://github.com/zhblue/hustoj/releases/download/19.05.14/hustoj_debian8_0.0.1-19.05.14_amd64.deb
# 然后使用 dpkg 安装 因为缺少依赖,所以会失败
# 要注意上面下载的文件名要和这里的一致
dpkg -i hustoj_debian8_0.0.1-19.05.14_amd64.deb
# 安装缺失的依赖
apt-get -f install
# 安装hustoj
dpkg -i hustoj_debian8_0.0.1-19.05.14_amd64.deb

# 然后启动相关服务
/etc/init.d/hustoj start
# 对ubuntu用户,有可能php服务没起来,需要执行下面这句
# /etc/init.d/php7.2-fpm start

Web 默认监听 4396 端口

@muzea
Copy link
Owner Author

muzea commented May 14, 2019

在docker中使用

有两处需要作出修改

  • OJ_COMPILE_CHROOT 看你启动容器姿势决定要不要设置成0,默认参数要修改成0
  • OJ_SHM_RUN 看你启动容器姿势决定要不要设置成0,默认参数要修改成0

然后手动在 /home/judge 下创建 run0,并修改文件夹归属到 judge:judge

@muzea muzea pinned this issue May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant