We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9e2da commit 9475480Copy full SHA for 9475480
post/安装.md
@@ -21,8 +21,7 @@ sudo docker --version # 检查 docker 是否正常安装
21
```bash
22
git clone https://github.com/UniversalOJ/UOJ-System.git # 克隆 UOJ-System 仓库
23
cd UOJ-System
24
-genRandStr(){ cat /dev/urandom | tr -dc [:alnum:] | head -c $1; }
25
-sed -i -e "s/_salt_0_/$(genRandStr 32)/g" -e "s/_salt_1_/$(genRandStr 16)/g" -e "s/_salt_2_/$(genRandStr 16)/g" -e "s/_salt_3_/$(genRandStr 16)/g" docker-compose.yml # 替换配置文件中的 salt
+bash prepare.sh # 进行一些准备工作
26
sudo docker-compose up -d # 启动 UOJ
27
```
28
0 commit comments