curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer
查看composer是否下载成功
which composer
cd /usr/local/bin
rm -f composer
ll -sh
which composer
composer
以上三种方法都可以检测是否存在
通过composer安装tp6
进入目录安装tp,并且目录为空
composer create-project topthink/think tp
这里的tp目录名称可以随意更改