1. Download the installation script - composer-setup.php - to the current directory php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');" 2. Perform the installation process php composer-setup.php 3. Delete the installation script php -r "unlink('composer-setup.php');" 4. Global installation sudo mv composer.phar /usr/local/bin/composer (ubuuntu:/usr/bin/composer) Note: Before installation, make sure PHP is installed correctly (check: php -v to view the version number), and keep the composer version updated with the command: composer selfupdate Replenish How to install composer globally in Linux /Download Composer
//Move the composer.phar file to the bin directory so that the composer command can be used globally
//Switch domestic source
This is the end of this article about the steps to install Composer in Linux. For more information about how to install Composer in Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: Teach you MySQL query optimization analysis tutorial step by step
>>: WeChat applet records user movement trajectory
Click here to return to the 123WORDPRESS.COM HTML ...
Preface In daily work or study, it is inevitable ...
The div+css layout to achieve 2-end alignment is ...
Table of contents 1. Download 2. Installation and...
This article records the graphic tutorial of MySQ...
Preface This experiment prepares two virtual mach...
How to delete the container created in Docker 1. ...
Preface This article mainly shares with you the g...
General mobile phone style: @media all and (orien...
Without further ado Start recording docker pullin...
This article example shares the specific code of ...
Note: In web development, after adding autocomplet...
1. Introduction By enabling the slow query log, M...
1. Prepare data The following operations will be ...
I encountered a problem when I turned on my lapto...