安裝 Composer
複製以下命令貼上到 Ubuntu 子系統中執行,以安裝 composer ,並將 composer 映象配置為阿里雲映象:
sudo sh -c "curl -so /usr/bin/composer https://mirrors.aliyun.com/composer/composer.phar && chmod a+x /usr/bin/composer" \
&& composer --version \
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \
&& composer config -g -l | grep repositories.packagist.org.url
本作品採用《CC 協議》,轉載必須註明作者和本文連結