更新 README.md
This commit is contained in:
1 parent
4c8d299254
commit
e5d6a0d4bb
1 file changed
+7
-4
@@ -10,20 +10,23 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
su -
|
su -
|
||||||
|
```
|
||||||
|
|
||||||
|
输入密码后回车再输入
|
||||||
|
|
||||||
|
```bash
|
||||||
apt update && apt install curl wget sudo
|
apt update && apt install curl wget sudo
|
||||||
```
|
```
|
||||||
|
|
||||||
安装完后请使用以下命令换源:
|
安装完后请使用以下命令换源:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
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. 为 ptyz 用户增加 sudo 权限
|
#### 3. 为 ptyz 用户增加 sudo 权限
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
su -
|
|
||||||
usermod -aG sudo ptyz # 加入 sudoer 组
|
usermod -aG sudo ptyz # 加入 sudoer 组
|
||||||
echo 'ptyz ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/ptyz && chmod 0440 /etc/sudoers.d/ptyz # 免密 sudo
|
echo 'ptyz ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/ptyz && chmod 0440 /etc/sudoers.d/ptyz # 免密 sudo
|
||||||
```
|
```
|
||||||
@@ -31,14 +34,14 @@ echo 'ptyz ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/ptyz && chmod 0440 /etc
|
|||||||
#### 4. 安装 Hydro OJ
|
#### 4. 安装 Hydro OJ
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
su -
|
sudo su
|
||||||
LANG=zh . <(curl http://10.16.80.222:3000/Weishen/Hydro-Setup/raw/branch/main/setup.sh) && pm2 unstartup && pm2 startup -u root
|
LANG=zh . <(curl http://10.16.80.222:3000/Weishen/Hydro-Setup/raw/branch/main/setup.sh) && pm2 unstartup && pm2 startup -u root
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 5. 安装 GCC 9.3.0 以支持 NOI 标准
|
#### 5. 安装 GCC 9.3.0 以支持 NOI 标准
|
||||||
|
|
||||||
``bash
|
``bash
|
||||||
su -
|
sudo su
|
||||||
bash <(curl -s http://10.16.80.222:3000/Weishen/Hydro-Setup/raw/branch/main/gcc9.3.0.sh)
|
bash <(curl -s http://10.16.80.222:3000/Weishen/Hydro-Setup/raw/branch/main/gcc9.3.0.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user