How to install composer and change the source under linux
This article mainly explains "how to install composer and change the source under linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install composer and change the source under linux".
Install composer and change the source under linux
First download the composer.phar package to the server, which can be uploaded using wget,curl or ftp
Configure the php global variable to test whether the composer is normal
Send to global
Cp. / composer.phar / usr/local/bin/composer
Add execution authority to composer
Chmod axix / usr/local/bin/composer
Detection
Configure the source of domestic Ali Cloud (global configuration)
Composer config-g repo.packagist composer mirrors.aliyun.com/composer/ thank you for reading, the above is "how to install composer under linux and change the source", after the study of this article, I believe you have a deeper understanding of how to install composer and change the source under linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!