Home > Development Tools > composer > Share 2 ways to install composer under centos

Share 2 ways to install composer under centos

藏色散人
Release: 2020-12-14 14:36:57
forward
1706 people have browsed it

The tutorial column of composer below will introduce you to two installation methods of composer under centos. I hope it will be helpful to friends in need!

Share 2 ways to install composer under centos

Two installation methods for composer under centos

1. Download the composer.phar file

curl -sS https://getcomposer.org/installer | php
Copy after login

Move composer.phar to the environment variable and renamed composer

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

Use domestic mirror

composer config -g repo.packagist composer https://packagist.phpcomposer.com
Copy after login

2,

wget https://dl.laravel-china.org/composer.phar -O /usr/local/bin/composer
chmod a+x /usr/local/bin/composer
Copy after login

The above is the detailed content of Share 2 ways to install composer under centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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
Latest Issues
Composer failed to install TP51
From 1970-01-01 08:00:00
0
0
0
PHP study installation composer cannot be used
From 1970-01-01 08:00:00
0
0
0
php - Error using composer
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template