Composer 的全局安装
2018-12-20    169    0    0
senier

Mac OS 系统可以使用以下命令来安装:

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ composer --version​


Composer version 1.7.2 2018-08-16 16:57:12
切换为国内镜像:

$ composer config -g repo.packagist composer https://packagist.phpcomposer.com​


更新 composer:

$ sudo composer selfupdate​


Pre: discuz X2.5全站开启https教程讲解

Next: 以宝塔Linux为例讲解CentOS如何挂载磁盘

169
Table of content