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
Table of contents Initialize computed Dependency ...
Many tables in MySQL contain columns that can be ...
Table of contents 1. Configure bridging and captu...
Table of contents Step 1: Install node_modules in...
Table of contents 1. Routing Configuration 2. Vue...
As a programmer who has just learned Tomcat, this...
1. Two ways to specify the character set of the h...
In the horizontal direction, you can set the row ...
Ubuntu 15.04 opens MySQL remote port 3306. All th...
This article describes the MySQL user management ...
Detailed explanation of tinyMCE usage initializat...
Install FFmpeg flac eric@ray:~$ sudo apt install ...
What is HTTP? When we want to browse a website, w...
Linux server hosts file configuration The hosts f...
1. Introduction This article describes how to use...