更新 README.md
This commit is contained in:
1 parent
d7402512e7
commit
91ce949c09
1 file changed
+11
-1
@@ -12,13 +12,23 @@
|
|||||||
su -
|
su -
|
||||||
apt update && apt install curl wget sudo
|
apt update && apt install curl wget sudo
|
||||||
```
|
```
|
||||||
|
|
||||||
安装完后请使用以下命令换源:
|
安装完后请使用以下命令换源:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
su -
|
su -
|
||||||
bash <(curl -s http://10.16.80.222:3000/Weishen/Hydro-Setup/raw/branch/main/apt-mirror.sh)
|
bash <(curl -s http://10.16.80.222:3000/Weishen/Hydro-Setup/raw/branch/main/apt-mirror.sh)
|
||||||
```
|
```
|
||||||
#### 3. 安装 Hydro OJ
|
|
||||||
|
#### 3. 为 ptyz 用户增加 sudo 权限
|
||||||
|
|
||||||
|
```bash
|
||||||
|
su -
|
||||||
|
usermod -aG sudo ptyz # 加入 sudoer 组
|
||||||
|
echo 'ptyz ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/ptyz && chmod 0440 /etc/sudoers.d/ptyz # 免密 sudo
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 4. 安装 Hydro OJ
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
su -
|
su -
|
||||||
|
|||||||
Reference in new issue
Block a user