后端准备: 创建 index.html
(写上你的学号),用 Python 启动服务:
mkdir -p ~/www && echo "<h1>Hello Linux4AI</h1>" > ~/www/index.html
cd ~/www && python3 -m http.server 8080 &Nginx 配置:
/etc/nginx。http://localhost:8000 -> 转发到
http://127.0.0.1:8080。验证:
curl -v http://localhost:8000。
下载并查看脱敏的 SSH 日志样本:auth.log。
使用 grep 和 awk 统计最近 1000
条登录失败记录中,来源 IP 排名前 5 的地址。
grep "Failed password" auth.log | ...提交统计命令和结果。
dry-run 模式(只打印不杀)。提交 lab04/report.md:
curl 结果截图。.cast(建议命名 lab04/lab04.cast,便于后续转为
text 进行智能批改)。