先安装 PHP..
https://jasonmun.blogspot.my/2017/01/lnmp.html
Ubuntu
$ sudo apt install php
$ sudo apt install php-curl php-gd php-mbstring php-xml php-zip
从网络复制 composer-setup.php 文件, 然后通过 PHP 安装之..
$ cd ~
$ php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
$ php composer-setup.php
$ php -r "unlink('composer-setup.php');"
将 composer 命令移动到系统中
$ sudo mv composer.phar /usr/local/bin/composer
检查与更新版本
$ composer --version
$ composer selfupdate
软件库配置
$ composer config -g repo.packagist composer https://packagist.phpcomposer.com
没有评论:
发表评论