Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install composer and change the source under linux

Shulou Source: shulou.com Published: 2022-06-01 21:01:11 10月03日 Update

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!

Tags: Overall situation learning configuration content variables that is ideas situations articles more servers permissions knowledge knowledge points articles follow questions Ali practice push Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Linux MySQL Redmi OPPO Reno