Home > Development Tools > composer > How to install composer on centos7

How to install composer on centos7

藏色散人
Release: 2021-05-12 11:49:31
forward
2946 people have browsed it

The following tutorial column will introduce how to install composer on centos7. I hope it will be helpful to friends who need it!

How to install composer on centos7                                                                                                                

url -sS getcomposer.org/installer | php

Set environment variables after downloading

mv composer.phar /usr/local/bin/composer

Modify permissions, otherwise an execution error will occur

chmod -R 777 /usr/local/ bin/composer

Then enter the command, and the following picture will be displayed, indicating that the installation is successful

composer -vUse Ali mirror

composer config -g repo.packagist composer mirrors.aliyun.com/composer/

Cancel configuration and restore to default address

composer config -g –unset repos.packagist

View global settings: composer config -gl

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

Related labels:
source:learnku.com
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