Blogger Information
Blog 5
fans 0
comment 0
visits 5838
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
TP6 linux安装方法
毅铭
Original
1788 people have browsed it

下载composer

  1. curl -sS https://getcomposer.org/installer | php

将composer.phar文件移动到bin目录以便全局使用composer命令

  1. mv composer.phar /usr/local/bin/composer

切换国内源

  1. composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

输入composer验证

  1. composer

查看composer是否下载成功

删除composer方法

显示composer目录

  1. which composer

进入composer目录

  1. cd /usr/local/bin

删除composer

  1. rm -f composer

查看composer是否存在,如果无反应就代表删除成功

  1. ll -sh
  1. which composer
  1. composer

以上三种方法都可以检测是否存在

安装thinkphp框架

通过composer安装tp6
进入目录安装tp,并且目录为空

  1. composer create-project topthink/think tp

这里的tp目录名称可以随意更改

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post