1.创建 shell 脚本文件 ouch xxxxx.sh 2.编辑 shell 脚本内容 vim xxxxx.sh内容格式如下: #!/bin/sh cd /home/chenbolin/output/report;python3 -m http.server 9999 3.保存退出 3.给该 shell 脚本赋权 chmod 755 xxxxx.sh 4.执行启动该脚本 ./xxxxx.sh