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
A reader contacted me and asked why there were pr...
Implement Nginx load balancing based on Docker ne...
There are many MySQL variables, some of which are...
In Linux, the commands cat, more, and less can al...
Anyone who has worked on a large system knows tha...
Select and change: click to display the current v...
1 Cause After the project migrated the database a...
The solution to the problem that Ubuntu 18.04 in ...
This article describes various ways to implement ...
Table of contents 1. The principle of index push-...
1. Idea It only took 6 seconds to insert 1,000,00...
1. Introduction to Compose Compose is a tool for ...
Tutorial Series MySQL series: Basic concepts of M...
Table of contents 1. Database constraints 1.1 Int...
Table of contents Some basic instructions 1. Chec...