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
What is SQL? SQL is a language used to operate da...
Table of contents Create a simple springboot proj...
After entering yum in linux, the prompt: -bash: /...
Introduction In orm frameworks, such as hibernate...
1. Download the download link Click download. You...
Here are some examples of how I use this property ...
1. First install node, express, express-generator...
Use HTML to create complex tables. Complex tables...
Use of AES encryption Data transmission encryptio...
Are you still using rem flexible layout? Does it ...
Introduction: The configuration of Docker running...
Use ifnull instead of isnull isnull is used to de...
1. Command Introduction The userdel (user delete)...
Installation environment: CAT /etc/os-release Vie...
Preface When docker run creates and runs a contai...