Blogger Information
Blog 29
fans 0
comment 0
visits 23887
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Ubuntu 安装Composer并全局配置国内镜像源
easy
Original
483 people have browsed it

参考

阿里巴巴开源镜像站

在安装Composer前我们需要安装必要的依赖软件

sudo apt update
sudo apt install wget php-cli php-zip unzip

下载安装器安装composer

wget -O composer-setup.php https://getcomposer.org/installer

 

安装composer

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

完成

现在就可以使用composer了

检查更新

composer self-update

全局配置阿里镜像源

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


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