1. 修改apache配置文件
    让apache运行shell脚本

  2. 编写shell脚本
    让apache运行shell脚本
    (注意这个第三行的那个‘echo’不能少)

  3. 给脚本添加可执行权限:chmod a+x test.sh