1. window7配置php环境变量
系统变量,administrator变量,将php,composer文件路径加到path里面。如:D:\phpstudy_pro\Extensions\php\php7.3.4nts;D:\phpstudy_pro\Extensions\composer1.8.5
2. 打开window cmd 切换到需要安装的目录下,执行以下命令进行全局配置( https://blog.thinkphp.cn/1147952 )
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
3. 然后执行以下命令进行全新安装
composer create-project topthink/think tp ( http://www.thinkphp.cn/topic/67456.html )
注意:
ThinkPHPV6.0.2 的入口文件是根目录下的public文件
来源:oschina
链接:https://my.oschina.net/u/4225107/blog/4267126