Home > Development Tools > composer > Install composer under Linux like this

Install composer under Linux like this

藏色散人
Release: 2020-05-17 16:00:10
forward
3092 people have browsed it

The following is a tutorial column by composer to introduce to you how to install composer under Linux. I hope it will be helpful to friends in need!

Install composer under Linux like this

1. Direct download from the official website

官网链接:https://getcomposer.org/
Copy after login

2. Global installation

2.1 Prerequisite

The downloaded file directory is :/home/username/Download/composer.phar

2.2 Installation

/**
 * 这边不直接把它放在 /bin 目录下是因为这边存放的必须是软连接
 * 而 composer.phar 就是源,所以不可以.
 * 但是 /usr/local/bin 目录下却可以!
 * 所以存放在这儿,就能全局调用了
 */
sudo mv /home/username/下载/composer.phar /usr/local/bin/composer
sudo chmod 711 composer
Copy after login

3. Test

cd /
composer --help
Copy after login

For more composer technical articles, please visit composer column!

The above is the detailed content of Install composer under Linux like this. For more information, please follow other related articles on the PHP Chinese website!

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