有用的linux bash命令
# 在 /content/llama.cpp 目录下递归搜索 index.html
!find /content/llama.cpp -name index.html | grep server
在/content/llama.cpp目录中查找名字为index.html的文件,并且只保留路径中包含“server”的结果
# 1. 检查后台进程是否还活着
!ps -ef | grep llama-server
# 2. 看看最后 20 行日志 (看看有没有 Segment Fault 或 Killed)
!tail -n 20 server.log
!chmod +x /content/llama-server
curl -I http://127.0.0.1:8081/
!pkill llama-server
!tail -n 20 server.log