File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ $ sudo apt install curl
512512打开终端并运行:
513513
514514``` shell
515- $ curl -fsSL https://101.ustclug.org /Ch02/wordpress.sh > wordpress.sh
515+ $ curl -fsSL https://101.lug.ustc.edu.cn /Ch02/wordpress.sh > wordpress.sh
516516$ # 可以阅读 wordpress.sh 了解其运行的命令,检查代码无误后执行:
517517$ sudo bash wordpress.sh
518518```
@@ -528,7 +528,7 @@ $ sudo bash wordpress.sh
528528 在本节之前的版本中,以上的命令是:
529529
530530 ```shell
531- $ curl -fsSL https://101.ustclug.org /Ch02/wordpress.sh | sudo bash
531+ $ curl -fsSL https://101.lug.ustc.edu.cn /Ch02/wordpress.sh | sudo bash
532532 ```
533533
534534 它的功能是从对应的 URL 获取脚本内容后,直接用 `sudo bash` 去执行。但是从安全性的角度这是不恰当的,因为网络上的脚本有可能包含恶意内容,直接执行可能会对系统带来安全风险。因此相关命令修改为了首先下载脚本到文件中(`wordpress.sh` 文件),然后再执行。如果对脚本内容有疑虑,则可以阅读脚本内容,检查其是否和你的预期相一致。
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ $ kill -l # 显示所有信号名称
257257nohup,字面含义,就是「不要被 SIGHUP 影响」。
258258
259259``` shell
260- $ nohup ping 101.ustclug.org &
260+ $ nohup ping 101.lug.ustc.edu.cn &
261261[1] 19258
262262nohup: ignoring input and appending output to ' /home/ustc/nohup.out'
263263```
You can’t perform that action at this time.
0 commit comments