Home>Article>Development Tools> Install composer under Linux like this
The following is a tutorial column bycomposerto introduce to you how to install composer under Linux. I hope it will be helpful to friends in need!
1. Direct download from the official website
官网链接:https://getcomposer.org/
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
3. Test
cd / composer --help
For more composer technical articles, please visitcomposercolumn!
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!