How to install composer under linux and change the source

藏色散人
Release: 2021-11-23 16:24:06
forward
2455 people have browsed it

This article is written by the composer tutorial column to introduce to you how to install composer and change the source under Linux. I hope it will be helpful to friends in need!

Install composer under linux and change the source

First download the composer.phar package to the server, you can use wget, curl, or ftp to upload it

Configure php global variables and test whether composer is normal

How to install composer under linux and change the source

Send to global

cp ./composer.phar /usr/local/bin/composer
Copy after login

Add execution permissions to composer

chmod a+x /usr/local/bin/composer
Copy after login

How to install composer under linux and change the source

Detection

How to install composer under linux and change the source

Configure the source of domestic Alibaba Cloud (global configuration)

composer config -g repo.packagist composer mirrors.aliyun.com/composer/
Copy after login

This ends! >_

The above is the detailed content of How to install composer under linux and change the source. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:juejin.im
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!