//进入到项目根目录tp5 下执行方法 [root@JDu4e00u53f7 tp5]# php public/index.php index/index/index
#!/bin/bash // 1.执行thinkphp5下到index方法 /usr/bin/php /home/wwwroot/default/tp5/public/index.php /index/index/index // 2.执行thinkphp5下的test方法 /usr/bin/php /home/wwwroot/default/tp5/public/index.php /index/index/test // 执行普通文件 /usr/bin/php /root/learnScript/a.php